Commit Graph

41 Commits

Author SHA1 Message Date
13e8fce173 wmake: Use functions from wmakeFunctions to avoid code duplication
wclean: added support for automatic searching up the tree for the Make directory if in a sub-directory
2016-07-17 22:59:55 +01:00
cdb5d024f0 wmake: Simplified handling of '-j' option to sub-processes 2016-07-09 14:22:29 +01:00
bbc43dd66e wmakeCollect: Create the makefiles in the platforms directory 2016-07-09 09:59:46 +01:00
948e10841b wmakeCollect: Support simultaneous builds of different target architectures or compilers 2016-07-05 10:24:08 +01:00
e8b098121c wmake: execute wmakeLnIncludeAll once with options 'queue' and 'update' 2016-07-05 07:54:45 +01:00
af8e0f1443 AllwmakeParseArguments: Moved all parallel processing options into wmake
and added support for queue scheduling option '-q', '-queue'

Now the 'Allwmake' scripts execute 'wmake -all' to handle parallel
processing in a general way, avoiding code duplication.
2016-07-04 22:30:20 +01:00
7093f478e4 wmake: use the new parallel wmakeLnIncludeAll option if WM_NCOMPPROCS is set 2016-07-03 23:11:16 +01:00
6b77d86563 wmakeCollect: Experimental scheduler for wmake to speed-up parallel compilations
wmakeCollect collects the compilation commands for the all of the object
files to be compiled into a single makefile which is passed to make to
schedule the compilations in parallel efficiently.

Before wmakeCollect can be called the lnInclude directories must be
up-to-date and after wmakeCollect the linkage stage of the compilation
must executed using wmake.

This entire process is now handled by wmake using the new '-queue' or
'-q' option to compile sections of the OpenFOAM source tree or the
entire tree efficiently.  The number of cores the compilation executes
on may be specified either using the WM_NCOMPPROCS variable or the '-j'
option.

To efficiently compile OpenFOAM after a 'git pull' the '-update' option
is provided which updates lnInclude directories, dep files and removes
deprecated files and directories.  This option may be used with '-q':

    wmake -q -update
2016-07-03 22:55:16 +01:00
dea6a3c6e8 wmake/Allwmake: Completed support for targetType 'objects'
Patch contributed by Mattijs Janssens
2016-06-24 15:25:11 +01:00
e7fc198592 Allwmake: improved '-update' option to handle out-of-date '.dep' files
Patch contributed by Bruno Santos
Resolves bug-report http://bugs.openfoam.org/view.php?id=2091
2016-05-16 12:21:57 +01:00
a9b8bb13e0 applications/.*/Allwmake: Updated to support "stop on 1st error"
Patch contributed by Bruno Santos
Resolved bug-report http://www.openfoam.org/mantisbt/view.php?id=2042
2016-04-04 09:03:40 +01:00
5355dbc5fe wmake: General cleanup to improve consistency and maintainability
The Makefiles are now in the makefiles sub-directory

The "-f | -force" option in wmakeLnInclude is now "-u | -update" for
consistency with the other scripts.

The "Usage" entry in the headers is now consistently formatted in all
scripts.
2015-12-16 18:31:02 +00:00
ea4936fd4e wcleanPlatform: Updated version of wcleanMachine and wcleanAll
wcleanPlatform is a more general and cleaner version of wcleanMachine
supporting the "-all" option to provide the equivalent of wcleanAll.

Both wcleanMachine and wcleanAll are now deprecated and will be removed
for the next major release.
2015-12-15 12:12:06 +00:00
8e6240c2fc wmake: Added to "See also" 2015-01-11 18:44:18 +00:00
5baa7039fc wmake: Added "See also" 2015-01-11 18:21:20 +00:00
844b283030 New version of wmake supporting out-of-tree object and dependency files 2014-12-14 21:42:18 +00:00
7124f736cd wmake: "dwim" option behaviour is now the default if no argument is supplied
i.e. wmake searches up the directory tree to find the Make directory if it is not
in the current directory.
2013-06-25 18:37:59 +01:00
5ef9cf70d5 Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev 2013-06-13 10:57:44 +01:00
e66cd871b5 wmake: add "dwim" target
dwim (do what I mean): search up directories tree for Make sub-directory and build the target
    specified in Make/files
