Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

linux-cell 942B

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