Add #include <iostream> since Value.h does not #include it any more.
[oota-llvm.git] / tools / opt / Makefile
index 658b2998ec8ab1a10fe86126ce5860f7d6ba2d28..42e87ca8bb50608e1fc9beffe8c8dd69f684be65 100644 (file)
@@ -1,10 +1,18 @@
+##===- 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 -lsupport
+include $(LEVEL)/Makefile.common