1 # trivial makefile for OpenSG example
3 SRCS
:= Nodes.
cpp TestWindow.
cpp Test.
cpp Image.
cpp python_wrapper.
cpp
5 OBJS
:= $(SRCS
:.
cpp=.o
)
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
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
32 osgbench.so
: $(OBJS
) $(SRCS
)
35 $(CC
) -c
$(CCFLAGS
) $<
38 $(CC
) $< $(OBJS
) $(LDFLAGS
) -o
$@
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