Last change
on this file since 3770 was
1853,
checked in by patrick, 21 years ago
|
orxonox/trunk: added working configure, Makefile and extended core-system
|
File size:
956 bytes
|
Line | |
---|
1 | |
---|
2 | CPLUSPLUS = g++ |
---|
3 | APP_LIB_DEPS = -lglut -lGLU -lGL -lm -L/usr/X11R6/lib -lXt -lX11 |
---|
4 | GL_LIB = libGL.so |
---|
5 | GLU_LIB = libGLU.so |
---|
6 | GLUT_LIB = libglut.so |
---|
7 | GLW_LIB = libGLw.so |
---|
8 | OSMESA_LIB = libOSMesa.so |
---|
9 | |
---|
10 | CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -I/usr/X11R6/include |
---|
11 | CXXFLAGS = -fPIC -O3 |
---|
12 | GLUT_CFLAGS = -fexceptions |
---|
13 | |
---|
14 | TOP = ../.. |
---|
15 | INCDIR = /usr/Mesa-6.0.1/include |
---|
16 | LIBDIR = /usr/Mesa-6.0.1/lib |
---|
17 | |
---|
18 | LIBS = -L$(LIBDIR) $(APP_LIB_DEPS) |
---|
19 | |
---|
20 | OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS) |
---|
21 | |
---|
22 | LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB) |
---|
23 | |
---|
24 | PROGS = \ |
---|
25 | cube \ |
---|
26 | gl_test \ |
---|
27 | double |
---|
28 | |
---|
29 | .SUFFIXES: |
---|
30 | .SUFFIXES: .c |
---|
31 | |
---|
32 | .c: $(LIB_DEP) |
---|
33 | $(CPLUSPLUS) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ |
---|
34 | |
---|
35 | default: $(PROGS) |
---|
36 | |
---|
37 | help: |
---|
38 | @echo "Cleaning targets:" |
---|
39 | @echo " clean - remove most generated files" |
---|
40 | @echo "" |
---|
41 | @echo "Generic targets:" |
---|
42 | @echo " all - Build all targets" |
---|
43 | @echo "" |
---|
44 | @echo "For further info see the README file" |
---|
45 | |
---|
46 | clean: |
---|
47 | rm -rf *.o *~ $(PROGS) |
---|
48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.