Last change
on this file since 2700 was
1901,
checked in by patrick, 21 years ago
|
ported showroom to linux - haleluja
|
File size:
1.4 KB
|
Rev | Line | |
---|
[1901] | 1 | |
---|
| 2 | CC = gcc |
---|
| 3 | CXX = g++ |
---|
| 4 | APP_LIB_DEPS = -lglut -lGLU -lGL -lm -L/usr/X11R6/lib -lXt -lX11 |
---|
| 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 = -O3 -pedantic -fPIC -ffast-math -I/usr/X11R6/include |
---|
| 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 |
---|
| 27 | |
---|
| 28 | HEADERS = \ |
---|
| 29 | orxonox.h \ |
---|
| 30 | data_core.h |
---|
| 31 | |
---|
| 32 | SOURCES = \ |
---|
| 33 | orxonox.cc \ |
---|
| 34 | data_core.cc |
---|
| 35 | |
---|
| 36 | OBJECTS = \ |
---|
| 37 | showroom.o \ |
---|
| 38 | 3ds.o \ |
---|
| 39 | 3dUnit.o \ |
---|
| 40 | 3dStructs.o |
---|
| 41 | |
---|
| 42 | TARGET = showroom |
---|
| 43 | |
---|
| 44 | .SUFFIXES: |
---|
| 45 | .SUFFIXES: .cpp .o |
---|
| 46 | |
---|
| 47 | #.cc: $(LIB_DEP) |
---|
| 48 | # $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ |
---|
| 49 | |
---|
| 50 | .cpp.o: |
---|
| 51 | @ echo "$@ wird kompiliert..." |
---|
| 52 | @ $(CXX) -c $(CFLAGS) -I$(INCDIR) -o $@ $< |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | #### build |
---|
| 56 | |
---|
| 57 | all: $(TARGET) |
---|
| 58 | |
---|
| 59 | $(TARGET): $(OBJECTS) |
---|
| 60 | @ echo "showroom wird gelinkt..." |
---|
| 61 | @ $(CXX) $(LIBS) -o $(TARGET) $(OBJECTS) |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | help: |
---|
| 65 | @echo "Cleaning targets:" |
---|
| 66 | @echo " clean - remove most generated files" |
---|
| 67 | @echo "" |
---|
| 68 | @echo "Generic targets:" |
---|
| 69 | @echo " all - Build all targets" |
---|
| 70 | @echo "" |
---|
| 71 | @echo "For further info see the README file" |
---|
| 72 | |
---|
| 73 | clean: |
---|
| 74 | rm -rf *.o *~ |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | ####compile |
---|
| 78 | |
---|
| 79 | #orxonox.o: orxonox.cc \ |
---|
| 80 | # orxonox.h |
---|
| 81 | |
---|
| 82 | #data_tank.o: data_tank.cc \ |
---|
| 83 | # data_tank.h |
---|
| 84 | |
---|
| 85 | #EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.