Close list item tag, to conform with the style in this file. It's optional
[oota-llvm.git] / utils / buildit / GNUmakefile
index a024c1ef4c1e7ba3a17b716499e1fa5672e96790..6e5131254cb0ee999c6797d91f83d19122ebe177 100644 (file)
@@ -41,20 +41,29 @@ else
 LLVM_ASSERTIONS := no
 endif
 
+# Default is optimized build.
+ifeq ($(LLVM_DEBUG),1)
+LLVM_OPTIMIZED := no
+else
+LLVM_OPTIMIZED := yes
+endif
+
 ifndef RC_ProjectSourceVersion
 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) $(PREFIX) $(DSTROOT) $(SYMROOT) \
-           $(RC_ProjectSourceVersion) $(RC_ProjectSourceSubversion) \
-           $(LLVM_ASSERTIONS)
+           $(LLVM_ASSERTIONS) $(LLVM_OPTIMIZED) \
+           $(RC_ProjectSourceVersion) $(RC_ProjectSourceSubversion) 
+
 
 # installhdrs does nothing, because the headers aren't useful until
 # the compiler is installed.