Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/gui/core/Makefile @ 1884

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

orxonox/branches/gui: merged Version of branches/bensch and trunk and modified the makefile

File size: 1.4 KB
Line 
1
2CC = gcc
3CXX = g++
4APP_LIB_DEPS = -lglut -lGLU -lGL -lm -L/usr/X11R6/lib -lXt -lX11
5GL_LIB = libGL.so
6GLU_LIB = libGLU.so
7GLUT_LIB = libglut.so
8GLW_LIB = libGLw.so
9OSMESA_LIB = libOSMesa.so
10
11CFLAGS = -O3 -pedantic -fPIC -ffast-math -I/usr/X11R6/include
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 \
27
28HEADERS = \
29        orxonox.h \
30        data_core.h
31       
32SOURCES = \
33        orxonox.cc \
34        data_core.cc
35
36OBJECTS = \
37        orxonox.o \
38        data_tank.o \
39        npc.o \
40        player.o \
41        world.o
42
43TARGET = orxonox
44
45.SUFFIXES:
46.SUFFIXES: .cc .o
47
48#.cc: $(LIB_DEP)
49#       $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
50
51.cc.o:
52        @ echo "$@ wird kompiliert..."
53        @ $(CXX) -c $(CFLAGS) -I$(INCDIR) -o $@ $<
54
55
56#### build
57
58all: $(TARGET)
59
60$(TARGET): $(OBJECTS)
61        @ echo "orxonox wird gelinkt..."
62        @ $(CXX) $(LIBS) -o $(TARGET) $(OBJECTS)
63
64
65help:
66        @echo "Cleaning targets:"
67        @echo "  clean          - remove most generated files"
68        @echo ""
69        @echo "Generic targets:"
70        @echo "  all            - Build all targets"
71        @echo ""
72        @echo "For further info see the README file"
73       
74clean:
75        rm -rf *.o *~
76
77
78####compile
79
80#orxonox.o: orxonox.cc \
81#               orxonox.h
82
83#data_tank.o: data_tank.cc \
84#               data_tank.h     
85       
86#EOF
Note: See TracBrowser for help on using the repository browser.