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 | orxonox \ |
---|
26 | |
---|
27 | .SUFFIXES: |
---|
28 | .SUFFIXES: .cc |
---|
29 | |
---|
30 | .cc: $(LIB_DEP) |
---|
31 | $(CPLUSPLUS) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@ |
---|
32 | |
---|
33 | default: |
---|
34 | targets: $(PROGS) |
---|
35 | |
---|
36 | |
---|
37 | clean: |
---|
38 | rm -rf *.o *~ $(PROGS) |
---|
39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.