Last change
on this file since 1895 was
1880,
checked in by bensch, 21 years ago
|
orxonox/branches/gui/console: made a little reaction.
|
File size:
1.5 KB
|
Rev | Line | |
---|
[1877] | 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_console \ |
---|
| 27 | |
---|
| 28 | HEADERS = \ |
---|
| 29 | orxonox_console.h \ |
---|
| 30 | orxonox_console_entry.h \ |
---|
| 31 | orxonox_console_log.h |
---|
| 32 | |
---|
| 33 | SOURCES = \ |
---|
| 34 | orxonox_console.cc \ |
---|
| 35 | orxonox_console_entry.cc \ |
---|
| 36 | orxonox_console_log.cc |
---|
| 37 | |
---|
| 38 | OBJECTS = \ |
---|
| 39 | orxonox_console.o \ |
---|
| 40 | orxonox_console_entry.o \ |
---|
| 41 | orxonox_console_log.o |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | TARGET = orxonox_console |
---|
| 45 | |
---|
| 46 | .SUFFIXES: |
---|
| 47 | .SUFFIXES: .cc .o |
---|
| 48 | |
---|
| 49 | #.cc: $(LIB_DEP) |
---|
| 50 | # $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ |
---|
| 51 | |
---|
| 52 | .cc.o: |
---|
[1880] | 53 | @ echo "$@ is being compiled..." |
---|
[1877] | 54 | @ $(CXX) -c $(CFLAGS) -I$(INCDIR) -o $@ $< |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | #### build |
---|
| 58 | |
---|
| 59 | all: $(TARGET) |
---|
| 60 | |
---|
| 61 | $(TARGET): $(OBJECTS) |
---|
| 62 | @ echo "orxonox_console is being linked..." |
---|
| 63 | @ $(CXX) $(LIBS) -o $(TARGET) $(OBJECTS) |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | help: |
---|
| 67 | @echo "Cleaning targets:" |
---|
| 68 | @echo " clean - remove most generated files" |
---|
| 69 | @echo "" |
---|
| 70 | @echo "Generic targets:" |
---|
| 71 | @echo " all - Build all targets" |
---|
| 72 | @echo "" |
---|
| 73 | @echo "For further info see the README file" |
---|
| 74 | |
---|
| 75 | clean: |
---|
| 76 | rm -rf *.o *~ |
---|
| 77 | rm $(TARGET) |
---|
| 78 | |
---|
| 79 | ####compile |
---|
| 80 | |
---|
| 81 | #orxonox.o: orxonox.cc \ |
---|
| 82 | # orxonox.h |
---|
| 83 | |
---|
| 84 | #data_tank.o: data_tank.cc \ |
---|
| 85 | # data_tank.h |
---|
| 86 | |
---|
| 87 | #EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.