llvm-link option and test for recent metadata mapping bug
[oota-llvm.git] / tools / llc / Makefile
index 847a175d25d7fb665f755dd4a32430609ce94a0b..ae64c9a5b57c6989c975f9bdf4eb717b0d7ce4c8 100644 (file)
@@ -2,21 +2,17 @@
 # 
 #                     The LLVM Compiler Infrastructure
 #
-# This file was developed by the LLVM research group and is distributed under
-# the University of Illinois Open Source License. See LICENSE.TXT for details.
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
 # 
 ##===----------------------------------------------------------------------===##
 
-LEVEL = ../..
-TOOLNAME = llc
-REQUIRES_EH := 1
+LEVEL := ../..
+TOOLNAME := llc
+LINK_COMPONENTS := all-targets bitreader asmparser irreader mirparser
 
-# Include this here so we can get the configuration of the targets
-# that have been configured for construction. We have to do this 
-# early so we can set up LINK_COMPONENTS before including Makefile.rules
-include $(LEVEL)/Makefile.config
+# Support plugins.
+NO_DEAD_STRIP := 1
 
-LINK_COMPONENTS := $(TARGETS_TO_BUILD) bcreader
-
-include $(LLVM_SRC_ROOT)/Makefile.rules
+include $(LEVEL)/Makefile.common