Last change
on this file since 1920 was
1920,
checked in by bensch, 20 years ago
|
orxonox/trunk: rockets added (in 3D)
|
File size:
1.5 KB
|
Line | |
---|
1 | |
---|
2 | CC = gcc |
---|
3 | CXX = g++ |
---|
4 | APP_LIB_DEPS = -lglut -lGLU -lGL -lm -L/usr/X11R6/lib -lXt -lX11 |
---|
5 | GL_LIB = libGL.so |
---|
6 | GLU_LIB = libGLU.so |
---|
7 | GLUT_LIB = libglut.so |
---|
8 | GLW_LIB = libGLw.so |
---|
9 | OSMESA_LIB = libOSMesa.so |
---|
10 | |
---|
11 | CFLAGS = -O3 -pedantic -fPIC -ffast-math -I/usr/X11R6/include |
---|
12 | CXXFLAGS = -fPIC -O3 |
---|
13 | GLUT_CFLAGS = -fexceptions |
---|
14 | |
---|
15 | TOP = ../.. |
---|
16 | INCDIR = /usr/Mesa-6.0.1/include |
---|
17 | LIBDIR = /usr/Mesa-6.0.1/lib |
---|
18 | |
---|
19 | LIBS = -L$(LIBDIR) $(APP_LIB_DEPS) |
---|
20 | |
---|
21 | OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS) |
---|
22 | |
---|
23 | LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB) |
---|
24 | |
---|
25 | PROGS = \ |
---|
26 | orxonox \ |
---|
27 | |
---|
28 | HEADERS = \ |
---|
29 | orxonox.h \ |
---|
30 | data_core.h |
---|
31 | |
---|
32 | SOURCES = \ |
---|
33 | orxonox.cc \ |
---|
34 | data_core.cc |
---|
35 | |
---|
36 | OBJECTS = \ |
---|
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 | shoot_rocket.o \ |
---|
46 | ai.o |
---|
47 | |
---|
48 | TARGET = orxonox |
---|
49 | |
---|
50 | .SUFFIXES: |
---|
51 | .SUFFIXES: .cc .o |
---|
52 | |
---|
53 | #.cc: $(LIB_DEP) |
---|
54 | # $(CXX) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ |
---|
55 | |
---|
56 | .cc.o: |
---|
57 | @ echo "$@ is being compiled..." |
---|
58 | @ $(CXX) -c $(CFLAGS) -I$(INCDIR) -o $@ $< |
---|
59 | |
---|
60 | |
---|
61 | #### build |
---|
62 | |
---|
63 | all: $(TARGET) |
---|
64 | |
---|
65 | $(TARGET): $(OBJECTS) |
---|
66 | @ echo "orxonox is being linked..." |
---|
67 | @ $(CXX) $(LIBS) -o $(TARGET) $(OBJECTS) |
---|
68 | |
---|
69 | |
---|
70 | help: |
---|
71 | @echo "Cleaning targets:" |
---|
72 | @echo " clean - remove most generated files" |
---|
73 | @echo "" |
---|
74 | @echo "Generic targets:" |
---|
75 | @echo " all - Build all targets" |
---|
76 | @echo "" |
---|
77 | @echo "For further info see the README file" |
---|
78 | |
---|
79 | clean: |
---|
80 | rm -rf *.o *~ orxonox |
---|
81 | |
---|
82 | |
---|
83 | ####compile |
---|
84 | |
---|
85 | #orxonox.o: orxonox.cc \ |
---|
86 | # orxonox.h |
---|
87 | |
---|
88 | #data_tank.o: data_tank.cc \ |
---|
89 | # data_tank.h |
---|
90 | |
---|
91 | #EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.