2 # Configuration for Linux and LLVM with optimizations
3 # Builds the llvmpipe gallium driver
5 include $(TOP)/configs/linux
7 CONFIG_NAME = linux-llvm
10 GALLIUM_DRIVERS_DIRS += llvmpipe
12 OPT_FLAGS = -O3 -ansi -pedantic
13 ARCH_FLAGS = -m32 -mmmx -msse -msse2 -mstackrealign
15 DEFINES += -DNDEBUG -DGALLIUM_LLVMPIPE -DDRAW_LLVM -DHAVE_UDIS86
20 LLVM_VERSION := $(shell llvm-config --version)
22 ifeq ($(LLVM_VERSION),)
23 $(warning Could not find LLVM! Make Sure 'llvm-config' is in the path)
27 # $(info Using LLVM version: $(LLVM_VERSION))
31 # LLVM_CFLAGS=`llvm-config --cflags`
32 LLVM_CXXFLAGS=`llvm-config --cxxflags backend bitreader engine ipo interpreter instrumentation` -Wno-long-long
33 LLVM_LDFLAGS = $(shell llvm-config --ldflags backend bitreader engine ipo interpreter instrumentation)
34 LLVM_LIBS = $(shell llvm-config --libs backend bitwriter bitreader engine ipo interpreter instrumentation)
35 MKLIB_OPTIONS=-cplusplus
42 GL_LIB_DEPS = $(LLVM_LDFLAGS) $(LLVM_LIBS) $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -lstdc++ -ludis86