Rev | Line | |
---|
[1860] | 1 | |
---|
| 2 | CC = gcc |
---|
| 3 | CXX = g++ |
---|
| 4 | APP_LIB_DEPS = `pkg-config --libs gtk+-2.0` |
---|
| 5 | GL_LIB = libGL.so |
---|
| 6 | GLU_LIB = libGLU.so |
---|
| 7 | GLUT_LIB = libglut.so |
---|
| 8 | GLW_LIB = libGLw.so |
---|
| 9 | OSMESA_LIB = libOSMesa.so |
---|
| 10 | |
---|
| 11 | CFLAGS = `pkg-config --cflags gtk+-2.0` |
---|
| 12 | CXXFLAGS = -fPIC -O3 |
---|
| 13 | GLUT_CFLAGS = -fexceptions |
---|
| 14 | |
---|
| 15 | TOP = ../.. |
---|
| 16 | INCDIR = /usr/Mesa-6.0.1/include |
---|
| 17 | LIBDIR = /usr/Mesa-6.0.1/lib |
---|
| 18 | |
---|
| 19 | LIBS = -L$(LIBDIR) $(APP_LIB_DEPS) |
---|
| 20 | |
---|
| 21 | OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS) |
---|
| 22 | |
---|
| 23 | LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB) |
---|
| 24 | |
---|
| 25 | PROGS = \ |
---|
| 26 | orxonox_gui \ |
---|
| 27 | |
---|
| 28 | HEADERS = \ |
---|
| 29 | orxonox.h \ |
---|
| 30 | data_core.h |
---|
| 31 | |
---|
| 32 | SOURCES = \ |
---|
| 33 | orxonox.cc \ |
---|
| 34 | data_core.cc |
---|
| 35 | |
---|
| 36 | OBJECTS = \ |
---|
| 37 | orxonox_gui.o \ |
---|
| 38 | orxonox_gui_exec.o \ |
---|
| 39 | orxonox_gui_audio.o \ |
---|
| 40 | orxonox_gui_video.o \ |
---|
| 41 | orxonox_gui_file.o |
---|
| 42 | |
---|
| 43 | TARGET = orxonox_gui |
---|
| 44 | |
---|
| 45 | .SUFFIXES: |
---|
| 46 | .SUFFIXES: .c .o |
---|
| 47 | |
---|
| 48 | #.cc: $(LIB_DEP) |
---|
| 49 | # $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ |
---|
| 50 | |
---|
| 51 | .cc.o: |
---|
| 52 | @ echo "$@ is being comiled..." |
---|
| 53 | @ $(CXX) -c $(CFLAGS) -I$(INCDIR) -o $@ $< |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | #### build |
---|
| 57 | |
---|
| 58 | all: $(TARGET) |
---|
| 59 | |
---|
| 60 | $(TARGET): $(OBJECTS) |
---|
| 61 | @ echo "orxonox_gui is being linked..." |
---|
| 62 | @ $(CXX) $(LIBS) -o $(TARGET) $(OBJECTS) |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | help: |
---|
| 66 | @echo "Cleaning targets:" |
---|
| 67 | @echo " clean - remove most generated files" |
---|
| 68 | @echo "" |
---|
| 69 | @echo "Generic targets:" |
---|
| 70 | @echo " all - Build all targets" |
---|
| 71 | @echo "" |
---|
| 72 | @echo "For further info see the README file" |
---|
| 73 | |
---|
| 74 | clean: |
---|
| 75 | rm -rf *.o *~ |
---|
| 76 | rm $(TARGET) |
---|
| 77 | |
---|
| 78 | ####compile |
---|
| 79 | |
---|
| 80 | #orxonox.o: orxonox.cc \ |
---|
| 81 | # orxonox.h |
---|
| 82 | |
---|
| 83 | #data_tank.o: data_tank.cc \ |
---|
| 84 | # data_tank.h |
---|
| 85 | |
---|
| 86 | #EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.