+##===- tools/opt/Makefile ------------------------------*- Makefile -*-===##
+#
+# The LLVM Compiler Infrastructure
+#
+# This file was developed by the LLVM research group and is distributed under
+# the University of Illinois Open Source License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
LEVEL = ../..
-include $(LEVEL)/Makefile.common
+TOOLNAME = opt
-all:: opt
-clean ::
- rm -f opt
+USEDLIBS = bcreader bcwriter \
+ instrument profpaths scalaropts \
+ ipo ipa datastructure transforms target.a analysis \
+ transformutils vmcore support
+TOOLLINKOPTS = $(PLATFORMLIBDL)
-opt : $(ObjectsG) ../../lib/Optimizations/Debug/libopt.a
- $(LinkG) -o $@ $(ObjectsG) -lopt -lbcreader -lbcwriter \
- -lasmwriter -lanalysis -lvmcore
+include $(LEVEL)/Makefile.common