Clone of mesa.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

linux-llvm 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # -*-makefile-*-
  2. # Configuration for Linux and LLVM with optimizations
  3. # Builds the llvmpipe gallium driver
  4. include $(TOP)/configs/linux
  5. CONFIG_NAME = linux-llvm
  6. # Add llvmpipe driver
  7. GALLIUM_DRIVERS_DIRS += llvmpipe
  8. OPT_FLAGS = -O3 -ansi -pedantic
  9. ARCH_FLAGS = -m32 -mmmx -msse -msse2 -mstackrealign
  10. DEFINES += -DNDEBUG -DGALLIUM_LLVMPIPE -DDRAW_LLVM -DHAVE_UDIS86
  11. # override -std=c99
  12. CFLAGS += -std=gnu99
  13. LLVM_VERSION := $(shell llvm-config --version)
  14. ifeq ($(LLVM_VERSION),)
  15. $(warning Could not find LLVM! Make Sure 'llvm-config' is in the path)
  16. MESA_LLVM=0
  17. else
  18. MESA_LLVM=1
  19. # $(info Using LLVM version: $(LLVM_VERSION))
  20. endif
  21. ifeq ($(MESA_LLVM),1)
  22. # LLVM_CFLAGS=`llvm-config --cflags`
  23. LLVM_CXXFLAGS=`llvm-config --cxxflags backend bitreader engine ipo interpreter instrumentation` -Wno-long-long
  24. LLVM_LDFLAGS = $(shell llvm-config --ldflags backend bitreader engine ipo interpreter instrumentation)
  25. LLVM_LIBS = $(shell llvm-config --libs backend bitwriter bitreader engine ipo interpreter instrumentation)
  26. MKLIB_OPTIONS=-cplusplus
  27. else
  28. LLVM_CFLAGS=
  29. LLVM_CXXFLAGS=
  30. endif
  31. LD = g++
  32. GL_LIB_DEPS = $(LLVM_LDFLAGS) $(LLVM_LIBS) $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -lstdc++ -ludis86