Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 1874 was 1872, checked in by patrick, 21 years ago

orxonox/trunk: play the square - its possible now…

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