CC = gcc CXX = g++ APP_LIB_DEPS = `pkg-config --libs gtk+-2.0` GL_LIB = libGL.so GLU_LIB = libGLU.so GLUT_LIB = libglut.so GLW_LIB = libGLw.so OSMESA_LIB = libOSMesa.so CFLAGS = `pkg-config --cflags gtk+-2.0` 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_gui \ HEADERS = \ orxonox.h \ data_core.h SOURCES = \ orxonox.cc \ data_core.cc OBJECTS = \ orxonox_gui.o \ orxonox_gui_exec.o \ orxonox_gui_audio.o \ orxonox_gui_video.o \ orxonox_gui_file.o TARGET = orxonox_gui .SUFFIXES: .SUFFIXES: .c .o #.cc: $(LIB_DEP) # $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ .cc.o: @ echo "$@ is being comiled..." @ $(CXX) -c $(CFLAGS) -I$(INCDIR) -o $@ $< #### build all: $(TARGET) $(TARGET): $(OBJECTS) @ echo "orxonox_gui is being linked..." @ $(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 *~ rm $(TARGET) ####compile #orxonox.o: orxonox.cc \ # orxonox.h #data_tank.o: data_tank.cc \ # data_tank.h #EOF