[PM] Move the analysis registry into the Passes.cpp file and provide
[oota-llvm.git] / tools / opt / Makefile
index aea04ac544c1ef8d0bacd6cae04314a4bcd3f26c..cfa9c31cb95855633c271c64895402553fde5be3 100644 (file)
@@ -1,12 +1,17 @@
-LEVEL = ../..
-TOOLNAME = opt
+##===- tools/opt/Makefile ----------------------------------*- Makefile -*-===##
+#
+#                     The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
 
-USEDLIBS = bcreader bcwriter instrument profpaths \
-          sparc.a target.a mapping.a regalloc.a sched.a select.a preselect \
-          livevar.a sparc.a scalaropts \
-          ipo ipa.a datastructure.a transforms target.a analysis \
-           transformutils vmcore support
-TOOLLINKOPTS = -ldl
+LEVEL := ../..
+TOOLNAME := opt
+LINK_COMPONENTS := bitreader bitwriter asmparser irreader instrumentation scalaropts objcarcopts ipo vectorize all-targets codegen
 
-include $(LEVEL)/Makefile.common
+# Support plugins.
+NO_DEAD_STRIP := 1
 
+include $(LEVEL)/Makefile.common