CC = gcc CXX = g++ APP_LIB_DEPS = -lglut -lGLU -lGL -lm -L/usr/X11R6/lib -lXt -lX11 GL_LIB = libGL.so GLU_LIB = libGLU.so GLUT_LIB = libglut.so GLW_LIB = libGLw.so OSMESA_LIB = libOSMesa.so CFLAGS = -O3 -pedantic -fPIC -ffast-math -I/usr/X11R6/include CXXFLAGS = -fPIC -O3 GLUT_CFLAGS = -fexceptions TOP = ../.. INCDIR = /usr/Mesa-6.0.1/include LIBDIR = /usr/Mesa-6.0.1/lib LIBS = -L$(LIBDIR) $(APP_LIB_DEPS) OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS) LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB) PROGS = \ orxonox HEADERS = \ orxonox.h \ data_core.h SOURCES = \ orxonox.cc \ data_core.cc OBJECTS = \ showroom.o \ 3ds.o \ 3dUnit.o \ 3dStructs.o TARGET = showroom .SUFFIXES: .SUFFIXES: .cpp .o #.cc: $(LIB_DEP) # $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ .cpp.o: @ echo "$@ wird kompiliert..." @ $(CXX) -c $(CFLAGS) -I$(INCDIR) -o $@ $< #### build all: $(TARGET) $(TARGET): $(OBJECTS) @ echo "showroom wird gelinkt..." @ $(CXX) $(LIBS) -o $(TARGET) $(OBJECTS) help: @echo "Cleaning targets:" @echo " clean - remove most generated files" @echo "" @echo "Generic targets:" @echo " all - Build all targets" @echo "" @echo "For further info see the README file" clean: rm -rf *.o *~ ####compile #orxonox.o: orxonox.cc \ # orxonox.h #data_tank.o: data_tank.cc \ # data_tank.h #EOF