-LEVEL = ../..
-include $(LEVEL)/Makefile.common
+#===- 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.
+#
+##===----------------------------------------------------------------------===##
+
+LEVEL := ../..
+TOOLNAME := llc
+LINK_COMPONENTS := all-targets bitreader asmparser irreader
-all:: llc
-clean::
- rm -f llc
+# Support plugins.
+NO_DEAD_STRIP := 1
+
+include $(LEVEL)/Makefile.common
-llc : $(ObjectsG)
- $(LinkG) -o $@ $(ObjectsG) \
- -lselect -lsparc -ltarget \
- -lopt -lbcreader -lbcwriter \
- -lvmcore -lasmwriter -lanalysis -lsupport