CXX = ppu32-g++
HOST_CC = gcc
+OPT_FLAGS = -g
+
# Cell SDK location
SDK = /opt/ibm/cell-sdk/prototype/sysroot/usr
-CFLAGS = -g -Wall -Winline -fPIC -m32 -mabi=altivec -maltivec -I. -I$(SDK)/include -DGALLIUM_CELL
+CFLAGS = $(OPT_FLAGS) -Wall -Winline -fPIC -m32 -mabi=altivec -maltivec -I. -I$(SDK)/include -DGALLIUM_CELL
CXXFLAGS = $(CFLAGS)
SPU_CC = spu-gcc
-SPU_CFLAGS = -g -W -Wall -Winline -Wmissing-prototypes -Wno-main -I. -I $(SDK)/spu/include -include spu_intrinsics.h -I $(TOP)/src/mesa/
+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