2 # Configuration for Linux and LLVM with debugging info
3 # Builds the llvmpipe gallium driver
5 include $(TOP)/configs/linux
7 CONFIG_NAME = linux-llvm
10 GALLIUM_DRIVERS_DIRS += llvmpipe
12 OPT_FLAGS = -g -ansi -pedantic
13 DEFINES += -DDEBUG -DDEBUG_MATH -DGALLIUM_LLVMPIPE -DHAVE_UDIS86
18 LLVM_VERSION := $(shell llvm-config --version)
20 ifeq ($(LLVM_VERSION),)
21 $(warning Could not find LLVM! Make Sure 'llvm-config' is in the path)
25 # $(info Using LLVM version: $(LLVM_VERSION))
29 # LLVM_CFLAGS=`llvm-config --cflags`
30 LLVM_CXXFLAGS=`llvm-config --cxxflags backend bitreader engine ipo interpreter instrumentation` -Wno-long-long
31 LLVM_LDFLAGS = $(shell llvm-config --ldflags backend bitreader engine ipo interpreter instrumentation)
32 LLVM_LIBS = $(shell llvm-config --libs backend bitreader engine ipo interpreter instrumentation)
33 MKLIB_OPTIONS=-cplusplus
40 GL_LIB_DEPS = $(LLVM_LDFLAGS) $(LLVM_LIBS) $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -lstdc++ -ludis86