-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 mirparser
-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) $(LibsG)
- $(LinkG) -o $@ -static \
- -lllc -lselect -lsparc -ltarget \
- -lopt -lbcreader -lbcwriter \
- -lvmcore -lasmwriter -lanalysis -lsupport