Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/gui/console/Makefile @ 1880

Last change on this file since 1880 was 1880, checked in by bensch, 21 years ago

orxonox/branches/gui/console: made a little reaction.

File size: 1.5 KB
Line 
1
2CC = gcc
3CXX = g++
4APP_LIB_DEPS = `pkg-config --libs  gtk+-2.0`
5GL_LIB = libGL.so
6GLU_LIB = libGLU.so
7GLUT_LIB = libglut.so
8GLW_LIB = libGLw.so
9OSMESA_LIB = libOSMesa.so
10
11CFLAGS = `pkg-config --cflags gtk+-2.0`
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_console \
27
28HEADERS = \
29        orxonox_console.h \
30        orxonox_console_entry.h \
31        orxonox_console_log.h
32
33SOURCES = \
34        orxonox_console.cc \
35        orxonox_console_entry.cc \
36        orxonox_console_log.cc
37
38OBJECTS = \
39        orxonox_console.o \
40        orxonox_console_entry.o \
41        orxonox_console_log.o
42
43
44TARGET = orxonox_console
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 "$@ is being compiled..."
54        @ $(CXX) -c $(CFLAGS) -I$(INCDIR) -o $@ $<
55
56
57#### build
58
59all: $(TARGET)
60
61$(TARGET): $(OBJECTS)
62        @ echo "orxonox_console is being linked..."
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        rm $(TARGET)
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.