Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/doc/program_examples/openGL/Makefile @ 3535

Last change on this file since 3535 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
2CPLUSPLUS = g++
3APP_LIB_DEPS = -lglut -lGLU -lGL -lm -L/usr/X11R6/lib -lXt -lX11
4GL_LIB = libGL.so
5GLU_LIB = libGLU.so
6GLUT_LIB = libglut.so
7GLW_LIB = libGLw.so
8OSMESA_LIB = libOSMesa.so
9
10CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -I/usr/X11R6/include
11CXXFLAGS = -fPIC -O3
12GLUT_CFLAGS = -fexceptions
13
14TOP = ../..
15INCDIR = /usr/Mesa-6.0.1/include
16LIBDIR = /usr/Mesa-6.0.1/lib
17
18LIBS = -L$(LIBDIR) $(APP_LIB_DEPS)
19
20OSMESA_LIBS = -L$(LIBDIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS)
21
22LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
23
24PROGS = \
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
35default: $(PROGS)
36
37help:
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       
46clean:
47        rm -rf *.o *~ $(PROGS)
48
Note: See TracBrowser for help on using the repository browser.