Don't create a MemoryBuffer just to get the MemoryBufferRef. NFC.
[oota-llvm.git] / tools / llc / Makefile
index 5a5a5cf3c2ee1745b084f3848064ec1aff84fb70..71bce4dc1adf9a9cc303b1cd432a67f44d70b8af 100644 (file)
@@ -1,23 +1,18 @@
-LEVEL = ../..
+#===- tools/llc/Makefile -----------------------------------*- Makefile -*-===##
+# 
+#                     The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+# 
+##===----------------------------------------------------------------------===##
 
-DIRS  = 
+LEVEL := ../..
+TOOLNAME := llc
+LINK_COMPONENTS := all-targets bitreader asmparser irreader
 
-LIBRARYNAME = llc
-
-## List source files in link order
-Source  = \
-         llc.o \
-         LLCOptions.o
+# Support plugins.
+NO_DEAD_STRIP := 1
 
 include $(LEVEL)/Makefile.common
 
-all:: llc
-
-clean::        
-       rm -f llc
-
-llc : $(ObjectsG)
-       $(LinkG) -o $@ -static \
-               -lllc -lselect -lsparc -ltarget \
-               -lopt -lbcreader -lbcwriter \
-               -lvmcore -lasmwriter -lanalysis -lsupport