diff --git a/wmake/makefiles/files b/wmake/makefiles/files index 91bff6265..22c6a05f5 100644 --- a/wmake/makefiles/files +++ b/wmake/makefiles/files @@ -2,7 +2,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------ # License @@ -29,24 +29,23 @@ # #------------------------------------------------------------------------------ -GENERAL_RULES = $(WM_DIR)/rules/General -RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER) -OBJECTS_DIR = $(MAKE_DIR)/$(WM_OPTIONS) - +GENERAL_RULES = $(WM_DIR)/rules/General include $(GENERAL_RULES)/general -include $(RULES)/general + #------------------------------------------------------------------------------ # declare names of make system control files derived from file 'files' #------------------------------------------------------------------------------ -OPTIONS = $(OBJECTS_DIR)/options -FILES = $(OBJECTS_DIR)/files -VARS = $(OBJECTS_DIR)/variables -SFILES = $(OBJECTS_DIR)/sourceFiles +OBJECTS_DIR = $(MAKE_DIR)/$(WM_OPTIONS) +OPTIONS = $(OBJECTS_DIR)/options +FILES = $(OBJECTS_DIR)/files +VARS = $(OBJECTS_DIR)/variables +SFILES = $(OBJECTS_DIR)/sourceFiles -include $(OPTIONS) + #------------------------------------------------------------------------------ # Declare dependecy of all make system files on FILES # Causes all derived files to be remade if any are changed or missing @@ -74,4 +73,5 @@ $(SFILES): $(MAKE_DIR)/files $(VARS): $(SFILES) + #------------------------------------------------------------------------------ diff --git a/wmake/makefiles/general b/wmake/makefiles/general index 2fc320de1..580e96c7b 100644 --- a/wmake/makefiles/general +++ b/wmake/makefiles/general @@ -2,7 +2,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------ # License @@ -33,7 +33,7 @@ # The Makefile uses a POSIX shell #------------------------------------------------------------------------------ -SHELL = /bin/sh +SHELL = /bin/sh #------------------------------------------------------------------------------ @@ -47,29 +47,29 @@ SHELL = /bin/sh # Set the directory containing the wmake scripts #------------------------------------------------------------------------------ -WM_SCRIPTS = $(WM_DIR)/scripts +WM_SCRIPTS = $(WM_DIR)/scripts #------------------------------------------------------------------------------ # Declare default paths #------------------------------------------------------------------------------ -LIB_SRC = $(WM_PROJECT_DIR)/src -LIB_PLATFORMS = $(WM_PROJECT_DIR)/platforms/$(WM_OPTIONS)/lib -OBJECTS_DIR = $(MAKE_DIR)/$(WM_OPTIONS) +LIB_SRC = $(WM_PROJECT_DIR)/src +LIB_PLATFORMS = $(WM_PROJECT_DIR)/platforms/$(WM_OPTIONS)/lib +OBJECTS_DIR = $(MAKE_DIR)/$(WM_OPTIONS) -SYS_INC = -SYS_LIBS = +SYS_INC = +SYS_LIBS = -PROJECT_INC = -I$(LIB_SRC)/$(WM_PROJECT)/lnInclude \ +PROJECT_INC = -I$(LIB_SRC)/$(WM_PROJECT)/lnInclude \ -I$(LIB_SRC)/OSspecific/$(WM_OSTYPE)/lnInclude -PROJECT_LIBS = -l$(WM_PROJECT) +PROJECT_LIBS = -l$(WM_PROJECT) -EXE_INC = -EXE_LIBS = +EXE_INC = +EXE_LIBS = -LIB_LIBS = +LIB_LIBS = #------------------------------------------------------------------------------ @@ -94,13 +94,7 @@ SEXE = a.out #------------------------------------------------------------------------------ GENERAL_RULES = $(WM_DIR)/rules/General -RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER) -WMAKE_BIN = $(WM_DIR)/platforms/$(WM_ARCH)$(WM_COMPILER) - include $(GENERAL_RULES)/general -include $(RULES)/general -include $(RULES)/$(WM_LINK_LANGUAGE) -include $(GENERAL_RULES)/transform #------------------------------------------------------------------------------ diff --git a/wmake/rules/General/general b/wmake/rules/General/general index 062c704f1..b3f20b48e 100644 --- a/wmake/rules/General/general +++ b/wmake/rules/General/general @@ -12,4 +12,17 @@ GINC = GLIBS = -lm GLIB_LIBS = + +COMPILER_TYPE = $(shell echo $(WM_COMPILER) | tr -d [:digit:]) +DEFAULT_RULES = $(WM_DIR)/rules/$(WM_ARCH)$(COMPILER_TYPE) +RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER) +WMAKE_BIN = $(WM_DIR)/platforms/$(WM_ARCH)$(WM_COMPILER) + +include $(DEFAULT_RULES)/general +include $(DEFAULT_RULES)/$(WM_LINK_LANGUAGE) +-include $(RULES)/general +-include $(RULES)/$(WM_LINK_LANGUAGE) +include $(GENERAL_RULES)/transform + + #------------------------------------------------------------------------------ diff --git a/wmake/rules/linux64Clang/c b/wmake/rules/linux64Clang/c index e88218617..b743e3f68 100644 --- a/wmake/rules/linux64Clang/c +++ b/wmake/rules/linux64Clang/c @@ -4,7 +4,7 @@ cWARN = -Wall cc = clang -m64 -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC diff --git a/wmake/rules/linux64Clang/c++ b/wmake/rules/linux64Clang/c++ index 2e09ff882..84ed0f410 100644 --- a/wmake/rules/linux64Clang/c++ +++ b/wmake/rules/linux64Clang/c++ @@ -7,7 +7,7 @@ c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-tautological-u CC = clang++ -std=c++0x -m64 -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-100 diff --git a/wmake/rules/linux64Clang/general b/wmake/rules/linux64Clang/general index 243cb7d8c..1002cb169 100644 --- a/wmake/rules/linux64Clang/general +++ b/wmake/rules/linux64Clang/general @@ -4,5 +4,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -ldl include $(GENERAL_RULES)/standard -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/rules/linux64Gcc/c b/wmake/rules/linux64Gcc/c index 66435ccf0..1097b3a59 100644 --- a/wmake/rules/linux64Gcc/c +++ b/wmake/rules/linux64Gcc/c @@ -4,7 +4,7 @@ cWARN = -Wall cc = gcc -m64 -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC diff --git a/wmake/rules/linux64Gcc/c++ b/wmake/rules/linux64Gcc/c++ index 7c7af702e..a47d0d499 100644 --- a/wmake/rules/linux64Gcc/c++ +++ b/wmake/rules/linux64Gcc/c++ @@ -7,7 +7,7 @@ c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds CC = g++ -std=c++0x -m64 -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-100 diff --git a/wmake/rules/linux64Gcc/general b/wmake/rules/linux64Gcc/general index 243cb7d8c..1002cb169 100644 --- a/wmake/rules/linux64Gcc/general +++ b/wmake/rules/linux64Gcc/general @@ -4,5 +4,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -ldl include $(GENERAL_RULES)/standard -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/rules/linux64Gcc45 b/wmake/rules/linux64Gcc45 deleted file mode 120000 index 7a0c1a850..000000000 --- a/wmake/rules/linux64Gcc45 +++ /dev/null @@ -1 +0,0 @@ -linux64Gcc \ No newline at end of file diff --git a/wmake/rules/linux64Gcc46 b/wmake/rules/linux64Gcc46 deleted file mode 120000 index 7a0c1a850..000000000 --- a/wmake/rules/linux64Gcc46 +++ /dev/null @@ -1 +0,0 @@ -linux64Gcc \ No newline at end of file diff --git a/wmake/rules/linux64Gcc47 b/wmake/rules/linux64Gcc47 deleted file mode 120000 index 7a0c1a850..000000000 --- a/wmake/rules/linux64Gcc47 +++ /dev/null @@ -1 +0,0 @@ -linux64Gcc \ No newline at end of file diff --git a/wmake/rules/linux64Gcc48 b/wmake/rules/linux64Gcc48 deleted file mode 120000 index 7a0c1a850..000000000 --- a/wmake/rules/linux64Gcc48 +++ /dev/null @@ -1 +0,0 @@ -linux64Gcc \ No newline at end of file diff --git a/wmake/rules/linux64Gcc49 b/wmake/rules/linux64Gcc49 deleted file mode 120000 index 7a0c1a850..000000000 --- a/wmake/rules/linux64Gcc49 +++ /dev/null @@ -1 +0,0 @@ -linux64Gcc \ No newline at end of file diff --git a/wmake/rules/linux64Gcc51 b/wmake/rules/linux64Gcc51 deleted file mode 120000 index 7a0c1a850..000000000 --- a/wmake/rules/linux64Gcc51 +++ /dev/null @@ -1 +0,0 @@ -linux64Gcc \ No newline at end of file diff --git a/wmake/rules/linux64Icc/c b/wmake/rules/linux64Icc/c index 97da5c28f..14a3a231d 100644 --- a/wmake/rules/linux64Icc/c +++ b/wmake/rules/linux64Icc/c @@ -4,7 +4,7 @@ cWARN = cc = icc -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC diff --git a/wmake/rules/linux64Icc/c++ b/wmake/rules/linux64Icc/c++ index 85b976ae4..03bee61dc 100644 --- a/wmake/rules/linux64Icc/c++ +++ b/wmake/rules/linux64Icc/c++ @@ -8,7 +8,7 @@ c++LESSWARN = -diag-disable 1224,2026,2305 CC = icpc -std=c++0x -fp-trap=common -fp-model precise -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository diff --git a/wmake/rules/linux64Icc/general b/wmake/rules/linux64Icc/general index 45c285f1e..52b0e177d 100644 --- a/wmake/rules/linux64Icc/general +++ b/wmake/rules/linux64Icc/general @@ -4,5 +4,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -ldl include $(GENERAL_RULES)/standard -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/rules/linuxARM7Gcc/c b/wmake/rules/linuxARM7Gcc/c index d7bda5d1d..dfae4adda 100644 --- a/wmake/rules/linuxARM7Gcc/c +++ b/wmake/rules/linuxARM7Gcc/c @@ -4,7 +4,7 @@ cWARN = -Wall cc = gcc -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC diff --git a/wmake/rules/linuxARM7Gcc/c++ b/wmake/rules/linuxARM7Gcc/c++ index b647cc85e..80fccf271 100644 --- a/wmake/rules/linuxARM7Gcc/c++ +++ b/wmake/rules/linuxARM7Gcc/c++ @@ -7,7 +7,7 @@ c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds CC = g++ -std=c++0x -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-100 diff --git a/wmake/rules/linuxARM7Gcc/general b/wmake/rules/linuxARM7Gcc/general index 376c61484..1e51dcc40 100644 --- a/wmake/rules/linuxARM7Gcc/general +++ b/wmake/rules/linuxARM7Gcc/general @@ -5,5 +5,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -ldl include $(GENERAL_RULES)/standard -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/rules/linuxClang/c b/wmake/rules/linuxClang/c index 7d67b4c02..2c8e8a7f9 100644 --- a/wmake/rules/linuxClang/c +++ b/wmake/rules/linuxClang/c @@ -4,7 +4,7 @@ cWARN = -Wall cc = clang -m32 -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC diff --git a/wmake/rules/linuxClang/c++ b/wmake/rules/linuxClang/c++ index 216cc67f7..b029fbcfd 100644 --- a/wmake/rules/linuxClang/c++ +++ b/wmake/rules/linuxClang/c++ @@ -7,7 +7,7 @@ c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedef -Wno-tautological-un CC = clang++ -std=c++0x -m32 -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-100 diff --git a/wmake/rules/linuxClang/general b/wmake/rules/linuxClang/general index fa1eb5b92..e3427c318 100644 --- a/wmake/rules/linuxClang/general +++ b/wmake/rules/linuxClang/general @@ -5,5 +5,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -ldl include $(GENERAL_RULES)/standard -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/rules/linuxGcc/c b/wmake/rules/linuxGcc/c index 81c64cf71..8eddde049 100644 --- a/wmake/rules/linuxGcc/c +++ b/wmake/rules/linuxGcc/c @@ -4,7 +4,7 @@ cWARN = -Wall cc = gcc -m32 -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC diff --git a/wmake/rules/linuxGcc/c++ b/wmake/rules/linuxGcc/c++ index b115000d9..c1c34a841 100644 --- a/wmake/rules/linuxGcc/c++ +++ b/wmake/rules/linuxGcc/c++ @@ -7,7 +7,7 @@ c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds CC = g++ -std=c++0x -m32 -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-100 diff --git a/wmake/rules/linuxGcc/general b/wmake/rules/linuxGcc/general index fa1eb5b92..e3427c318 100644 --- a/wmake/rules/linuxGcc/general +++ b/wmake/rules/linuxGcc/general @@ -5,5 +5,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -ldl include $(GENERAL_RULES)/standard -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/rules/linuxGcc45 b/wmake/rules/linuxGcc45 deleted file mode 120000 index e30dec7be..000000000 --- a/wmake/rules/linuxGcc45 +++ /dev/null @@ -1 +0,0 @@ -linuxGcc \ No newline at end of file diff --git a/wmake/rules/linuxGcc46 b/wmake/rules/linuxGcc46 deleted file mode 120000 index e30dec7be..000000000 --- a/wmake/rules/linuxGcc46 +++ /dev/null @@ -1 +0,0 @@ -linuxGcc \ No newline at end of file diff --git a/wmake/rules/linuxGcc47 b/wmake/rules/linuxGcc47 deleted file mode 120000 index e30dec7be..000000000 --- a/wmake/rules/linuxGcc47 +++ /dev/null @@ -1 +0,0 @@ -linuxGcc \ No newline at end of file diff --git a/wmake/rules/linuxGcc48 b/wmake/rules/linuxGcc48 deleted file mode 120000 index e30dec7be..000000000 --- a/wmake/rules/linuxGcc48 +++ /dev/null @@ -1 +0,0 @@ -linuxGcc \ No newline at end of file diff --git a/wmake/rules/linuxGcc49 b/wmake/rules/linuxGcc49 deleted file mode 120000 index e30dec7be..000000000 --- a/wmake/rules/linuxGcc49 +++ /dev/null @@ -1 +0,0 @@ -linuxGcc \ No newline at end of file diff --git a/wmake/rules/linuxGcc51 b/wmake/rules/linuxGcc51 deleted file mode 120000 index e30dec7be..000000000 --- a/wmake/rules/linuxGcc51 +++ /dev/null @@ -1 +0,0 @@ -linuxGcc \ No newline at end of file diff --git a/wmake/rules/linuxIA64Gcc/c b/wmake/rules/linuxIA64Gcc/c index d7bda5d1d..dfae4adda 100644 --- a/wmake/rules/linuxIA64Gcc/c +++ b/wmake/rules/linuxIA64Gcc/c @@ -4,7 +4,7 @@ cWARN = -Wall cc = gcc -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC diff --git a/wmake/rules/linuxIA64Gcc/c++ b/wmake/rules/linuxIA64Gcc/c++ index d07854e06..6d152ecd1 100644 --- a/wmake/rules/linuxIA64Gcc/c++ +++ b/wmake/rules/linuxIA64Gcc/c++ @@ -7,7 +7,7 @@ c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds CC = g++ -std=c++0x -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-100 diff --git a/wmake/rules/linuxIA64Gcc/general b/wmake/rules/linuxIA64Gcc/general index 480ea1b9c..182ee7f90 100644 --- a/wmake/rules/linuxIA64Gcc/general +++ b/wmake/rules/linuxIA64Gcc/general @@ -4,6 +4,6 @@ PROJECT_LIBS = -l$(WM_PROJECT) -ldl include $(GENERAL_RULES)/standard -include $(RULES)/X -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/X +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/rules/linuxIA64Icc/c b/wmake/rules/linuxIA64Icc/c index 3952de58f..2b19596b1 100644 --- a/wmake/rules/linuxIA64Icc/c +++ b/wmake/rules/linuxIA64Icc/c @@ -4,7 +4,7 @@ cWARN = cc = icc -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC diff --git a/wmake/rules/linuxIA64Icc/c++ b/wmake/rules/linuxIA64Icc/c++ index 4d24538e9..a8a9341e1 100644 --- a/wmake/rules/linuxIA64Icc/c++ +++ b/wmake/rules/linuxIA64Icc/c++ @@ -8,7 +8,7 @@ c++LESSWARN = -diag-disable 1224,2026,2305 CC = icpc -std=c++0x -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository diff --git a/wmake/rules/linuxIA64Icc/general b/wmake/rules/linuxIA64Icc/general index 9dc446d4b..09a389665 100644 --- a/wmake/rules/linuxIA64Icc/general +++ b/wmake/rules/linuxIA64Icc/general @@ -4,6 +4,6 @@ GLIBS = include $(GENERAL_RULES)/standard -include $(RULES)/X -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/X +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/rules/linuxIcc/c b/wmake/rules/linuxIcc/c index a6441bcbd..c9f75c902 100644 --- a/wmake/rules/linuxIcc/c +++ b/wmake/rules/linuxIcc/c @@ -4,7 +4,7 @@ cWARN = cc = icc -gcc-version=400 -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -KPIC diff --git a/wmake/rules/linuxIcc/c++ b/wmake/rules/linuxIcc/c++ index 48fdb9f6b..88976144c 100644 --- a/wmake/rules/linuxIcc/c++ +++ b/wmake/rules/linuxIcc/c++ @@ -8,7 +8,7 @@ c++LESSWARN = -diag-disable 1224,2026,2305 CC = icpc -std=c++0x -fp-trap=common -fp-model precise -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository diff --git a/wmake/rules/linuxIcc/general b/wmake/rules/linuxIcc/general index 8a38ddf6d..5c94cad44 100644 --- a/wmake/rules/linuxIcc/general +++ b/wmake/rules/linuxIcc/general @@ -5,5 +5,5 @@ PROJECT_LIBS = -l$(WM_PROJECT) -ldl include $(GENERAL_RULES)/standard -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/rules/linuxPPC64Gcc/c b/wmake/rules/linuxPPC64Gcc/c index 1fa057876..f97341706 100644 --- a/wmake/rules/linuxPPC64Gcc/c +++ b/wmake/rules/linuxPPC64Gcc/c @@ -4,7 +4,7 @@ cWARN = -Wall cc = gcc -m64 -mcpu=power5+ -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC diff --git a/wmake/rules/linuxPPC64Gcc/c++ b/wmake/rules/linuxPPC64Gcc/c++ index c5dcaa4d9..7c3307938 100644 --- a/wmake/rules/linuxPPC64Gcc/c++ +++ b/wmake/rules/linuxPPC64Gcc/c++ @@ -7,7 +7,7 @@ c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds CC = g++ -std=c++0x -m64 -mcpu=power5+ -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-100 diff --git a/wmake/rules/linuxPPC64Gcc/general b/wmake/rules/linuxPPC64Gcc/general index fa717f964..a590cc29c 100644 --- a/wmake/rules/linuxPPC64Gcc/general +++ b/wmake/rules/linuxPPC64Gcc/general @@ -5,6 +5,6 @@ PROJECT_LIBS = -l$(WM_PROJECT) -ldl include $(GENERAL_RULES)/standard -include $(RULES)/X -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/X +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/rules/linuxPPC64leGcc/c b/wmake/rules/linuxPPC64leGcc/c index d9aa80f72..c5e3c73eb 100644 --- a/wmake/rules/linuxPPC64leGcc/c +++ b/wmake/rules/linuxPPC64leGcc/c @@ -4,7 +4,7 @@ cWARN = -Wall cc = gcc -m64 -mcpu=power8 -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC diff --git a/wmake/rules/linuxPPC64leGcc/c++ b/wmake/rules/linuxPPC64leGcc/c++ index 76c494718..805f82182 100644 --- a/wmake/rules/linuxPPC64leGcc/c++ +++ b/wmake/rules/linuxPPC64leGcc/c++ @@ -7,7 +7,7 @@ c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds CC = g++ -std=c++0x -m64 -mcpu=power8 -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-100 diff --git a/wmake/rules/linuxPPC64leGcc/general b/wmake/rules/linuxPPC64leGcc/general index f800e09af..7867cbde8 100644 --- a/wmake/rules/linuxPPC64leGcc/general +++ b/wmake/rules/linuxPPC64leGcc/general @@ -5,6 +5,6 @@ PROJECT_LIBS = -l$(WM_PROJECT) -ldl include $(GENERAL_RULES)/standard -include $(RULES)/X -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/X +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/rules/solaris64Gcc/c b/wmake/rules/solaris64Gcc/c index 66435ccf0..1097b3a59 100644 --- a/wmake/rules/solaris64Gcc/c +++ b/wmake/rules/solaris64Gcc/c @@ -4,7 +4,7 @@ cWARN = -Wall cc = gcc -m64 -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC diff --git a/wmake/rules/solaris64Gcc/c++ b/wmake/rules/solaris64Gcc/c++ index e7f16f4d4..324522f10 100644 --- a/wmake/rules/solaris64Gcc/c++ +++ b/wmake/rules/solaris64Gcc/c++ @@ -7,7 +7,7 @@ c++LESSWARN = CC = g++ -std=c++0x -m64 -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-100 diff --git a/wmake/rules/solaris64Gcc/general b/wmake/rules/solaris64Gcc/general index 83b7ebf4e..bbf1b69bc 100644 --- a/wmake/rules/solaris64Gcc/general +++ b/wmake/rules/solaris64Gcc/general @@ -5,6 +5,6 @@ PROJECT_LIBS = -l$(WM_PROJECT) -lnsl -lsocket -L$(FOAM_LIBBIN)/dummy -lPstream include $(GENERAL_RULES)/standard -include $(RULES)/X -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/X +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/rules/solarisGcc/c b/wmake/rules/solarisGcc/c index d7bda5d1d..dfae4adda 100644 --- a/wmake/rules/solarisGcc/c +++ b/wmake/rules/solarisGcc/c @@ -4,7 +4,7 @@ cWARN = -Wall cc = gcc -include $(RULES)/c$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC diff --git a/wmake/rules/solarisGcc/c++ b/wmake/rules/solarisGcc/c++ index d6bf18901..d8e968fb9 100644 --- a/wmake/rules/solarisGcc/c++ +++ b/wmake/rules/solarisGcc/c++ @@ -7,7 +7,7 @@ c++LESSWARN = CC = g++ -std=c++0x -include $(RULES)/c++$(WM_COMPILE_OPTION) +include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-100 diff --git a/wmake/rules/solarisGcc/general b/wmake/rules/solarisGcc/general index cda7ba867..2e6e7b1f4 100644 --- a/wmake/rules/solarisGcc/general +++ b/wmake/rules/solarisGcc/general @@ -4,6 +4,6 @@ PROJECT_LIBS = -l$(WM_PROJECT) -lnsl -lsocket -L$(FOAM_LIBBIN)/dummy -lPstream include $(GENERAL_RULES)/standard -include $(RULES)/X -include $(RULES)/c -include $(RULES)/c++ +include $(DEFAULT_RULES)/X +include $(DEFAULT_RULES)/c +include $(DEFAULT_RULES)/c++ diff --git a/wmake/src/Makefile b/wmake/src/Makefile index 92a2b087e..4162a3b45 100644 --- a/wmake/src/Makefile +++ b/wmake/src/Makefile @@ -2,7 +2,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------ # License @@ -43,19 +43,15 @@ SHELL = /bin/sh #------------------------------------------------------------------------------ -# set compilation and dependency building rules +# Set compilation and dependency building rules #------------------------------------------------------------------------------ -GENERAL_RULES = $(WM_DIR)/rules/General -RULES = $(WM_DIR)/rules/$(WM_ARCH)$(WM_COMPILER) -WMAKE_BIN = $(WM_DIR)/platforms/$(WM_ARCH)$(WM_COMPILER) - -include $(RULES)/general -include $(RULES)/$(WM_LINK_LANGUAGE) +GENERAL_RULES = $(WM_DIR)/rules/General +include $(GENERAL_RULES)/general #------------------------------------------------------------------------------ -# targets +# Targets #------------------------------------------------------------------------------ all: $(WMAKE_BIN)/dirToString $(WMAKE_BIN)/wmkdep