Cell: Add INCLUDE_DIRS to SPU_CFLAGS to fix build.
[mesa.git] / configs / linux-cell
1 # linux-cell
2
3 include $(TOP)/configs/default
4
5 CONFIG_NAME = linux-cell
6
7
8 # Compiler and flags
9 CC = ppu32-gcc
10 CXX = ppu32-g++
11 HOST_CC = gcc
12
13 OPT_FLAGS = -g
14
15 # Cell SDK location
16 SDK = /opt/ibm/cell-sdk/prototype/sysroot/usr
17
18
19 CFLAGS = $(OPT_FLAGS) -Wall -Winline -fPIC -m32 -mabi=altivec -maltivec -I. -I$(SDK)/include -DGALLIUM_CELL
20
21 CXXFLAGS = $(CFLAGS)
22
23 # Omitting glw here:
24 SRC_DIRS = gallium mesa glu glut/glx
25
26
27 MKDEP_OPTIONS = -fdepend -Y
28
29
30 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread \
31 -L$(SDK)/lib -m32 -Wl,-m,elf32ppc -R$(SDK)/lib -lspe2
32
33
34
35 ### SPU stuff
36
37 SPU_CC = spu-gcc
38
39 SPU_CFLAGS = $(OPT_FLAGS) -W -Wall -Winline -Wmissing-prototypes -Wno-main
40 -I. -I$(SDK)/spu/include -I$(TOP)/src/mesa/ $(INCLUDE_DIRS) \
41 -include spu_intrinsics.h
42
43 SPU_LFLAGS = -L$(SDK)/spu/lib -Wl,-N -lmisc
44
45 SPU_AR = ppu-ar
46 SPU_AR_FLAGS = -qcs
47
48 SPU_EMBED = ppu32-embedspu
49 SPU_EMBED_FLAGS = -m32