+##===- 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.
+#
+##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = opt
+REQUIRES_EH := 1
-USEDLIBS = bcreader bcwriter instrument profpaths \
- sparc mapping regalloc.a sched select codegen preopts \
- postopts.a \
- livevar scalaropts \
- ipo ipa.a datastructure transforms target.a analysis ipa.a \
- transformutils vmcore support
-
-TOOLLINKOPTS = -ldl
-KEEP_SYMBOLS = 1
+LINK_COMPONENTS := bitreader bitwriter instrumentation scalaropts ipo
include $(LEVEL)/Makefile.common
-