Genericize the ReversePostOrderIterator.
[oota-llvm.git] / tools / lli / Makefile
index b1b936d3bf0ba92e6f88b269fe17e44177efcf40..3e3f0b0d9e914790169dceedaeeac113d4f2edb0 100644 (file)
@@ -1,6 +1,7 @@
 LEVEL = ../..
 TOOLNAME = lli
-USEDLIBS = opt bcreader bcwriter vmcore asmwriter analysis support target
+USEDLIBS = bcreader bcwriter vmcore asmwriter analysis support \
+          target transforms
 TOOLLINKOPTS = -ldl
 
 include $(LEVEL)/Makefile.common
@@ -10,10 +11,11 @@ all :: $(LEVEL)/tools/Debug/RuntimeLib.bc
 Debug/RuntimeLib.c: RuntimeLib.lc
        cp -f $< $@
 
-Debug/RuntimeLib.o: Debug/RuntimeLib.c
-       /home/vadve/lattner/cvs/gcc_install/bin/gcc $< -c -o $@
+Debug/RuntimeLib.ll: Debug/RuntimeLib.c
+       @-rm $@
+       /home/vadve/lattner/cvs/gcc_install/bin/gcc $< -S -o $@
 
-$(LEVEL)/tools/Debug/RuntimeLib.bc: Debug/RuntimeLib.o
-       opt -dce $< -o $@ -f -q
+$(LEVEL)/tools/Debug/RuntimeLib.bc: Debug/RuntimeLib.ll
+       LD_LIBRARY_PATH=../lib/Debug:/usr/dcs/software/evaluation/encap/gcc-3.0.2/lib/ ../Debug/gccas $< -o $@