wmake/Allwmake: Completed support for targetType 'objects'
Patch contributed by Mattijs Janssens
This commit is contained in:
@ -28,9 +28,6 @@
|
||||
# Allwmake argument parser
|
||||
#
|
||||
# Usage
|
||||
# # Declare the targetType and set to default for library building
|
||||
# targetType=libso # lib, libo or libso
|
||||
#
|
||||
# # Declare genDoc and set to default if documentation building is supported
|
||||
# genDoc=0 # 0 or 1
|
||||
#
|
||||
@ -65,11 +62,12 @@ USAGE
|
||||
USAGE_DOC
|
||||
|
||||
# Print options for building libraries
|
||||
test -n "$targetType" && cat<<USAGE_LIB
|
||||
cat<<USAGE_LIB
|
||||
lib Compile statically linked archive lib (.a)
|
||||
libo Compile statically linked lib (.o)
|
||||
libso Compile dynamically linked lib (.so)
|
||||
dep Compile dependency files
|
||||
objects Compile only
|
||||
USAGE_LIB
|
||||
|
||||
exit 1
|
||||
@ -145,8 +143,7 @@ do
|
||||
genDoc=1
|
||||
;;
|
||||
# Specify target type
|
||||
lib | libo | libso | dep)
|
||||
test -n "$targetType" || usage "invalid option '$1'"
|
||||
lib | libo | libso | dep | objects)
|
||||
targetType=$1
|
||||
;;
|
||||
--)
|
||||
|
||||
12
wmake/wmake
12
wmake/wmake
@ -83,6 +83,7 @@ or a special target:
|
||||
libso Compile dynamically linked lib (.so)
|
||||
dep Compile lnInclude and dependencies only
|
||||
updatedep Compile dependencies only (in case of broken dependencies)
|
||||
objects Compile but not link
|
||||
|
||||
USAGE
|
||||
exit 1
|
||||
@ -217,7 +218,7 @@ if [ "$all" = "all" ]
|
||||
then
|
||||
if [ -e Allwmake ]
|
||||
then
|
||||
./Allwmake
|
||||
./Allwmake $targetType
|
||||
exit $?
|
||||
else
|
||||
# Have to keep track of the main exit code for the call to "make"
|
||||
@ -322,6 +323,15 @@ then
|
||||
then
|
||||
targetType=libso
|
||||
fi
|
||||
elif grep -e '^ *EXE *=' "$MakeDir/files" >/dev/null 2>&1
|
||||
then
|
||||
# Application. Remove any nonsense targetType
|
||||
case "$targetType" in
|
||||
lib*)
|
||||
unset targetType
|
||||
break
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user