From 94486628d4c6dafccd315f9ccd6a33772b27e1da Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 20 Aug 2009 20:28:29 +0000 Subject: [PATCH] Take over adjustments to build system from previous versions of the TBB in our directories. git-svn-id: https://svn.dealii.org/trunk@19319 0785d39b-7218-0410-832d-ea1e28bc413d --- .../contrib/tbb/tbb22_20090809oss/Makefile | 20 +++++++------- .../tbb/tbb22_20090809oss/build/Makefile.tbb | 11 +++++--- .../tbb22_20090809oss/build/common_rules.inc | 26 ++++++++++++------- .../tbb/tbb22_20090809oss/build/windows.inc | 2 +- 4 files changed, 35 insertions(+), 24 deletions(-) diff --git a/deal.II/contrib/tbb/tbb22_20090809oss/Makefile b/deal.II/contrib/tbb/tbb22_20090809oss/Makefile index ceac272c3f..32abfacb10 100644 --- a/deal.II/contrib/tbb/tbb22_20090809oss/Makefile +++ b/deal.II/contrib/tbb/tbb22_20090809oss/Makefile @@ -37,22 +37,22 @@ default: tbb tbbmalloc all: tbb tbbmalloc test examples tbb: mkdir - $(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.tbb cfg=debug tbb_root=$(tbb_root) - $(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.tbb cfg=release tbb_root=$(tbb_root) + @$(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.tbb cfg=debug tbb_root=$(tbb_root) + @$(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.tbb cfg=release tbb_root=$(tbb_root) tbbmalloc: mkdir - $(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=debug malloc tbb_root=$(tbb_root) - $(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=release malloc tbb_root=$(tbb_root) + @$(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=debug malloc tbb_root=$(tbb_root) + @$(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=release malloc tbb_root=$(tbb_root) test: tbb tbbmalloc - -$(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=debug malloc_test tbb_root=$(tbb_root) - -$(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.test cfg=debug tbb_root=$(tbb_root) - -$(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=release malloc_test tbb_root=$(tbb_root) - -$(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.test cfg=release tbb_root=$(tbb_root) + -@$(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=debug malloc_test tbb_root=$(tbb_root) + -@$(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.test cfg=debug tbb_root=$(tbb_root) + -@$(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.tbbmalloc cfg=release malloc_test tbb_root=$(tbb_root) + -@$(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.test cfg=release tbb_root=$(tbb_root) rml: mkdir - $(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.rml cfg=debug tbb_root=$(tbb_root) - $(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.rml cfg=release tbb_root=$(tbb_root) + @$(MAKE) -C "$(work_dir)_debug" -r -f $(tbb_root)/build/Makefile.rml cfg=debug tbb_root=$(tbb_root) + @$(MAKE) -C "$(work_dir)_release" -r -f $(tbb_root)/build/Makefile.rml cfg=release tbb_root=$(tbb_root) examples: tbb tbbmalloc diff --git a/deal.II/contrib/tbb/tbb22_20090809oss/build/Makefile.tbb b/deal.II/contrib/tbb/tbb22_20090809oss/build/Makefile.tbb index ba6c5dc610..8b416f366a 100644 --- a/deal.II/contrib/tbb/tbb22_20090809oss/build/Makefile.tbb +++ b/deal.II/contrib/tbb/tbb22_20090809oss/build/Makefile.tbb @@ -36,7 +36,7 @@ DEBUG_SUFFIX=$(findstring _debug,_$(cfg)) #------------------------------------------------------------ # Define static pattern rules dealing with .cpp source files #------------------------------------------------------------ -$(warning CONFIG: cfg=$(cfg) arch=$(arch) compiler=$(compiler) os=$(tbb_os) runtime=$(runtime)) +# $(warning CONFIG: cfg=$(cfg) arch=$(arch) compiler=$(compiler) os=$(tbb_os) runtime=$(runtime)) default_tbb: $(TBB.DLL) .PHONY: default_tbb tbbvars clean @@ -103,7 +103,8 @@ include $(tbb_root)/build/common_rules.inc ifneq (,$(TBB.DEF)) tbb.def: $(TBB.DEF) - $(CMD) "$(CPLUS) $(PREPROC_ONLY) $(TBB.DEF) $(INCLUDES) $(filter $(DEFINE_KEY)%,$(CPLUS_FLAGS)) >tbb.def 2>$(NUL) || exit 0" + @echo "=====tbb=========================MT== $(cfg)/$@" + @$(CMD) "$(CPLUS) $(PREPROC_ONLY) $(TBB.DEF) $(INCLUDES) $(filter $(DEFINE_KEY)%,$(CPLUS_FLAGS)) >tbb.def 2>$(NUL) || exit 0" LIB_LINK_FLAGS += $(EXPORT_KEY)tbb.def $(TBB.DLL): tbb.def @@ -111,11 +112,13 @@ endif $(TBB.DLL): BUILDING_LIBRARY = $(TBB.DLL) $(TBB.DLL): $(TBB.OBJ) $(TBB.RES) tbbvars $(TBB_NO_VERSION.DLL) - $(LIB_LINK_CMD) $(LIB_OUTPUT_KEY)$(TBB.DLL) $(TBB.OBJ) $(TBB.RES) $(LIB_LINK_LIBS) $(LIB_LINK_FLAGS) + @echo "=====tbb=========================MT== $(cfg)/$@" + @$(LIB_LINK_CMD) $(LIB_OUTPUT_KEY)$(TBB.DLL) $(TBB.OBJ) $(TBB.RES) $(LIB_LINK_LIBS) $(LIB_LINK_FLAGS) ifneq (,$(TBB_NO_VERSION.DLL)) $(TBB_NO_VERSION.DLL): - echo "INPUT ($(TBB.DLL))" > $(TBB_NO_VERSION.DLL) + @echo "=====tbb=========================MT== $(cfg)/$@" + @echo "INPUT ($(TBB.DLL))" > $(TBB_NO_VERSION.DLL) endif #clean: diff --git a/deal.II/contrib/tbb/tbb22_20090809oss/build/common_rules.inc b/deal.II/contrib/tbb/tbb22_20090809oss/build/common_rules.inc index 7029052221..dfaa7ea074 100644 --- a/deal.II/contrib/tbb/tbb22_20090809oss/build/common_rules.inc +++ b/deal.II/contrib/tbb/tbb22_20090809oss/build/common_rules.inc @@ -57,13 +57,16 @@ CONLY ?= $(CPLUS) # The most generic rules %.$(OBJ): %.cpp - $(CPLUS) $(COMPILE_ONLY) $(CPLUS_FLAGS) $(CXX_WARN_SUPPRESS) $(INCLUDES) $< + @echo "=====tbb=========================MT== $(cfg)/$($*.tmp @@ -90,14 +93,17 @@ ifeq (1,$(TBB_NOSTRICT)) # The files below need the -strict_ansi flag downgraded to -ansi to compile $(KNOWN_NOSTRICT): %.$(OBJ): %.cpp - $(CPLUS) $(COMPILE_ONLY) $(CPLUS_FLAGS_NOSTRICT) $(INCLUDES) $< + @echo "=====tbb=========================MT== $(cfg)/$($@ @@ -115,11 +121,13 @@ $(TBB.MANIFEST): cl $(C_FLAGS) tbbmanifest.c version_string.tmp: $(TBB.MANIFEST) - $(MAKE_VERSIONS) - cmd /C "echo #define TBB_MANIFEST 1 >> version_string.tmp" + @echo "=====tbb=========================MT== $(cfg)/$@" + @$(MAKE_VERSIONS) + @cmd /C "echo #define TBB_MANIFEST 1 >> version_string.tmp" else version_string.tmp: - $(MAKE_VERSIONS) + @echo "=====tbb=========================MT== $(cfg)/$@" + @$(MAKE_VERSIONS) endif diff --git a/deal.II/contrib/tbb/tbb22_20090809oss/build/windows.inc b/deal.II/contrib/tbb/tbb22_20090809oss/build/windows.inc index 400864fe6b..0535a3572e 100644 --- a/deal.II/contrib/tbb/tbb22_20090809oss/build/windows.inc +++ b/deal.II/contrib/tbb/tbb22_20090809oss/build/windows.inc @@ -48,7 +48,7 @@ CWD=$(shell cmd /C echo %CD%) RM=cmd /C del /Q /F RD=cmd /C rmdir MD=cmd /c mkdir -SLASH=\\ +SLASH=/ NUL = nul OBJ = obj -- 2.39.5