Genericize the ReversePostOrderIterator.
[oota-llvm.git] / tools / lli / Makefile
index bf4483f5b4d4445c2fc40c8d61442d241f63ebbe..3e3f0b0d9e914790169dceedaeeac113d4f2edb0 100644 (file)
@@ -1,11 +1,21 @@
 LEVEL = ../..
+TOOLNAME = lli
+USEDLIBS = bcreader bcwriter vmcore asmwriter analysis support \
+          target transforms
+TOOLLINKOPTS = -ldl
+
 include $(LEVEL)/Makefile.common
 
-all:: lli
-clean::        
-       rm -f lli
+all :: $(LEVEL)/tools/Debug/RuntimeLib.bc
+
+Debug/RuntimeLib.c: RuntimeLib.lc
+       cp -f $< $@
+
+Debug/RuntimeLib.ll: Debug/RuntimeLib.c
+       @-rm $@
+       /home/vadve/lattner/cvs/gcc_install/bin/gcc $< -S -o $@
+
+$(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 $@
+
 
-lli : $(ObjectsG)
-       $(LinkG) -o $@ $(ObjectsG) \
-               -lopt -lbcreader -lbcwriter \
-               -lvmcore -lasmwriter -lanalysis -lsupport -ltarget