Make use of the new TOOLNAME/USEDLIBS options provided in Makefile.common
authorChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 22:59:25 +0000 (22:59 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 Sep 2001 22:59:25 +0000 (22:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@501 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Makefile
tools/analyze/Makefile
tools/as/Makefile
tools/dis/Makefile
tools/llc/Makefile
tools/lli/Makefile
tools/llvm-as/Makefile
tools/llvm-dis/Makefile
tools/opt/Makefile

index bf4483f5b4d4445c2fc40c8d61442d241f63ebbe..9cf483c479fb04072ab0d43bc4e3ae8f3c758bfb 100644 (file)
@@ -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
index 1ff0e53fd8f47622ebea2f3c982e13ac1096c121..98599b36ae1a0b4f21c7fa354d6a9553e790ff74 100644 (file)
@@ -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
index 74bfc6844f2ed041bef3f8368cfdbae0888094fe..b1d71e05b04e9fe163f6c2dcf1722fb42ecc6a69 100644 (file)
@@ -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
index 8ce3e2161c24c471df51b55ea12f6a2ac5a9229f..ef65811893577194c4b0d7391e4f7900d173a9c8 100644 (file)
@@ -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
 
index ea6ac95e63c81a94b631567c3b067ef783cf7efe..e0cce9a97a60925bac95825524f4853f4ac7c305 100644 (file)
@@ -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
index bf4483f5b4d4445c2fc40c8d61442d241f63ebbe..9cf483c479fb04072ab0d43bc4e3ae8f3c758bfb 100644 (file)
@@ -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
index 74bfc6844f2ed041bef3f8368cfdbae0888094fe..b1d71e05b04e9fe163f6c2dcf1722fb42ecc6a69 100644 (file)
@@ -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
index 8ce3e2161c24c471df51b55ea12f6a2ac5a9229f..ef65811893577194c4b0d7391e4f7900d173a9c8 100644 (file)
@@ -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
 
index 658b2998ec8ab1a10fe86126ce5860f7d6ba2d28..d374f0a76d19aaaec0b431738e16cf8b0b01e815 100644 (file)
@@ -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