Change latency of SETX to improve schedule -- just a hack.
[oota-llvm.git] / Makefile.common
index e56b668e52703386f3f620d375d266bba3cdd4f8..95f3aa9f0980fda0464969ee8583c726a4b980c2 100644 (file)
@@ -38,6 +38,9 @@ install ::
 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
+
 #---------------------------------------------------------
 # Compilation options...
 #---------------------------------------------------------
@@ -49,7 +52,7 @@ RunBurg  = $(BURG) $(BURG_OPTS)
 #Prof = -pg
 
 # TODO: Get rid of exceptions! : -fno-exceptions -fno-rtti
-CompileCommonOpts = $(Prof) -Wall -Winline -W  -Wwrite-strings -Wno-unused -I$(LEVEL)/include
+CompileCommonOpts = $(Prof) -Wall -W  -Wwrite-strings -Wno-unused -I$(LEVEL)/include
 
 # Compile a file, don't link...
 Compile  = $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(CompileCommonOpts)
@@ -58,6 +61,9 @@ CompileG = $(Compile) -g  -D_DEBUG
 CompileO = $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fnonnull-objects -freg-struct-return -fshort-enums
 
 # Link final executable
+
+# To enable purify, do it here:
+###Link     = $(PURIFY) $(CXX) $(Prof) -static
 Link     = $(CXX) $(Prof) 
 LinkG    = $(Link) -g  -L $(LEVEL)/lib/Debug
 LinkO    = $(Link) -O3 -L $(LEVEL)/lib/Release
@@ -143,7 +149,7 @@ endif
 ifeq ($(LEVEL), .)
 
 tags:
-       etags -l c++ `find . -name '*.cpp'` `find . -name '*.h'`
+       etags -l c++ `find . -name '*.cpp' -o -name '*.h'`
 
 all:: tags
 
@@ -188,6 +194,7 @@ endif
 
 
 #---------------------------------------------------------
+.PRECIOUS: Depend/.dir Debug/.dir Release/.dir
 
 # Create dependencies for the *.cpp files...
 Depend/%.d: %.cpp Depend/.dir