1 # linux-cell (non-debug build)
3 include $(TOP)/configs/default
5 CONFIG_NAME = linux-cell
8 # Omiting other gallium drivers:
9 GALLIUM_DRIVERS_DIRS = cell softpipe trace
22 ## For SDK 2.1: (plus, remove -DSPU_MAIN_PARAM_LONG_LONG below)
23 #SDK = /opt/ibm/cell-sdk/prototype/sysroot/usr
25 SDK = /opt/cell/sdk/usr
28 CFLAGS = $(OPT_FLAGS) -Wall -Winline -Wmissing-prototypes \
29 -fPIC -m32 -std=c99 -mabi=altivec -maltivec \
30 -I. -I$(SDK)/include \
31 -DGALLIUM_CELL -DUSE_XSHM -D_BSD_SOURCE -D_SVID_SOURCE
36 SRC_DIRS = glsl mesa gallium gallium/winsys glu glut/glx glew
38 # Build no traditional Mesa drivers:
42 MKDEP_OPTIONS = -fdepend -Y
45 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread \
46 -L$(SDK)/lib -m32 -Wl,-m,elf32ppc -R$(SDK)/lib -lspe2
49 CELL_SPU_LIB = $(TOP)/src/gallium/drivers/cell/spu/g3d_spu.a
56 SPU_CFLAGS = $(OPT_FLAGS) -W -Wall -Winline -Wmissing-prototypes -Wno-main \
57 -I. -I$(SDK)/spu/include -I$(TOP)/src/mesa/ $(INCLUDE_DIRS) \
58 -DSPU_MAIN_PARAM_LONG_LONG \
59 -include spu_intrinsics.h
61 SPU_LFLAGS = -L$(SDK)/spu/lib -Wl,-N -lmisc -lm
66 SPU_EMBED = ppu32-embedspu
67 SPU_EMBED_FLAGS = -m32