+##===- tools/bugpoint/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 = bugpoint
-OPTLIBS = instrument profpaths scalaropts ipo
-ANALIBS = datastructure ipa target.a analysis
-
-USEDLIBS = ipo scalaropts $(ANALIBS) \
- transformutils asmparser bcreader bcwriter vmcore support
-
-TOOLLINKOPTS = -ldl
+LINK_COMPONENTS := asmparser instrumentation scalaropts ipo \
+ linker bitreader bitwriter
+REQUIRES_EH := 1
include $(LEVEL)/Makefile.common