6acd63a498
Update the Makefiles and includes for the new paths. Note that there hasn't been no separation of the Makefiles yet, and make is jumping all over the place. That will be taken care shortly. But for now, make should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm might require some minor tweaks.
48 lines
877 B
Plaintext
48 lines
877 B
Plaintext
# linux-cell
|
|
|
|
include $(TOP)/configs/default
|
|
|
|
CONFIG_NAME = linux-cell
|
|
|
|
|
|
# Compiler and flags
|
|
CC = ppu32-gcc
|
|
CXX = ppu32-g++
|
|
HOST_CC = gcc
|
|
|
|
OPT_FLAGS = -g
|
|
|
|
# Cell SDK location
|
|
SDK = /opt/ibm/cell-sdk/prototype/sysroot/usr
|
|
|
|
|
|
CFLAGS = $(OPT_FLAGS) -Wall -Winline -fPIC -m32 -mabi=altivec -maltivec -I. -I$(SDK)/include -DGALLIUM_CELL
|
|
|
|
CXXFLAGS = $(CFLAGS)
|
|
|
|
# Omitting glw here:
|
|
SRC_DIRS = gallium 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 -lspe2
|
|
|
|
|
|
|
|
### SPU stuff
|
|
|
|
SPU_CC = spu-gcc
|
|
|
|
SPU_CFLAGS = $(OPT_FLAGS) -W -Wall -Winline -Wmissing-prototypes -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 = ppu-ar
|
|
SPU_AR_FLAGS = -qcs
|
|
|
|
SPU_EMBED = ppu32-embedspu
|
|
SPU_EMBED_FLAGS = -m32
|