root/branches/Carsten_PtrWork2/Tools/osgBench/Makefile

Revision 213, 1.1 kB (checked in by dirk, 2 years ago)

Added simple benchmarking toolkit. Not for permanent use, just for now.

Line 
1 # trivial makefile for OpenSG example
2
3 SRCS := Nodes.cpp TestWindow.cpp Test.cpp Image.cpp python_wrapper.cpp
4
5 OBJS := $(SRCS:.cpp=.o)
6
7 OPT :=  --dbg
8 #OPT :=  --opt
9 # set the path to the installed OpenSG root directory here
10 # if you installed in /usr/local:
11 # OSGROOT := /usr/local
12 # use this if you installed in Builds/*/
13 #OSGROOT := $(wildcard ../../Builds/$(shell ../../CommonConf/config.guess)-*)
14
15
16 OSGROOT := ../../build.linux/instlinks
17
18 CC := g++
19
20 CCFLAGS = -g -I. -I/usr/include/python2.4 \
21           -DBOOST_PYTHON_DYNAMIC_LIB -fPIC \
22         $(shell $(OSGROOT)/bin/osg2-config --cflags $(OPT) FileIO Base System GLUT Drawable Util)
23
24 LDFLAGS = $(shell $(OSGROOT)/bin/osg2-config --libs $(OPT) FileIO Base System GLUT Drawable Util) \
25          -g -fPIC  -L. -lboost_python
26
27 default: osgbench.so
28
29 clean:
30         rm -f *.o osgbench.so
31
32 osgbench.so: $(OBJS) $(SRCS)
33
34 %.o: %.cpp
35         $(CC) -c $(CCFLAGS) $<
36
37 %: %.o
38         $(CC) $< $(OBJS) $(LDFLAGS) -o $@
39
40
41 %.so:
42         $(CC) -shared $(OBJS) $(LDFLAGS) -o $@
43
44
45 Nodes.o: Nodes.h Nodes.cpp
46 TestWindow.o: TestWindow.h TestWindow.cpp
47 Test.o: Test.h Test.cpp
48 python_wrapper.o: python_wrapper.cpp Nodes.h TestWindow.h Test.h Image.h
Note: See TracBrowser for help on using the browser.