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 = -mmmx -msse -msse2 -mstackrealign
15 DEFINES += -DNDEBUG -DGALLIUM_LLVMPIPE
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 HAVE_LLVM := 0x0$(subst .,0,$(LLVM_VERSION:svn=))
28 DEFINES += -DHAVE_LLVM=$(HAVE_LLVM)
29 # $(info Using LLVM version: $(LLVM_VERSION))
33 LLVM_CFLAGS=`llvm-config --cppflags|sed 's/-DNDEBUG\>//g'`
34 LLVM_CXXFLAGS=`llvm-config --cxxflags` -Wno-long-long
35 LLVM_LDFLAGS = $(shell llvm-config --ldflags)
36 LLVM_LIBS = $(shell llvm-config --libs)
37 MKLIB_OPTIONS=-cplusplus
44 GL_LIB_DEPS = $(LLVM_LDFLAGS) $(LLVM_LIBS) $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -lstdc++
46 # to allow the NV drivers to compile
47 LIBDRM_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm)