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-llvm 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # -*-makefile-*-
  2. # Configuration for Linux and LLVM with debugging info
  3. # Builds the llvmpipe gallium driver
  4. include $(TOP)/configs/linux
  5. CONFIG_NAME = linux-llvm
  6. #GALLIUM_AUXILIARY_DIRS += gallivm
  7. # Add llvmpipe driver
  8. GALLIUM_DRIVERS_DIRS += llvmpipe
  9. OPT_FLAGS = -g -ansi -pedantic
  10. DEFINES += -DDEBUG -DDEBUG_MATH -DGALLIUM_LLVMPIPE -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 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