Merge remote branch 'origin/master' into lp-binning
[profile/ivi/mesa.git] / configs / linux-cell
1 # linux-cell  (non-debug build)
2
3 include $(TOP)/configs/default
4
5 CONFIG_NAME = linux-cell
6
7
8 # Omiting other gallium drivers:
9 GALLIUM_DRIVERS_DIRS = cell softpipe trace
10
11
12 # Compiler and flags
13 CC = ppu32-gcc
14 CXX = ppu32-g++
15 HOST_CC = gcc
16 APP_CC = gcc
17 APP_CXX = g++
18
19 OPT_FLAGS = -O3
20
21 # Cell SDK location
22 ## For SDK 2.1: (plus, remove -DSPU_MAIN_PARAM_LONG_LONG below)
23 #SDK = /opt/ibm/cell-sdk/prototype/sysroot/usr
24 ## For SDK 3.0:
25 SDK = /opt/cell/sdk/usr
26
27
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
32
33 CXXFLAGS = $(CFLAGS)
34
35 # Omitting glw here:
36 SRC_DIRS = glsl mesa gallium gallium/winsys glu glut/glx glew
37
38 # Build no traditional Mesa drivers:
39 DRIVER_DIRS =
40
41
42 MKDEP_OPTIONS = -fdepend -Y
43
44
45 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread \
46         -L$(SDK)/lib -m32 -Wl,-m,elf32ppc -R$(SDK)/lib -lspe2
47
48
49 CELL_SPU_LIB = $(TOP)/src/gallium/drivers/cell/spu/g3d_spu.a
50
51
52 ### SPU stuff
53
54 SPU_CC = spu-gcc
55
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
60
61 SPU_LFLAGS = -L$(SDK)/spu/lib -Wl,-N -lmisc -lm
62
63 SPU_AR = ppu-ar
64 SPU_AR_FLAGS = -qcs
65
66 SPU_EMBED = ppu32-embedspu
67 SPU_EMBED_FLAGS = -m32