diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-18 16:34:47 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-18 16:34:47 +0200 |
commit | b6170cf5efa9fe01e92f941d3e46d8343a1bc667 (patch) | |
tree | f1a378b0052f08212ac7ea5aaf6a445ee71f50c2 /GNUmakefile | |
parent | 054dc70426505f72a1e9856c9e48c0ae3349d68d (diff) |
GNUmakefile: Add variable LLVM_CONFIG.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile index 7fb8754..fdaf049 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -72,12 +72,13 @@ ToiletKit_LDFLAGS = -lgmp -lffi -ldl USE_LLVM := YES ifeq ($(USE_LLVM),YES) +LLVM_CONFIG = llvm-config ADDITIONAL_OBJCCFLAGS = $(ADDITIONAL_OBJCFLAGS) ToiletKit_OBJC_FILES += MLKLexicalContext-MLKLLVMCompilation.m ToiletKit_OBJCC_FILES = MLKLLVMCompiler.mm ToiletKit_OBJCFLAGS = -DUSE_LLVM -ToiletKit_OBJCCFLAGS = -DUSE_LLVM `llvm-config --cxxflags` $(ToiletKit_OBJCFLAGS) -ToiletKit_LDFLAGS += `llvm-config --ldflags` `llvm-config --libs backend engine linker codegen transformutils scalaropts analysis ipo` +ToiletKit_OBJCCFLAGS = -DUSE_LLVM `$(LLVM_CONFIG) --cxxflags` $(ToiletKit_OBJCFLAGS) +ToiletKit_LDFLAGS += `$(LLVM_CONFIG) --ldflags` `$(LLVM_CONFIG) --libs backend engine linker codegen transformutils scalaropts analysis ipo` endif #TOOL_NAME = etoilet |