fixed: compile issue
[opensg.git] / Tools / osgBench / Makefile
blob3883dd8776fa51c3bd46083d334d5114009bc4c2
1 # trivial makefile for OpenSG example
3 SRCS := Nodes.cpp TestWindow.cpp Test.cpp Image.cpp python_wrapper.cpp
5 OBJS := $(SRCS:.cpp=.o)
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)-*)
16 OSGROOT := ../../build.linux/instlinks
18 CC := g++
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)
24 LDFLAGS = $(shell $(OSGROOT)/bin/osg2-config --libs $(OPT) FileIO Base System GLUT Drawable Util) \
25 -g -fPIC -L. -lboost_python
27 default: osgbench.so
29 clean:
30 rm -f *.o osgbench.so
32 osgbench.so: $(OBJS) $(SRCS)
34 %.o: %.cpp
35 $(CC) -c $(CCFLAGS) $<
37 %: %.o
38 $(CC) $< $(OBJS) $(LDFLAGS) -o $@
41 %.so:
42 $(CC) -shared $(OBJS) $(LDFLAGS) -o $@
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