1 # linux-cell (non-debug build)
3 include $(TOP)/configs/linux
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
29 COMMON_C_CPP_FLAGS = $(OPT_FLAGS) -Wall -Winline \
30 -fPIC -m32 -mabi=altivec -maltivec \
31 -I. -I$(SDK)/include \
32 -DGALLIUM_CELL $(DEFINES)
34 CFLAGS = $(COMMON_C_CPP_FLAGS) -Wmissing-prototypes -std=c99
36 CXXFLAGS = $(COMMON_C_CPP_FLAGS)
40 SRC_DIRS = glsl mesa gallium gallium/winsys glu glut/glx glew
42 # Build no traditional Mesa drivers:
46 MKDEP_OPTIONS = -fdepend -Y
49 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread \
50 -L$(SDK)/lib -m32 -Wl,-m,elf32ppc -R$(SDK)/lib -lspe2
53 CELL_SPU_LIB = $(TOP)/src/gallium/drivers/cell/spu/g3d_spu.a
60 SPU_CFLAGS = $(OPT_FLAGS) -W -Wall -Winline -Wmissing-prototypes -Wno-main \
61 -I. -I$(SDK)/spu/include -I$(TOP)/src/mesa/ $(INCLUDE_DIRS) \
62 -DSPU_MAIN_PARAM_LONG_LONG \
63 -include spu_intrinsics.h
65 SPU_LFLAGS = -L$(SDK)/spu/lib -Wl,-N -lmisc -lm
70 SPU_EMBED = ppu32-embedspu
71 SPU_EMBED_FLAGS = -m32