New version of wmake supporting out-of-tree object and dependency files

This commit is contained in:
Henry
2014-12-14 21:42:18 +00:00
parent 0587e6e0e8
commit bc5134a55e
251 changed files with 1466 additions and 1847 deletions

View File

@ -38,7 +38,7 @@ usage() {
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
cat<<USAGE
usage: ${0##*/}
Usage: $Script
Scan current directory for directories and source files
and construct 'Make/files' and 'Make/options'
@ -48,7 +48,10 @@ USAGE
}
# simple parse options
#------------------------------------------------------------------------------
# Parse arguments and options
#------------------------------------------------------------------------------
while [ "$#" -gt 0 ]
do
case "$1" in
@ -64,12 +67,13 @@ do
esac
done
# no arguments
# No arguments
[ "$#" -eq 0 ] || usage "unexpected arguments: '$*'"
#
# check environment variables
#
#------------------------------------------------------------------------------
# Check environment variables
#------------------------------------------------------------------------------
for check in WM_OPTIONS WM_LINK_LANGUAGE WM_DIR
do
eval test "\$$check" || {
@ -96,4 +100,12 @@ fi
$WM_DIR/scripts/makeOptions
}
#------------------------------------------------------------------------------
# Cleanup local variables and functions
#------------------------------------------------------------------------------
unset Script usage
#------------------------------------------------------------------------------