2 # Configuration for Linux and LLVM with debugging info
4 include $(TOP)/configs/linux
6 CONFIG_NAME = linux-llvm
8 GALLIUM_AUXILIARY_DIRS += gallivm
10 OPT_FLAGS = -g -ansi -pedantic
11 DEFINES += -DDEBUG -DDEBUG_MATH -DMESA_LLVM=1
13 LLVM_VERSION := $(shell llvm-config --version)
15 ifeq ($(LLVM_VERSION),)
16 $(warning Could not find LLVM! Make Sure 'llvm-config' is in the path)
20 $(info Using LLVM version: $(LLVM_VERSION))
24 # LLVM_CFLAGS=`llvm-config --cflags`
25 LLVM_CXXFLAGS=`llvm-config --cxxflags backend bitreader engine ipo interpreter instrumentation` -Wno-long-long
26 LLVM_LDFLAGS=`llvm-config --ldflags backend bitreader engine ipo interpreter instrumentation`
27 LLVM_LIBS=`llvm-config --libs backend bitreader engine ipo interpreter instrumentation`
28 MKLIB_OPTIONS=-cplusplus
35 GL_LIB_DEPS = $(LLVM_LDFLAGS) $(LLVM_LIBS) $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -lstdc++