Add #include <iostream> since Value.h does not #include it any more.
[oota-llvm.git] / tools / opt / Makefile
index 71bdcb85d916fede9e60061a2ab733a19fe83694..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)
-       $(LinkG) -o $@ $(ObjectsG) -lvmcore -lanalysis -lbcreader -lbcwriter \
-                               -lopt -lasmwriter
+include $(LEVEL)/Makefile.common