Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/core/Makefile @ 1898

Last change on this file since 1898 was 1896, checked in by patrick, 21 years ago

orxonox/trunk: added ability to shoot. so check out the new release and shoot the fuck up

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        input_output.o \
43        environment.o \
44        shoot_laser.o
45
46TARGET = orxonox
47
48.SUFFIXES:
49.SUFFIXES: .cc .o
50
51#.cc: $(LIB_DEP)
52#       $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
53
54.cc.o:
55        @ echo "$@ is being compiled..."
56        @ $(CXX) -c $(CFLAGS) -I$(INCDIR) -o $@ $<
57
58
59#### build
60
61all: $(TARGET)
62
63$(TARGET): $(OBJECTS)
64        @ echo "orxonox is being linked..."
65        @ $(CXX) $(LIBS) -o $(TARGET) $(OBJECTS)
66
67
68help:
69        @echo "Cleaning targets:"
70        @echo "  clean          - remove most generated files"
71        @echo ""
72        @echo "Generic targets:"
73        @echo "  all            - Build all targets"
74        @echo ""
75        @echo "For further info see the README file"
76       
77clean:
78        rm -rf *.o *~ orxonox
79
80
81####compile
82
83#orxonox.o: orxonox.cc \
84#               orxonox.h
85
86#data_tank.o: data_tank.cc \
87#               data_tank.h     
88       
89#EOF
Note: See TracBrowser for help on using the repository browser.