Initialize libbullet git in 2.0_beta.
[platform/upstream/libbullet.git] / src / LinearMath / ibmsdk / Makefile
1 #### Source code Dirs
2 VPATH = ../
3
4 ROOT = ../../..
5
6 #### Library
7 LIBRARY_ppu = bulletmath.a
8
9 #### Compiler flags
10 CPPFLAGS        =               \
11 -DUSE_LIBSPE2                   \
12 -I$(ROOT)/src                   \
13 -I$(SDKINC)
14
15 #### Optimization level flags
16 #CC_OPT_LEVEL =  $(CC_OPT_LEVEL_DEBUG)
17 CC_OPT_LEVEL =  -O3
18
19 ##### Objects to be archived in lib
20
21 OBJS =                                  \
22 btAlignedAllocator.o                    \
23 btGeometryUtil.o                        \
24 btQuickprof.o
25
26 #### Install directories
27 INSTALL_DIR     =  $(ROOT)/lib/ibmsdk
28 INSTALL_FILES   = $(LIBRARY_ppu)
29
30 IBM_CELLSDK_VERSION := $(shell if [ -d /opt/cell ]; then echo "3.0"; fi)
31
32 ifeq ("$(IBM_CELLSDK_VERSION)","3.0")
33         CELL_TOP ?= /opt/cell/sdk
34         include $(CELL_TOP)/buildutils/make.footer
35 else
36         CELL_TOP ?= /opt/ibm/cell-sdk/prototype
37         include $(CELL_TOP)/make.footer
38 endif
39