summaryrefslogtreecommitdiff
path: root/configs/linux-cell
blob: f581b5a6fe3c7a6db490a5e16cbb5b38077c6283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# linux-cell

include $(TOP)/configs/default

CONFIG_NAME = linux-cell


# Compiler and flags
CC = /usr/bin/ppu32-gcc
CXX = /usr/bin/ppu32-g++

# Cell SDK location
SDK = /opt/ibm/cell-sdk/prototype/sysroot/usr


CFLAGS = -g -W -Wall -Winline -fPIC -m32 -mabi=altivec -maltivec -I. -I/usr/include -I$(SDK)/include -include altivec.h

CXXFLAGS = $(CFLAGS)

# Omitting glw here:
SRC_DIRS = mesa glu glut/glx


MKDEP_OPTIONS = -fdepend -Y


GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread \
	-L$(SDK)/lib -m32 -Wl,-m,elf32ppc -R$(SDK)/lib -lspe



### SPU stuff

SPU_CC = /usr/bin/spu-gcc

SPU_CFLAGS = -g -W -Wall -Winline -Wno-main -I. -I $(SDK)/spu/include -include spu_intrinsics.h -I $(TOP)/src/mesa/

SPU_LFLAGS = -L$(SDK)/spu/lib -Wl,-N -lmisc

SPU_AR = /usr/bin/ar
SPU_AR_FLAGS = -qcs

SPU_EMBED = /usr/bin/embedspu
SPU_EMBED_FLAGS = -m32