Merge branch 'gallium-polygon-stipple'
[mesa.git] / configs / linux-cell
1 # linux-cell (non-debug build)
2
3 include $(TOP)/configs/linux
4
5 CONFIG_NAME = linux-cell
6
7
8 # Omiting other gallium drivers:
9 GALLIUM_DRIVERS_DIRS = cell softpipe trace rbug identity
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
29 COMMON_C_CPP_FLAGS = $(OPT_FLAGS) -Wall -Winline \
30 -fPIC -m32 -mabi=altivec -maltivec \
31 -I. -I$(SDK)/include \
32 -DGALLIUM_CELL $(DEFINES)
33
34 CFLAGS = $(COMMON_C_CPP_FLAGS) -Wmissing-prototypes -std=c99
35
36 CXXFLAGS = $(COMMON_C_CPP_FLAGS)
37
38
39 # Omitting glw here:
40 SRC_DIRS = glsl mapi/glapi mapi/vgapi mesa \
41 gallium gallium/winsys gallium/targets glu
42
43 # Build no traditional Mesa drivers:
44 DRIVER_DIRS =
45
46
47 MKDEP_OPTIONS = -fdepend -Y
48
49
50 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread \
51 -L$(SDK)/lib -m32 -Wl,-m,elf32ppc -R$(SDK)/lib -lspe2
52
53
54 CELL_SPU_LIB = $(TOP)/src/gallium/drivers/cell/spu/g3d_spu.a
55
56
57 ### SPU stuff
58
59 SPU_CC = spu-gcc
60
61 SPU_CFLAGS = $(OPT_FLAGS) -W -Wall -Winline -Wmissing-prototypes -Wno-main \
62 -I. -I$(SDK)/spu/include -I$(TOP)/src/mesa/ $(INCLUDE_DIRS) \
63 -DSPU_MAIN_PARAM_LONG_LONG \
64 -include spu_intrinsics.h
65
66 SPU_LFLAGS = -L$(SDK)/spu/lib -Wl,-N -lmisc -lm
67
68 SPU_AR = ppu-ar
69 SPU_AR_FLAGS = -qcs
70
71 SPU_EMBED = ppu32-embedspu
72 SPU_EMBED_FLAGS = -m32