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