summaryrefslogtreecommitdiffstats
path: root/llvm/tools
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
commit9373bd69b7c04e517ae88be775e5d96914b184ef (patch)
treef791c26533eff302120b8d35a3e1c5f1e7cfcf74 /llvm/tools
parentc0a673f13396e352eb1b969ad3110222e325118d (diff)
downloadbcm5719-llvm-9373bd69b7c04e517ae88be775e5d96914b184ef.tar.gz
bcm5719-llvm-9373bd69b7c04e517ae88be775e5d96914b184ef.zip
Make use of the new TOOLNAME/USEDLIBS options provided in Makefile.common
llvm-svn: 501
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/analyze/Makefile13
-rw-r--r--llvm/tools/as/Makefile10
-rw-r--r--llvm/tools/dis/Makefile9
-rw-r--r--llvm/tools/llc/Makefile12
-rw-r--r--llvm/tools/lli/Makefile11
-rw-r--r--llvm/tools/llvm-as/Makefile10
-rw-r--r--llvm/tools/llvm-dis/Makefile9
-rw-r--r--llvm/tools/opt/Makefile10
8 files changed, 24 insertions, 60 deletions
diff --git a/llvm/tools/analyze/Makefile b/llvm/tools/analyze/Makefile
index 1ff0e53fd8f..98599b36ae1 100644
--- a/llvm/tools/analyze/Makefile
+++ b/llvm/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/llvm/tools/as/Makefile b/llvm/tools/as/Makefile
index 74bfc6844f2..b1d71e05b04 100644
--- a/llvm/tools/as/Makefile
+++ b/llvm/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/llvm/tools/dis/Makefile b/llvm/tools/dis/Makefile
index 8ce3e2161c2..ef658118935 100644
--- a/llvm/tools/dis/Makefile
+++ b/llvm/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/llvm/tools/llc/Makefile b/llvm/tools/llc/Makefile
index ea6ac95e63c..e0cce9a97a6 100644
--- a/llvm/tools/llc/Makefile
+++ b/llvm/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/llvm/tools/lli/Makefile b/llvm/tools/lli/Makefile
index bf4483f5b4d..9cf483c479f 100644
--- a/llvm/tools/lli/Makefile
+++ b/llvm/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/llvm/tools/llvm-as/Makefile b/llvm/tools/llvm-as/Makefile
index 74bfc6844f2..b1d71e05b04 100644
--- a/llvm/tools/llvm-as/Makefile
+++ b/llvm/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/llvm/tools/llvm-dis/Makefile b/llvm/tools/llvm-dis/Makefile
index 8ce3e2161c2..ef658118935 100644
--- a/llvm/tools/llvm-dis/Makefile
+++ b/llvm/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/llvm/tools/opt/Makefile b/llvm/tools/opt/Makefile
index 658b2998ec8..d374f0a76d1 100644
--- a/llvm/tools/opt/Makefile
+++ b/llvm/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
OpenPOWER on IntegriCloud