mesa/configs/linux-cell
Ian Romanick 9a0fe23d49 Port to libspe2
libspe is deprecated in Cell SDK 2.1, and it is removed in Cell SDK 3.0.
This patch ports the existing libspe-based code to libspe2.  Some error
checking (eh-hem) would be nice.
2007-12-11 12:43:50 -08:00

44 lines
845 B
Text

# linux-cell
include $(TOP)/configs/default
CONFIG_NAME = linux-cell
# Compiler and flags
CC = /usr/bin/ppu32-gcc
CXX = /usr/bin/ppu32-g++
# Cell SDK location
SDK = /opt/ibm/cell-sdk/prototype/sysroot/usr
CFLAGS = -g -W -Winline -fPIC -m32 -mabi=altivec -maltivec -I. -I/usr/include -I$(SDK)/include -DGALLIUM_CELL
CXXFLAGS = $(CFLAGS)
# Omitting glw here:
SRC_DIRS = mesa glu glut/glx
MKDEP_OPTIONS = -fdepend -Y
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread \
-L$(SDK)/lib -m32 -Wl,-m,elf32ppc -R$(SDK)/lib -lspe2
### SPU stuff
SPU_CC = /usr/bin/spu-gcc
SPU_CFLAGS = -g -W -Wall -Winline -Wno-main -I. -I $(SDK)/spu/include -include spu_intrinsics.h -I $(TOP)/src/mesa/
SPU_LFLAGS = -L$(SDK)/spu/lib -Wl,-N -lmisc
SPU_AR = /usr/bin/ar
SPU_AR_FLAGS = -qcs
SPU_EMBED = /usr/bin/embedspu
SPU_EMBED_FLAGS = -m32