summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-23 18:41:38 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-23 18:41:38 +0200
commita7d76b264db02bb86c54ce5cb159df653af05bf3 (patch)
treedcf706862c4bab018b8841575cbab9e17d684f1f /GNUmakefile
parent6f71f22d665d7d629fd34f8ec3ba21ef84dda31a (diff)
GNUmakefile: Minor cleanups.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index f1937b0..445e0d6 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -86,7 +86,7 @@ ToiletKit_LDFLAGS = -lgmp -lffi -ldl
ifeq ($(USE_LLVM),YES)
ADDITIONAL_OBJCFLAGS += -DUSE_LLVM
LLVM_CONFIG = llvm-config
-LLVM_LDFLAGS = `$(LLVM_CONFIG) --ldflags` `$(LLVM_CONFIG) --libs backend engine linker codegen transformutils scalaropts analysis ipo`
+LLVM_LDFLAGS = $(shell $(LLVM_CONFIG) --ldflags) $(shell $(LLVM_CONFIG) --libs backend engine linker codegen transformutils scalaropts analysis ipo)
endif
ifeq ($(BUILD_TOILET_LLVM),YES)
@@ -128,13 +128,14 @@ etshell_OBJC_LIBS += -lStepTalk -lreadline -lncurses -lToiletKit \
etshell_OBJCFLAGS = -w
toilet_OBJC_FILES = MLKReadEvalPrintLoop.m
+toilet_OBJCC_FILES = _stamp.mm
toilet_OBJC_LIBS += -ledit -lncurses -LToiletKit.framework \
-LToiletKit.framework/Versions/Current -lToiletKit
toilet_OBJCFLAGS = -Wall
ifeq ($(USE_LLVM),YES)
-toilet_OBJC_LIBS += -Lobj -ltoilet-llvm $(LLVM_LDFLAGS) -lstdc++
+toilet_OBJC_LIBS += -Lobj -ltoilet-llvm $(LLVM_LDFLAGS)
endif
Test_OBJC_FILES = MLKLowLevelTests.m
@@ -149,8 +150,11 @@ include $(GNUSTEP_MAKEFILES)/tool.make
before-all:: before-etshell before-toilet
-before-toilet:: $(KIT_TARGETS)
- rm -f obj/toilet
+# _stamp.mm serves two distinct purposes. First, it causes toilet to be
+# relinked whenever one of the $(KIT_TARGETS) has been updated, and
+# second, it causes toilet to be linked with g++.
+_stamp.mm: #$(KIT_TARGETS)
+ touch $@
before-etshell:: ToiletKit
rm -f obj/etshell