Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
5726d59f
Commit
5726d59f
authored
15 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: improved usage information for wmake
parent
1fe4264f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wmake/wmake
+16
-17
16 additions, 17 deletions
wmake/wmake
with
16 additions
and
17 deletions
wmake/wmake
+
16
−
17
View file @
5726d59f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# ========= |
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / O peration |
# \\ / A nd | Copyright (C) 1991-200
9
OpenCFD Ltd.
# \\ / A nd | Copyright (C) 1991-20
1
0 OpenCFD Ltd.
# \\/ M anipulation |
# \\/ M anipulation |
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# License
# License
...
@@ -35,27 +35,31 @@ Script=${0##*/}
...
@@ -35,27 +35,31 @@ Script=${0##*/}
usage
()
{
usage
()
{
while
[
"$#"
-ge
1
]
;
do
echo
"
$1
"
;
shift
;
done
while
[
"$#"
-ge
1
]
;
do
echo
"
$1
"
;
shift
;
done
cat
<<
USAGE
cat
<<
USAGE
usage:
$Script
[dir]
$Script
target [dir [MakeDir]]
Usage:
$Script
[OPTION] [dir]
$Script
[OPTION] target [dir [MakeDir]]
options:
-help print the usage
A general, easy-to-use make system for multi-platform development
A general, easy-to-use make system for multi-platform development
The 'target' is a Makefile target:
The 'target' is a Makefile target:
e.g., Make/linux64GccDPOpt/fvMesh.o
e.g., Make/linux64GccDPOpt/fvMesh.o
or a special target:
or a special target:
all all subdirectories
all all subdirectories
(NB: any Allwmake files will be used if they exist)
exe build statically linked executable
exe build statically linked executable
lib build statically linked archive lib (.a)
lib build statically linked archive lib (.a)
libso build dynamically linked lib (.so)
libo build statically linked lib (.o)
libo build statically linked lib (.o)
libso build dynamically linked lib (.so)
jar build Java jar
jar build Java jar
USAGE
USAGE
exit
1
exit
1
}
}
# provide immediate help, even if
none of the
environment is set
# provide immediate help, even if environment is
not
set
if
[
"
$1
"
=
"-h"
-o
"
$1
"
=
"-help"
]
if
[
"
$1
"
=
"-h"
-o
"
$1
"
=
"-help"
]
then
then
usage
usage
...
@@ -130,16 +134,11 @@ then
...
@@ -130,16 +134,11 @@ then
makeOption
=
$1
makeOption
=
$1
fi
fi
if
[
$#
-ge
2
]
# specified directory name:
then
[
$#
-ge
2
]
&&
dir
=
$2
dir
=
$2
fi
# alternative name for the Make sub-directory
# specified alternative name for the Make sub-directory:
if
[
$#
-ge
3
]
[
$#
-ge
3
]
&&
MakeDir
=
$3
then
MakeDir
=
$3
fi
if
[
"
$dir
"
]
if
[
"
$dir
"
]
then
then
...
@@ -221,7 +220,7 @@ OBJECTS_DIR=$MakeDir/$WM_OPTIONS
...
@@ -221,7 +220,7 @@ OBJECTS_DIR=$MakeDir/$WM_OPTIONS
touch
$OBJECTS_DIR
/dontIncludeDeps
touch
$OBJECTS_DIR
/dontIncludeDeps
case
"
$makeOption
"
in
case
"
$makeOption
"
in
lib
|
lib
s
o
|
libo
)
lib
|
libo
|
lib
s
o
)
$make
-s
-f
$WM_DIR
/Makefile
MAKE_DIR
=
$MakeDir
INCLUDE_DEPS
=
$OBJECTS_DIR
/dontIncludeDeps lnInclude/uptodate
$make
-s
-f
$WM_DIR
/Makefile
MAKE_DIR
=
$MakeDir
INCLUDE_DEPS
=
$OBJECTS_DIR
/dontIncludeDeps lnInclude/uptodate
;;
;;
esac
esac
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment