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

1234567891011121314151617181920212223242526272829303132333435
  1. # -*-makefile-*-
  2. # Configuration for Linux and LLVM with debugging info
  3. include $(TOP)/configs/linux
  4. CONFIG_NAME = linux-llvm
  5. GALLIUM_AUXILIARY_DIRS += gallivm
  6. OPT_FLAGS = -g -ansi -pedantic
  7. DEFINES += -DDEBUG -DDEBUG_MATH -DMESA_LLVM=1
  8. LLVM_VERSION := $(shell llvm-config --version)
  9. ifeq ($(LLVM_VERSION),)
  10. $(warning Could not find LLVM! Make Sure 'llvm-config' is in the path)
  11. MESA_LLVM=0
  12. else
  13. MESA_LLVM=1
  14. $(info Using LLVM version: $(LLVM_VERSION))
  15. endif
  16. ifeq ($(MESA_LLVM),1)
  17. # LLVM_CFLAGS=`llvm-config --cflags`
  18. LLVM_CXXFLAGS=`llvm-config --cxxflags backend bitreader engine ipo` -Wno-long-long
  19. LLVM_LDFLAGS=`llvm-config --ldflags backend bitreader engine ipo`
  20. LLVM_LIBS=`llvm-config --libs backend bitreader engine ipo`
  21. MKLIB_OPTIONS=-cplusplus
  22. else
  23. LLVM_CFLAGS=
  24. LLVM_CXXFLAGS=
  25. endif
  26. LD = g++
  27. GL_LIB_DEPS = $(LLVM_LDFLAGS) $(LLVM_LIBS) $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -lstdc++