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

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