Added support for IBM CELL SDK (Playstation 3 Linux, CellBlade) SPU Libspe2 compilation/linking. It runs but gives a bus-error, so some DMA alignment issue is still there.

This is interesting, because the same code runs fine on Playstation 3 with the Game SDK.
This commit is contained in:
ejcoumans
2007-10-15 01:07:49 +00:00
parent ffcdb0f93d
commit 31f1ba8e47
2 changed files with 40 additions and 8 deletions

View File

@@ -26,17 +26,21 @@ PROGRAM_ppu := CcdPhysicsDemo
######################################################################
OBJS = CcdPhysicsDemo.o
CELL_TOP ?= /opt/ibm/cell-sdk/prototype
########################################################################
# Libraries, Include paths, Defines
########################################################################
INCLUDE = \
INCLUDE = -DUSE_LIBSPE2 \
-I$(CELL_TOP)/sysroot/usr/include \
-I../ \
-I$(ROOT)/src \
-I$(ROOT)/Demos/OpenGL \
-I$(HOSTINC)
SYS_LIBS := -lglut -lGLU -lGL -lm -lXext -lXmu -lX11
SYS_LIBS := -lspe2 -lglut -lGLU -lGL -lm -lXext -lXmu -lX11
IMPORTS = $(ROOT)/lib/ibmsdk/bulletopenglsupport.a \
IMPORTS = $(ROOT)/lib/ibmsdk/bulletmultithreaded.a \
$(ROOT)/lib/ibmsdk/bulletopenglsupport.a \
$(ROOT)/lib/ibmsdk/bulletdynamics.a \
$(ROOT)/lib/ibmsdk/bulletcollision.a \
$(ROOT)/lib/ibmsdk/bulletmath.a
@@ -50,7 +54,6 @@ INSTALL_FILES = $(PROGRAM_ppu)
# make.footer
########################################################################
CELL_TOP ?= /opt/ibm/cell-sdk/prototype
include $(CELL_TOP)/make.footer