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
diff --git a/tools/llvm-as/Makefile b/tools/llvm-as/Makefile
index 74bfc68..b1d71e0 100644
--- a/tools/llvm-as/Makefile
+++ b/tools/llvm-as/Makefile
@@ -1,10 +1,6 @@
LEVEL = ../..
+
+TOOLNAME = as
+USEDLIBS = asmparser bcwriter asmwriter analysis vmcore support
+
include $(LEVEL)/Makefile.common
-
-all:: as
-clean::
- rm -f as
-
-as : $(ObjectsG) ../../lib/Assembly/Parser/Debug/libasmparser.a \
- ../../lib/VMCore/Debug/libvmcore.a
- $(LinkG) -o as $(ObjectsG) -lasmparser -lbcwriter -lasmwriter -lanalysis -lvmcore -lsupport