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
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.
-type f -a -name .DS_Store -o \
-name \*~ -o -name .\#\* \) \
-exec rm -rf {} \;
+ rm -rf "$(SRCROOT)/test"
#######################################################################