1#### Source code Dirs
2VPATH =				\
3../ConstraintSolver		\
4../Dynamics			\
5../Vehicle
6
7ROOT = ../../..
8
9#### Library
10LIBRARY_ppu = bulletdynamics.a
11
12#### Compiler flags
13CPPFLAGS        = 		\
14-DUSE_LIBSPE2			\
15-I../ConstraintSolver		\
16-I../Dynamics			\
17-I../Vehicle			\
18-I$(ROOT)/src			\
19-I$(SDKINC)
20
21#### Optimization level flags
22#CC_OPT_LEVEL =  $(CC_OPT_LEVEL_DEBUG)
23CC_OPT_LEVEL =  -O3
24
25##### Objects to be archived in lib
26
27OBJS = 					\
28btContactConstraint.o			\
29btGeneric6DofConstraint.o		\
30btHingeConstraint.o			\
31btPoint2PointConstraint.o		\
32btSequentialImpulseConstraintSolver.o	\
33btSolve2LinearConstraint.o		\
34btTypedConstraint.o			\
35btDiscreteDynamicsWorld.o		\
36btRigidBody.o				\
37btSimpleDynamicsWorld.o			\
38btRaycastVehicle.o			\
39btWheelInfo.o
40#### Install directories
41INSTALL_DIR	=  $(ROOT)/lib/ibmsdk
42INSTALL_FILES	= $(LIBRARY_ppu)
43
44IBM_CELLSDK_VERSION := $(shell if [ -d /opt/cell ]; then echo "3.0"; fi)
45
46ifeq ("$(IBM_CELLSDK_VERSION)","3.0")
47        CELL_TOP ?= /opt/cell/sdk
48        include $(CELL_TOP)/buildutils/make.footer
49else
50        CELL_TOP ?= /opt/ibm/cell-sdk/prototype
51        include $(CELL_TOP)/make.footer
52endif
53
54