version 1.1, 2008/07/02 15:07:56
|
version 1.2, 2008/07/02 15:44:38
|
|
|
#!/bin/bash |
#!/bin/sh |
| |
##============================================================================== |
#//%2006/////////////////////////////////////////////////////////////////////// |
## |
#// |
## Current directory should be the Pegasus root directory. |
#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
## |
#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
##============================================================================== |
#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
#// IBM Corp.; EMC Corporation, The Open Group. |
if [ ! -d "src/Pegasus" ]; then |
#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
echo "$0: must be invoked from the root of the Pegasus distribution" |
#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
exit 1 |
#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
fi |
#// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
#// EMC Corporation; Symantec Corporation; The Open Group. |
|
#// |
|
#// Permission is hereby granted, free of charge, to any person obtaining a copy |
|
#// of this software and associated documentation files (the "Software"), to |
|
#// deal in the Software without restriction, including without limitation the |
|
#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
|
#// sell copies of the Software, and to permit persons to whom the Software is |
|
#// furnished to do so, subject to the following conditions: |
|
#// |
|
#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN |
|
#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED |
|
#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT |
|
#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
|
#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
|
#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
#// |
|
#//============================================================================= |
| |
##============================================================================== | ##============================================================================== |
## | ## |
## Options defaults. |
## Check for existence of pegasus config.mak. If this does not exist, it means |
|
## that the distribution is incomplete or that the configure file has been run |
|
## from the wrong directory. |
## | ## |
##============================================================================== | ##============================================================================== |
| |
platform= |
config=mak/config.mak |
prefix=/usr/local |
|
bindir= |
|
sbindir= |
|
libdir= |
|
includedir= |
|
datadir= |
|
enable_debug= |
|
enable_binary_repository= |
|
disable_oop= |
|
disable_prov_userctxt= |
|
disable_privileged_tests= |
|
disable_trace= |
|
| |
if [ -f "config.local" ]; then |
if [ ! -f "$config" ]; then |
source config.local |
echo "$0: Error: Corrupt source distribution. Cannot find $config." |
|
echo |
|
exit 1 |
fi | fi |
| |
##============================================================================== | ##============================================================================== |
## | ## |
## Collect options. |
## Collection command line options. |
## | ## |
##============================================================================== | ##============================================================================== |
| |
|
help= |
|
|
for opt | for opt |
do | do |
| |
|
|
| |
case $opt in | case $opt in |
| |
--help | --h | -h | -help) |
-h | --help) |
help=1 | help=1 |
;; | ;; |
| |
--platform=*) |
--host=*) |
platform=$optarg |
host=$optarg |
;; | ;; |
| |
--prefix=*) | --prefix=*) |
|
|
sbindir=$optarg | sbindir=$optarg |
;; | ;; |
| |
--libdir=*) |
-libdir=*) |
libdir=$optarg | libdir=$optarg |
;; | ;; |
| |
--includedir=*) | --includedir=*) |
includedir=$optarg |
incdir=$optarg |
;; | ;; |
| |
--datadir=*) | --datadir=*) |
|
|
enable_debug=1 | enable_debug=1 |
;; | ;; |
| |
--enable-binary-repository) |
|
enable_binary_repository=1 |
|
;; |
|
|
|
--disable-oop) | --disable-oop) |
disable_oop=1 | disable_oop=1 |
;; | ;; |
| |
--disable-prov-userctxt) |
--disable-provider-user-context) |
disable_prov_userctxt=1 |
disable_provider_user_context=1 |
|
;; |
|
|
|
--disable-pam) |
|
disable_pam=1 |
|
;; |
|
|
|
--with-pam=*) |
|
with_pam=$optarg |
|
;; |
|
|
|
--with-pam-mod=*) |
|
with_pam_mod=$optarg |
|
;; |
|
|
|
--enable-ssl) |
|
enable_ssl=1 |
;; | ;; |
| |
--disable-privileged-tests) |
--with-ssl=*) |
disable_privileged_tests=1 |
with_ssl=$optarg |
|
;; |
|
|
|
--enable-binary-repository) |
|
enable_binary_repository=1 |
;; | ;; |
| |
--disable-trace) |
--enable-compressed-repository) |
disable_trace=1 |
enable_compressed_repository=1 |
;; | ;; |
| |
*) | *) |
|
|
;; | ;; |
| |
esac | esac |
|
|
done | done |
| |
##============================================================================== | ##============================================================================== |
## | ## |
## Help |
## Print help message if --help given on command line. |
## | ## |
##============================================================================== | ##============================================================================== |
| |
if [ "$help" = "1" ]; then | if [ "$help" = "1" ]; then |
cat config.help |
cat<<END |
|
|
|
Usage: ./configure [OPTION]... |
|
|
|
Configures Inova OpenPegasus build options. |
|
|
|
Configure examples. |
|
$ ./configure |
|
|
|
Options: |
|
--help |
|
Print this help message. |
|
--host=HOST |
|
Build package for this HOST, where HOST is of the form |
|
"<cpu>-<manufacturer>-<os>-<kernel>". |
|
--prefix=DIR |
|
Install under DIR |
|
--bindir=DIR |
|
Install programs here. |
|
--sbindir=DIR |
|
Install super-user programs here. |
|
--libdir=DIR |
|
Install libraries here. |
|
--incluedir=DIR |
|
Install include files here. |
|
--datadir=DIR |
|
Install data files here. |
|
--enable-debug |
|
Build for debug. |
|
--disable-oop |
|
Disable out-of-process providers. |
|
--disable-provider-user-context |
|
Disable provider user context feature. |
|
--disable-pam |
|
Disable PAM authentication (fall back on password-file authentication). |
|
--with-pam=DIR |
|
Specify an alternative PAM directory location (defaults to /etc/pam.d). |
|
--with-pam-mod=FILE |
|
Specify an alternative name for the PAM module file (defaults to |
|
inova-pegasus). |
|
--enable-ssl |
|
Enable SSL feature |
|
--with-ssl=DIR |
|
Find SSL under DIR (e.g., --with-ssl=/usr). |
|
--enable-binary-repository |
|
Enable the binary repository feature, resulting in a smaller CIM |
|
repository disk footprint. |
|
END |
exit | exit |
fi | fi |
| |
##============================================================================== | ##============================================================================== |
## | ## |
## Guess the platform |
## Guess the platform using the ./config.guess script. |
## | ## |
##============================================================================== | ##============================================================================== |
| |
if [ -z "$platform" ]; then |
if [ -z "$host" ]; then |
| |
machine=`(uname -m) 2>/dev/null` || machine=unknown | machine=`(uname -m) 2>/dev/null` || machine=unknown |
system=`(uname -s) 2>/dev/null` || system=unknown | system=`(uname -s) 2>/dev/null` || system=unknown |
release=`(uname -r) 2>/dev/null` || release=unknown | release=`(uname -r) 2>/dev/null` || release=unknown |
version=`(uname -v) 2>/dev/null` || version=unknown | version=`(uname -v) 2>/dev/null` || version=unknown |
|
token="$machine:$system:$release:$version" |
| |
case "$machine:$system:$release:$version" in |
case "$token" in |
| |
i*86:Linux:*:*) |
i686:Linux:*:*) |
export platform=LINUX_IX86_GNU |
host=i686-unknown-linux-gnu |
;; | ;; |
| |
x86_64:Linux:*:*) | x86_64:Linux:*:*) |
export platform=LINUX_X86_64_GNU |
host=x86_64-unknown-linux-gnu |
|
;; |
|
|
|
ia64:Linux:*:*) |
|
host=ia64-unknown-linux-gnu |
|
;; |
|
|
|
s390:Linux:*:*) |
|
host=s390-unknown-linux-gnu |
|
;; |
|
|
|
s390x:Linux:*:*) |
|
host=s390x-unknown-linux-gnu |
|
;; |
|
|
|
ppc64:Linux:*:*) |
|
host=ppc64-unknown-linux-gnu |
|
;; |
|
|
|
ppc:Linux:*:*) |
|
host=ppc-unknown-linux-gnu |
;; | ;; |
| |
*) | *) |
echo "$0: Failed to guess platform: " |
echo "$0: Failed to guess host" |
echo " machine=$machine " | echo " machine=$machine " |
echo " system=$system " | echo " system=$system " |
echo " release=$release " | echo " release=$release " |
echo " version=$version " | echo " version=$version " |
echo |
|
exit 1 | exit 1 |
;; | ;; |
| |
esac | esac |
else |
|
platform=$platform |
|
fi | fi |
| |
##============================================================================== | ##============================================================================== |
## | ## |
## Check platform: |
## Set the platform library basename ("lib" or "lib64" depending on vendor |
|
## convention and architecture). |
## | ## |
##============================================================================== | ##============================================================================== |
| |
case "$platform" in |
case "$host" in |
|
|
|
i686-unknown-linux-gnu) |
|
platform=LINUX_IX86_GNU |
|
libbase=lib |
|
;; |
|
|
|
x86_64-unknown-linux-gnu) |
|
platform=LINUX_X86_64_GNU |
|
libbase=lib64 |
|
;; |
|
|
|
ia64-unknown-linux-gnu) |
|
platform=LINUX_IA64_GNU |
|
libbase=lib |
|
;; |
| |
LINUX_IX86_GNU) |
ppc-unknown-linux-gnu) |
|
platform=LINUX_PPC_GNU |
|
libbase=lib |
;; | ;; |
| |
LINUX_X86_64_GNU) |
ppc64-unknown-linux-gnu) |
|
platform=LINUX_PPC64_GNU |
|
libbase=lib64 |
|
;; |
|
|
|
arm-wrs-vxworks-gnu) |
|
platform=VXWORKS_XSCALE_GNU |
|
libbase=lib |
|
enable_static=1 |
;; | ;; |
| |
*) | *) |
echo "$0: Unrecognized platform: $platform" |
echo "$0: unknown host: $host" |
exit 1 | exit 1 |
;; | ;; |
| |
|
|
| |
##============================================================================== | ##============================================================================== |
## | ## |
## Deduce locations. |
## Resolve default directory names. |
## | ## |
##============================================================================== | ##============================================================================== |
| |
|
# --prefix: |
|
|
|
if [ -z "$prefix" ]; then |
|
prefix=/usr/local |
|
fi |
|
|
|
# --bindir: |
|
|
if [ -z "$bindir" ]; then | if [ -z "$bindir" ]; then |
bindir=$prefix/bin | bindir=$prefix/bin |
fi | fi |
| |
|
# --sbindir: |
|
|
if [ -z "$sbindir" ]; then | if [ -z "$sbindir" ]; then |
sbindir=$prefix/sbin | sbindir=$prefix/sbin |
fi | fi |
| |
|
# --libdir: |
|
|
if [ -z "$libdir" ]; then | if [ -z "$libdir" ]; then |
libdir=$prefix/lib |
libdir=$prefix/$libbase |
fi | fi |
| |
|
# --includedir: |
|
|
if [ -z "$includedir" ]; then | if [ -z "$includedir" ]; then |
includedir=$prefix/include | includedir=$prefix/include |
fi | fi |
| |
|
# --datadir: |
|
|
if [ -z "$datadir" ]; then | if [ -z "$datadir" ]; then |
datadir=$prefix/share | datadir=$prefix/share |
fi | fi |
| |
|
if [ -z "$with_ssl" ]; then |
|
with_ssl=/usr |
|
fi |
|
|
|
if [ -z "$with_pam" ]; then |
|
with_pam=/etc/pam.d |
|
fi |
|
|
|
if [ -z "$with_pam_mod" ]; then |
|
with_pam_mod=wsman |
|
fi |
|
|
|
##============================================================================== |
|
## |
|
## Verify existence of SSL files and directories. |
|
## |
|
##============================================================================== |
|
|
|
if [ "$enable_ssl" = "1" ]; then |
|
|
|
# Verify that SSL base directory exists (e.g., /usr). |
|
|
|
if [ ! -d "$with_ssl" ]; then |
|
echo "$0: Error: No such directory: --with-ssl=$with_ssl" |
|
echo |
|
exit 1; |
|
fi |
|
|
|
# Verify that "ssl.h" exists. |
|
|
|
missing= |
|
|
|
if [ ! -f "$with_ssl/include/openssl/ssl.h" ]; then |
|
missing=include/openssl/ssl.h |
|
fi |
|
|
|
# Verify that "openssl" program exists. |
|
|
|
if [ ! -f "$with_ssl/bin/openssl" ]; then |
|
missing=bin/openssl |
|
fi |
|
|
|
# Verify that "libssl.a" or "libssl.so" exist. |
|
|
|
if [ ! -f "$with_ssl/$libbase/libssl.a" -a ! -f "$with_ssl/$libbase/libssl.so" ]; then |
|
missing="$libbase/libssl.so" |
|
fi |
|
|
|
# Print error if any of the above components are missing. |
|
|
|
if [ ! -z $missing ]; then |
|
echo -n "$0: Error: SSL component not found: $with_ssl/$missing. " |
|
echo -n "Specify location of SSL with the --with-ssl=DIR option." |
|
echo |
|
exit 1; |
|
fi |
|
|
|
fi |
|
|
##============================================================================== | ##============================================================================== |
## | ## |
## Create config.options |
## These options (if non-empty) must denote absolute directory names. |
## | ## |
##============================================================================== | ##============================================================================== |
| |
rm -f config.options |
for i in \ |
|
prefix \ |
|
bindir \ |
|
sbindir \ |
|
libdir \ |
|
includedir \ |
|
datadir \ |
|
with_ssl \ |
|
with_pam |
|
do |
|
|
|
eval v=$`echo $i` |
|
|
|
case $v in |
|
/* | "") |
|
;; |
|
|
|
*) |
|
echo "$0: Error: Must be an absolute directory name: --$i=$v" |
|
exit 1; |
|
;; |
|
esac |
|
|
|
done |
| |
echo "platform=$platform" >> config.options |
##============================================================================== |
echo "prefix=$prefix" >> config.options |
## |
echo "bindir=$bindir" >> config.options |
## Create options.mak |
echo "sbindir=$sbindir" >> config.options |
## |
echo "libdir=$libdir" >> config.options |
##============================================================================== |
echo "includedir=$includedir" >> config.options |
|
echo "datadir=$datadir" >> config.options |
|
echo "enable_debug=$enable_debug" >> config.options |
|
echo "enable_binary_repository=$enable_binary_repository" >> config.options |
|
echo "disable_oop=$disable_oop" >> config.options |
|
echo "disable_prov_userctxt=$disable_prov_userctxt" >> config.options |
|
echo "disable_privileged_tests=$disable_privileged_tests" >> config.options |
|
echo "disable_trace=$disable_trace" >> config.options |
|
|
|
echo "export PEGASUS_PLATFORM=$platform" >> config.options |
|
echo "export PEGASUS_ROOT=`pwd`" >> config.options |
|
echo "export PEGASUS_HOME=`pwd`/build/$platform" >> config.options |
|
| |
if [ "$enable_debug" = "1" ]; then |
options=options.mak |
echo "export PEGASUS_DEBUG=1" >> config.options |
rm -f $options |
|
echo "# This file was generated by configure." >> $options |
|
|
|
cwd=`/bin/pwd` |
|
root=$cwd |
|
echo "export ROOT=$root" >> $options |
|
echo "export PATH=$PATH:$cwd/$platform/bin" >> $options |
|
echo "export LD_LIBRARY_PATH=$cwd/$platform/lib:$libdir" >> $options |
|
echo "export PEGASUS_PLATFORM=$platform" >> $options |
|
echo "export PEGASUS_ROOT=$root" >> $options |
|
echo "export PEGASUS_HOME=$cwd/$platform" >> $options |
|
|
|
if [ "$disable_oop" = "1" ] |
|
then |
|
echo "export PEGASUS_DEFAULT_ENABLE_OOP=false" >> $options |
|
else |
|
echo "export PEGASUS_DEFAULT_ENABLE_OOP=true" >> $options |
|
fi |
|
|
|
if [ "$disable_provider_user_context" = "1" ] |
|
then |
|
echo "export PEGASUS_DISABLE_PROV_USERCTXT=1" >> $options |
|
fi |
|
|
|
if [ "$enable_debug" = 1 ] |
|
then |
|
echo "export PEGASUS_DEBUG=1" >> $options |
|
fi |
|
|
|
if [ "$disable_pam" != "1" ]; then |
|
echo "export PEGASUS_PAM_AUTHENTICATION=true" >> $options |
|
echo "export PEGASUS_USE_PAM_STANDALONE_PROC=true" >> $options |
fi | fi |
| |
if [ "$enable_binary_repository" = "1" ]; then | if [ "$enable_binary_repository" = "1" ]; then |
echo "export PEGASUS_REPOSITORY_MODE=BIN" >> config.options |
echo "export PEGASUS_REPOSITORY_MODE=BIN" >> $options |
fi | fi |
| |
if [ "$disable_oop" = "1" ]; then |
if [ "$enable_compressed_repository" = "1" ]; then |
echo "export PEGASUS_DEFAULT_ENABLE_OOP=false" >> config.options |
echo "export PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1" >> $options |
fi | fi |
| |
if [ "$disable_prov_userctxt" = "1" ]; then |
if [ "$enable_ssl" = "1" ]; then |
echo "export PEGASUS_DISABLE_PROV_USERCTXT=1" >> config.options |
echo "export PEGASUS_HAS_SSL=true" >> $options |
|
echo "export OPENSSL_HOME=$with_ssl" >> $options |
|
echo "export PEGASUS_USE_SSL_RANDOMFILE=false" >> $options |
fi | fi |
| |
if [ "$disable_privileged_tests" = "1" ]; then |
if [ "$enable_binary_repository" = "1" ]; then |
echo "export PEGASUS_DISABLE_PRIVILEGED_TESTS=1" >> config.options |
echo "export PEGASUS_REPOSITORY_MODE=BIN" >> $options |
fi | fi |
| |
if [ "$disable_trace" = "1" ]; then |
if [ "$enable_compressed_repository" = "1" ]; then |
echo "export PEGASUS_REMOVE_TRACE=1" >> config.options |
echo "export PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1" >> $options |
fi | fi |
| |
echo "Created config.options" |
echo "created $options" |
echo "Configured for $platform" |
|
|
##============================================================================== |
|
## |
|
## Create GNUmakefile |
|
## |
|
##============================================================================== |
|
|
|
cat > GNUmakefile << END |
|
include options.mak |
|
|
|
start: clients server |
|
|
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Common |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Client |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Config |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Query/QueryCommon |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/WQL |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/CQL |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Query/QueryExpression |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Security/UserManager |
|
SERVER_DIRS += \$(ROOT)/src/Service |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Provider |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Repository |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Server/ProviderRegistrationManager |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ProviderManager2 |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ProviderManager2/Default |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ProviderManager2/CMPI |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ExportServer |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ProviderManagerService |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Security/Authentication |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/HandlerService |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/IndicationService |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ControlProviders/InteropProvider |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ControlProviders/Statistic |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ControlProviders/QueryCapabilitiesProvider |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ControlProviders/ProviderRegistrationProvider |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ControlProviders/NamespaceProvider |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ControlProviders/ConfigSettingProvider |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ControlProviders/UserAuthProvider |
|
SERVER_DIRS += \$(ROOT)/src/Providers/ManagedSystem/OperatingSystem |
|
SERVER_DIRS += \$(ROOT)/src/Providers/ManagedSystem/ComputerSystem |
|
SERVER_DIRS += \$(ROOT)/src/Providers/ManagedSystem/Process |
|
SERVER_DIRS += \$(ROOT)/src/Providers/ManagedSystem/Processor |
|
SERVER_DIRS += \$(ROOT)/src/Providers/ManagedSystem/IP |
|
|
|
ifdef PEGASUS_DEFAULT_ENABLE_OOP |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ProviderManagerService/ProviderAgent |
|
endif |
|
|
|
ifdef PEGASUS_HAS_SSL |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/ControlProviders/CertificateProvider |
|
endif |
|
|
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Server |
|
SERVER_DIRS += \$(ROOT)/src/Server |
|
|
|
ifeq (\$(DISABLE_PAM),) |
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Security/Cimservera |
|
endif |
|
|
|
SERVER_DIRS += \$(ROOT)/src/Pegasus/Listener |
|
|
|
# HP-only providers: |
|
# |
|
# \$(ROOT)/src/Providers/ManagedSystem/NTPService \ |
|
# \$(ROOT)/src/Providers/ManagedSystem/NISServerService \ |
|
# \$(ROOT)/src/Providers/ManagedSystem/DNSService \ |
|
|
|
server: |
|
\$(foreach i, \$(SERVER_DIRS), \$(MAKE) -C \$i \$(NL) ) |
|
|
|
CLIENT_DIRS += \$(ROOT)/src/Pegasus/Common |
|
CLIENT_DIRS += \$(ROOT)/src/Pegasus/Client |
|
CLIENT_DIRS += \$(ROOT)/src/Pegasus/Query/QueryCommon |
|
CLIENT_DIRS += \$(ROOT)/src/Pegasus/Config |
|
CLIENT_DIRS += \$(ROOT)/src/Pegasus/Repository |
|
CLIENT_DIRS += \$(ROOT)/src/Pegasus/getoopt |
|
CLIENT_DIRS += \$(ROOT)/src/Pegasus/Compiler |
|
CLIENT_DIRS += \$(ROOT)/src/Pegasus/Compiler/cmdline |
|
CLIENT_DIRS += \$(ROOT)/src/Clients/cliutils |
|
CLIENT_DIRS += \$(ROOT)/src/Clients/cimauth |
|
CLIENT_DIRS += \$(ROOT)/src/Clients/cimuser |
|
CLIENT_DIRS += \$(ROOT)/src/Clients/cimconfig |
|
CLIENT_DIRS += \$(ROOT)/src/Clients/cimprovider |
|
CLIENT_DIRS += \$(ROOT)/src/Clients/cimsub |
|
CLIENT_DIRS += \$(ROOT)/src/Clients/CLITestClients/CLIClientLib |
|
CLIENT_DIRS += \$(ROOT)/src/Clients/CLITestClients/CLI |
|
|
|
ifdef PEGASUS_HAS_SSL |
|
CLIENT_DIRS += \$(ROOT)/src/Clients/cimtrust |
|
endif |
|
|
|
clients: |
|
\$(foreach i, \$(CLIENT_DIRS), \$(MAKE) -C \$i \$(NL) ) |
|
|
|
include Makefile |
|
|
|
distclean: |
|
rm -rf \$(PEGASUS_PLATFORM) |
|
rm -f GNUmakefile |
|
rm -f options.mak |
|
END |
|
|
|
echo "created GNUmakefile" |
|
|
|
##============================================================================== |
|
## |
|
## Print final message: |
|
## |
|
##============================================================================== |
|
|
|
echo "configured for $host" |
echo | echo |