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_console \ HEADERS = \ orxonox_console.h \ orxonox_console_entry.h \ orxonox_console_log.h SOURCES = \ orxonox_console.cc \ orxonox_console_entry.cc \ orxonox_console_log.cc OBJECTS = \ orxonox_console.o \ orxonox_console_entry.o \ orxonox_console_log.o TARGET = orxonox_console .SUFFIXES: .SUFFIXES: .cc .o #.cc: $(LIB_DEP) # $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ .cc.o: @ echo "$@ is being compiled..." @ $(CXX) -c $(CFLAGS) -I$(INCDIR) -o $@ $< #### build all: $(TARGET) $(TARGET): $(OBJECTS) @ echo "orxonox_console 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