summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-07 22:59:25 +0000
committerChris Lattner <sabre@nondot.org>2001-09-07 22:59:25 +0000
commitc9744e7f269ec8003b64c39c6c9e62f0b6c33a5a (patch)
tree70171baa0239c3fe93146e5b958366d6b5124c01
parentf074cfc59e058b4ccee260f5434c6af4c50487af (diff)
Make use of the new TOOLNAME/USEDLIBS options provided in Makefile.common
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@501 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/ExecutionEngine/Makefile11
-rw-r--r--tools/analyze/Makefile13
-rw-r--r--tools/as/Makefile10
-rw-r--r--tools/dis/Makefile9
-rw-r--r--tools/llc/Makefile12
-rw-r--r--tools/lli/Makefile11
-rw-r--r--tools/llvm-as/Makefile10
-rw-r--r--tools/llvm-dis/Makefile9
-rw-r--r--tools/opt/Makefile10
9 files changed, 27 insertions, 68 deletions
diff --git a/lib/ExecutionEngine/Makefile b/lib/ExecutionEngine/Makefile
index bf4483f5b4d..9cf483c479f 100644
--- a/lib/ExecutionEngine/Makefile
+++ b/lib/ExecutionEngine/Makefile
@@ -1,11 +1,6 @@
LEVEL = ../..
-include $(LEVEL)/Makefile.common
+TOOLNAME = lli
+USEDLIBS = opt bcreader bcwriter vmcore asmwriter analysis support target
-all:: lli
-clean::
- rm -f lli
+include $(LEVEL)/Makefile.common
-lli : $(ObjectsG)
- $(LinkG) -o $@ $(ObjectsG) \
- -lopt -lbcreader -lbcwriter \
- -lvmcore -lasmwriter -lanalysis -lsupport -ltarget
diff --git a/tools/analyze/Makefile b/tools/analyze/Makefile
index 1ff0e53fd8f..98599b36ae1 100644
--- a/tools/analyze/Makefile
+++ b/tools/analyze/Makefile
@@ -1,13 +1,6 @@
LEVEL = ../..
-include $(LEVEL)/Makefile.common
-
-all:: analyze
-clean ::
- rm -f analyze
+TOOLNAME = analyze
+USEDLIBS = opt asmparser bcreader vmcore asmwriter analysis opt support
-LIBDEPS = ../../lib/Optimizations/Debug/libopt.a ../../lib/Analysis/Debug/libanalysis.a
+include $(LEVEL)/Makefile.common
-analyze : $(ObjectsG) Debug/.dir Depend/.dir $(LIBDEPS)
- $(LinkG) -o $@ $(ObjectsG) -lopt -lasmparser \
- -lbcreader -lvmcore -lasmwriter -lanalysis \
- -lopt -lsupport
diff --git a/tools/as/Makefile b/tools/as/Makefile
index 74bfc6844f2..b1d71e05b04 100644
--- a/tools/as/Makefile
+++ b/tools/as/Makefile
@@ -1,10 +1,6 @@
LEVEL = ../..
-include $(LEVEL)/Makefile.common
-all:: as
-clean::
- rm -f as
+TOOLNAME = as
+USEDLIBS = asmparser bcwriter asmwriter analysis vmcore support
-as : $(ObjectsG) ../../lib/Assembly/Parser/Debug/libasmparser.a \
- ../../lib/VMCore/Debug/libvmcore.a
- $(LinkG) -o as $(ObjectsG) -lasmparser -lbcwriter -lasmwriter -lanalysis -lvmcore -lsupport
+include $(LEVEL)/Makefile.common
diff --git a/tools/dis/Makefile b/tools/dis/Makefile
index 8ce3e2161c2..ef658118935 100644
--- a/tools/dis/Makefile
+++ b/tools/dis/Makefile
@@ -1,10 +1,7 @@
LEVEL = ../..
-include $(LEVEL)/Makefile.common
-all:: dis
-clean ::
- rm -f dis
+TOOLNAME = dis
+USEDLIBS = bcreader asmwriter analysis vmcore support
+include $(LEVEL)/Makefile.common
-dis : $(ObjectsG)
- $(LinkG) -o $@ $(ObjectsG) -lbcreader -lasmwriter -lanalysis -lvmcore -lsupport
diff --git a/tools/llc/Makefile b/tools/llc/Makefile
index ea6ac95e63c..e0cce9a97a6 100644
--- a/tools/llc/Makefile
+++ b/tools/llc/Makefile
@@ -1,12 +1,6 @@
LEVEL = ../..
-include $(LEVEL)/Makefile.common
+TOOLNAME = llc
+USEDLIBS = sched select sparc target opt livevar bcreader vmcore asmwriter analysis support
-all:: llc
-clean::
- rm -f llc
+include $(LEVEL)/Makefile.common
-llc : $(ObjectsG) $(LibsG)
- $(LinkG) -o $@ $(ObjectsG) \
- -lsched -lselect -lsparc -ltarget \
- -lopt -llivevar -lbcreader -lbcwriter \
- -lvmcore -lasmwriter -lanalysis -lsupport
diff --git a/tools/lli/Makefile b/tools/lli/Makefile
index bf4483f5b4d..9cf483c479f 100644
--- a/tools/lli/Makefile
+++ b/tools/lli/Makefile
@@ -1,11 +1,6 @@
LEVEL = ../..
-include $(LEVEL)/Makefile.common
+TOOLNAME = lli
+USEDLIBS = opt bcreader bcwriter vmcore asmwriter analysis support target
-all:: lli
-clean::
- rm -f lli
+include $(LEVEL)/Makefile.common
-lli : $(ObjectsG)
- $(LinkG) -o $@ $(ObjectsG) \
- -lopt -lbcreader -lbcwriter \
- -lvmcore -lasmwriter -lanalysis -lsupport -ltarget
diff --git a/tools/llvm-as/Makefile b/tools/llvm-as/Makefile
index 74bfc6844f2..b1d71e05b04 100644
--- a/tools/llvm-as/Makefile
+++ b/tools/llvm-as/Makefile
@@ -1,10 +1,6 @@
LEVEL = ../..
-include $(LEVEL)/Makefile.common
-all:: as
-clean::
- rm -f as
+TOOLNAME = as
+USEDLIBS = asmparser bcwriter asmwriter analysis vmcore support
-as : $(ObjectsG) ../../lib/Assembly/Parser/Debug/libasmparser.a \
- ../../lib/VMCore/Debug/libvmcore.a
- $(LinkG) -o as $(ObjectsG) -lasmparser -lbcwriter -lasmwriter -lanalysis -lvmcore -lsupport
+include $(LEVEL)/Makefile.common
diff --git a/tools/llvm-dis/Makefile b/tools/llvm-dis/Makefile
index 8ce3e2161c2..ef658118935 100644
--- a/tools/llvm-dis/Makefile
+++ b/tools/llvm-dis/Makefile
@@ -1,10 +1,7 @@
LEVEL = ../..
-include $(LEVEL)/Makefile.common
-all:: dis
-clean ::
- rm -f dis
+TOOLNAME = dis
+USEDLIBS = bcreader asmwriter analysis vmcore support
+include $(LEVEL)/Makefile.common
-dis : $(ObjectsG)
- $(LinkG) -o $@ $(ObjectsG) -lbcreader -lasmwriter -lanalysis -lvmcore -lsupport
diff --git a/tools/opt/Makefile b/tools/opt/Makefile
index 658b2998ec8..d374f0a76d1 100644
--- a/tools/opt/Makefile
+++ b/tools/opt/Makefile
@@ -1,10 +1,6 @@
LEVEL = ../..
-include $(LEVEL)/Makefile.common
+TOOLNAME = opt
+USEDLIBS = opt bcreader bcwriter asmwriter analysis vmcore support
-all:: opt
-clean ::
- rm -f opt
+include $(LEVEL)/Makefile.common
-opt : $(ObjectsG) ../../lib/Optimizations/Debug/libopt.a
- $(LinkG) -o $@ $(ObjectsG) -lopt -lbcreader -lbcwriter \
- -lasmwriter -lanalysis -lvmcore -lsupport