capture implicit uses and defs in CodeGenInstruction
[oota-llvm.git] / utils / buildit / GNUmakefile
index a024c1ef4c1e7ba3a17b716499e1fa5672e96790..8d8504c39b5cb8c4e2908427fab5d02023269f4c 100644 (file)
@@ -35,10 +35,15 @@ DSTROOT = $(OBJROOT)/../dst
 PREFIX = /usr/local
 
 # Unless assertions are forced on in the GMAKE command line, disable them.
-ifdef ENABLE_ASSERTIONS
-LLVM_ASSERTIONS := yes
+ifndef ENABLE_ASSERTIONS
+ENABLE_ASSERTIONS := no
+endif
+
+# Default is optimized build.
+ifeq ($(LLVM_DEBUG),1)
+LLVM_OPTIMIZED := no
 else
-LLVM_ASSERTIONS := no
+LLVM_OPTIMIZED := yes
 endif
 
 ifndef RC_ProjectSourceVersion
@@ -46,15 +51,17 @@ RC_ProjectSourceVersion = 9999
 endif
 
 ifndef RC_ProjectSourceSubversion
-RC_ProjectSourceSubversion = 01
+RC_ProjectSourceSubversion = 0
 endif
 
+# NOTE : Always put version numbers at the end because they are optional.
 install: $(OBJROOT) $(SYMROOT) $(DSTROOT)
        cd $(OBJROOT) && \
-         $(SRC)/build_llvm "$(RC_ARCHS)" "$(TARGETS)" \
+         $(SRC)/utils/buildit/build_llvm "$(RC_ARCHS)" "$(TARGETS)" \
            $(SRC) $(PREFIX) $(DSTROOT) $(SYMROOT) \
-           $(RC_ProjectSourceVersion) $(RC_ProjectSourceSubversion) \
-           $(LLVM_ASSERTIONS)
+           $(ENABLE_ASSERTIONS) $(LLVM_OPTIMIZED) \
+           $(RC_ProjectSourceVersion) $(RC_ProjectSourceSubversion) 
+
 
 # installhdrs does nothing, because the headers aren't useful until
 # the compiler is installed.
@@ -76,6 +83,7 @@ installsrc:
                                -type f -a -name .DS_Store -o \
                                -name \*~ -o -name .\#\* \) \
          -exec rm -rf {} \;
+       rm -rf "$(SRCROOT)/test"
 
 #######################################################################