Add new function utohexstr.
[oota-llvm.git] / Makefile.rules
index 8088d506935a5e96084210766a14a44715bfb61c..a376a113cabe18a74d64a95364a3ccafcf040088 100644 (file)
@@ -39,7 +39,7 @@ BURG = /home/vadve/vadve/Research/DynOpt/Burg/burg
 BURG_OPTS = -I
 
 
-PURIFY = /usr/dcs/applications/purify/bin/purify -cache-dir="/home/vadve/lattner/purifycache" -chain-length="10" -messages=all
+PURIFY = /usr/dcs/applications/purify/bin/purify -cache-dir="$(HOME)/purifycache" -chain-length="30" -messages=all 
 
 #---------------------------------------------------------
 # Compilation options...
@@ -63,8 +63,11 @@ CompileO = $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fnon
 # Link final executable
 
 # To enable purify, do it here:
-###Link     = $(PURIFY) $(CXX) $(Prof) -static
-Link     = $(CXX) $(Prof) 
+ifdef ENABLE_PURIFY
+Link     = $(PURIFY) $(CXX) $(Prof) -static
+else
+Link     = LD_RUN_PATH=/usr/dcs/software/evaluation/encap/gcc-3.0.4/lib $(CXX) $(Prof) 
+endif
 LinkG    = $(Link) -g  -L $(LEVEL)/lib/Debug
 LinkO    = $(Link) -O3 -L $(LEVEL)/lib/Release
 
@@ -218,7 +221,7 @@ Debug/%.o: %.cpp Debug/.dir Depend/.dir
 #      $(CompileGC) $< -o $@
 
 # Create a .cpp source file from a burg input file
-%.burm.cpp: Debug/%.burg
+%.burm.cpp: Debug/%.burg Debug/.dir
        $(RunBurg) $< -o $@
 
 # Create a .cpp source file from a flex input file... this uses sed to cut down