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.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. # Add llvmpipe driver
  7. GALLIUM_DRIVERS_DIRS += llvmpipe
  8. OPT_FLAGS = -g -ansi -pedantic
  9. DEFINES += -DDEBUG -DDEBUG_MATH -DGALLIUM_LLVMPIPE -DHAVE_UDIS86
  10. # override -std=c99
  11. CFLAGS += -std=gnu99
  12. LLVM_VERSION := $(shell llvm-config --version)
  13. ifeq ($(LLVM_VERSION),)
  14. $(warning Could not find LLVM! Make Sure 'llvm-config' is in the path)
  15. MESA_LLVM=0
  16. else
  17. MESA_LLVM=1
  18. # $(info Using LLVM version: $(LLVM_VERSION))
  19. endif
  20. ifeq ($(MESA_LLVM),1)
  21. # LLVM_CFLAGS=`llvm-config --cflags`
  22. LLVM_CXXFLAGS=`llvm-config --cxxflags backend bitreader engine ipo interpreter instrumentation` -Wno-long-long
  23. LLVM_LDFLAGS = $(shell llvm-config --ldflags backend bitreader engine ipo interpreter instrumentation)
  24. LLVM_LIBS = $(shell llvm-config --libs backend bitreader engine ipo interpreter instrumentation)
  25. MKLIB_OPTIONS=-cplusplus
  26. else
  27. LLVM_CFLAGS=
  28. LLVM_CXXFLAGS=
  29. endif
  30. LD = g++
  31. GL_LIB_DEPS = $(LLVM_LDFLAGS) $(LLVM_LIBS) $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -lstdc++ -ludis86