JIT_LIBS += LLVMPowerPC LLVMSelectionDAG
endif
+# You can enable the Alpha JIT on a non-Alpha host by setting the flag
+# ENABLE_ALPHA_JIT on the make command line. If not, it will still be
+# enabled automagically on an Alpha host.
+ifeq ($(ARCH), Alpha)
+ ENABLE_ALPHA_JIT = 1
+endif
+
+# What the Alpha JIT requires
+ifdef ENABLE_ALPHA_JIT
+ JIT_LIBS += LLVMAlpha LLVMSelectionDAG
+endif
+
LLVMLIBS := $(JIT_LIBS) LLVMScalarOpts LLVMAnalysis.a LLVMTransformUtils.a \
LLVMBCReader LLVMCore LLVMSupport.a LLVMTarget.a LLVMbzip2 \
LLVMSystem.a $(PLATFORMLIBDL)
# Set up variables for building a tool.
#---------------------------------------------------------
ifdef EXAMPLE_TOOL
-ToolBuildPath := $(ExmplDir)/$(TOOLNAME)$(EXEEXT)
+ToolBuildPath := $(ExmplDir)/$(strip $(TOOLNAME))$(EXEEXT)
else
-ToolBuildPath := $(ToolDir)/$(TOOLNAME)$(EXEEXT)
+ToolBuildPath := $(ToolDir)/$(strip $(TOOLNAME))$(EXEEXT)
endif
#---------------------------------------------------------
gunzip -c $(DistTarGZip) | $(TAR) xf - && \
cd build && \
../$(DistName)/configure --prefix="$(DistCheckDir)/install" \
- --srcdir=../$(DistName) && \
+ --srcdir=../$(DistName) $(DIST_CHECK_CONFIG_OPTIONS) && \
$(MAKE) all && \
$(MAKE) check && \
$(MAKE) install && \
if test -d "$$from_dir/$$file"; then \
if test -d "$(PROJ_SRC_DIR)/$$file" && \
test "$$from_dir" != "$(PROJ_SRC_DIR)" ; then \
- $(CP) -pR "$(PROJ_SRC_DIR)/$$file" "$$to_dir" || exit 1; \
+ cd $(PROJ_SRC_DIR) ; \
+ $(TAR) cf - $$file --exclude .svn --exclude CVS | \
+ ( cd $$to_dir ; $(TAR) xf - ) ; \
+ cd $(PROJ_OBJ_DIR) ; \
+ else \
+ cd $$from_dir ; \
+ $(TAR) cf - $$file --exclude .svn --exclude CVS | \
+ ( cd $$to_dir ; $(TAR) xf - ) ; \
+ cd $(PROJ_OBJ_DIR) ; \
fi; \
- $(CP) -pR $$from_dir/$$file $$to_dir || exit 1; \
elif test -f "$$from_dir/$$file" ; then \
$(CP) -p "$$from_dir/$$file" "$(DistDir)/$$file" || exit 1; \
elif test -L "$$from_dir/$$file" ; then \
fi; \
done
$(Verb) if test "$(DistDir)" = "$(TopDistDir)" ; then \
- $(EchoCmd) Eliminating CVS directories from distribution ; \
- $(RM) -rf `find $(TopDistDir) -type d -name CVS -print` ;\
+ $(EchoCmd) Eliminating CVS/.svn directories from distribution ; \
+ $(RM) -rf `find $(TopDistDir) -type d \( -name CVS -o -name .svn \) -print` ;\
$(MAKE) dist-hook ; \
$(FIND) $(TopDistDir) -type d ! -perm -777 -exec chmod a+rwx {} \; \
-o ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; \