-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 scalaropts \
- ipo ipa.a datastructure transforms target.a analysis \
- transformutils vmcore support
-
-TOOLLINKOPTS = $(PLATFORMLIBDL)
+LEVEL := ../..
+TOOLNAME := opt
+LINK_COMPONENTS := bitreader bitwriter asmparser instrumentation scalaropts ipo
include $(LEVEL)/Makefile.common