2013-06-11 12:58:19 +01:00
15c433b337 ENH: wmake: 'wmake dep' to build dependencies and softlinks 2013-06-04 16:50:33 +01:00
caa74eee6f wmake: Change default behaviour to check the Make/files file for a LIB entry and compile libso if appropriate 2013-05-13 15:23:16 +01:00
c2dd153a14 Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
06bc199da9 ENH: wmake: print pwd upon error 2011-05-27 11:54:16 +01:00
82ba4e5419 ENH: allow silent operation (-s) for wmake, wclean, wmakeLnInclude
- reduces verbosity for dynamicCode

- non-silent wmakeLnInclude output to stderr to avoid polluting logs
2011-03-08 09:32:30 +01:00
e0311539fc STYLE: change makeOption to makeType internally
- also simplify setting makeType in the Allwmake scripts
2011-03-08 08:58:44 +01:00
fc2bd19356 STYLE: use 'platforms/' for organizing wmake binaries as well
- replaces previously used 'bin/'

STYLE: add -help to makeWmake
2011-02-15 19:01:04 +01:00
eaef8d482b STYLE: Updated 1991 start copyright year to 2004 2011-01-14 16:08:00 +00:00
14d1300a36 Revert "STyLE: More 2011 copyright dates (non-code)."
This reverts commit 2e1e671d96.
2011-01-05 18:25:32 +00:00
2e1e671d96 STyLE: More 2011 copyright dates (non-code). 2011-01-05 11:48:24 +00:00
9707e5c100 ENH: "wmake all" makes 'libso' instead of 'exe' where appropriate
- adds more DWIM (do what I mean) intelligence to wmake

ENH: use ~/.OpenFOAM/.wmake instead of ~/.wmakeScheduler for the lock dir

- keeps more of the OpenFOAM bits together
2010-04-19 10:54:23 +02:00
d29c438657 STYLE: use url for FSF license instead of postal address, switch to GPL v3 2010-03-29 14:07:56 +02:00
2068c67a33 ENH: 'wclean all' now uses either Allwclean or Allclean files if
present.
2010-03-09 17:16:23 +01:00
5726d59f63 STYLE: improved usage information for wmake 2010-03-04 09:37:50 +01:00
d3ec38f0aa Merge commit 'OpenCFD/master' into olesenm 2009-02-06 10:40:19 +01:00
b79ccb9293 sunos changes 2009-02-05 09:30:26 +00:00
5ba68da75b wmake script cosmetics 2009-01-10 08:25:31 +01:00
28b200bcd9 update copyrights for 2009 2008-12-31 19:01:56 +01:00
50a2ddfcc7 bin/ wmake/ script updates
- send error messages to stderr
  - added -h/-help options where some were missing
  - changed 3-space to 4-space indentation
  - where possible, allow multiple directories from the command-line
2008-10-22 14:33:59 +02:00
dcb487fd0f wmake : set WM_NCOMPPROCS automatically when both WM_HOSTS and WM_SCHEDULER are set
This substantially eases enabling/disabling distributed compiling
For example,
 - export WM_HOSTS="host1:N ... hostN:N"  as usual
 - simply set/unset WM_SCHEDULER

etc/aliases.{sh,csh} added aliases for enabling/disabling wmakeScheduler
 - alias wmSchedON='export WM_SCHEDULER=$WM_PROJECT_DIR/wmake/wmakeScheduler'
 - alias wmSchedOFF='unset WM_SCHEDULER'

Removed wmakeLockScheduler, identical to wmakeScheduler except a 'sleep'
2008-06-16 11:46:11 +02:00
e0d3735b08 Filter out 'Optional' directories from 'wmake all'; these must be built
specifically on the request of the user by running 'wmake all' or 'Allwmake'
in the directory as appropriate.
2008-06-11 09:44:14 +01:00
3170c7c0c9 Creation of OpenFOAM-dev repository 15/04/2008 2008-04-15 18:56:58 +01:00