Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/gui/guicc/Makefile @ 1893

Last change on this file since 1893 was 1893, checked in by bensch, 21 years ago

orxonox/branches/gui: added guicc: a c++ version of the gui, that should be object-oriented

File size: 1.3 KB
Line 
1
2CC = gcc
3CXX = g++
4APP_LIB_DEPS = `pkg-config --libs  gtk+-2.0`
5GL_LIB = libGL.so
6GLU_LIB = libGLU.so
7GLUT_LIB = libglut.so
8GLW_LIB = libGLw.so
9OSMESA_LIB = libOSMesa.so
10
11CFLAGS = `pkg-config --cflags gtk+-2.0`
12CXXFLAGS = -fPIC -O3
13GLUT_CFLAGS = -fexceptions
14
15TOP = ../..
16INCDIR = /usr/Mesa-6.0.1/include
17LIBDIR = /usr/Mesa-6.0.1/lib
18
19LIBS = -L$(LIBDIR) $(APP_LIB_DEPS)
20
21OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS)
22
23LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
24
25PROGS = \
26        orxonox_gui \
27
28HEADERS = \
29        orxonox_gui.h \
30
31
32SOURCES = \
33        orxonox_gui.cc \
34
35OBJECTS = \
36        orxonox_gui.o
37#       orxonox_gui_exec.o \
38#       orxonox_gui_audio.o \
39#       orxonox_gui_video.o \
40#       orxonox_gui_file.o
41
42TARGET = orxonox_gui
43
44.SUFFIXES:
45.SUFFIXES: .cc .o
46
47#.cc: $(LIB_DEP)
48#       $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
49
50.cc.o:
51        @ echo "$@ is being comiled..."
52        @ $(CXX) -c $(CFLAGS) -I$(INCDIR) -o $@ $<
53
54
55#### build
56
57all: $(TARGET)
58
59$(TARGET): $(OBJECTS)
60        @ echo "orxonox_gui is being linked..."
61        @ $(CXX) $(LIBS) -o $(TARGET) $(OBJECTS)
62
63
64help:
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
73clean:
74        rm -rf *.o *~
75        rm $(TARGET)
76
77
78#EOF
Note: See TracBrowser for help on using the repository browser.