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