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 959B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 \
  13. -I. -I$(SDK)/include \
  14. -DGALLIUM_CELL -DUSE_XSHM
  15. CXXFLAGS = $(CFLAGS)
  16. # Omitting glw here:
  17. SRC_DIRS = gallium mesa gallium/winsys glu glut/glx
  18. MKDEP_OPTIONS = -fdepend -Y
  19. GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread \
  20. -L$(SDK)/lib -m32 -Wl,-m,elf32ppc -R$(SDK)/lib -lspe2
  21. ### SPU stuff
  22. SPU_CC = spu-gcc
  23. SPU_CFLAGS = $(OPT_FLAGS) -W -Wall -Winline -Wmissing-prototypes -Wno-main \
  24. -I. -I$(SDK)/spu/include -I$(TOP)/src/mesa/ $(INCLUDE_DIRS) \
  25. -include spu_intrinsics.h
  26. SPU_LFLAGS = -L$(SDK)/spu/lib -Wl,-N -lmisc
  27. SPU_AR = ppu-ar
  28. SPU_AR_FLAGS = -qcs
  29. SPU_EMBED = ppu32-embedspu
  30. SPU_EMBED_FLAGS = -m32