version 1.42.14.3, 2007/07/26 07:58:35
|
version 1.48, 2008/09/02 17:37:16
|
|
|
include $(ROOT)/mak/config.mak | include $(ROOT)/mak/config.mak |
| |
# This is a recurse make file | # This is a recurse make file |
# Defines subdirectorys to go to recursively |
# Defines subdirectories to go to recursively |
| |
# DIRS = src cgi |
DIRS = src |
DIRS = src test Schemas |
|
|
TEST_DIRS = test |
| |
# Define the inclusion of the recurse.mak file to execute the next | # Define the inclusion of the recurse.mak file to execute the next |
# level of makefiles defined by the DIRS variable | # level of makefiles defined by the DIRS variable |
ifneq ($(PEGASUS_USE_DIRECTACCESS_FOR_LOCAL),true) |
|
defaultrule: all setupdevserver | defaultrule: all setupdevserver |
else |
|
defaultrule: all dacim setupdevserver |
|
endif |
|
| |
include $(ROOT)/mak/recurse.mak | include $(ROOT)/mak/recurse.mak |
| |
|
|
$(USAGE)"repository - builds the base repository. Does not remove other" | $(USAGE)"repository - builds the base repository. Does not remove other" |
$(USAGE)" namespaces than the base namespaces." | $(USAGE)" namespaces than the base namespaces." |
$(USAGE)"testrepository - builds items for the test suites into the repository" | $(USAGE)"testrepository - builds items for the test suites into the repository" |
$(USAGE)"removetestrepository- removes test items from the repository" |
|
$(USAGE)"repositoryclean - removes the complete repository" | $(USAGE)"repositoryclean - removes the complete repository" |
$(USAGE)"listplatforms - List all valid platforms" | $(USAGE)"listplatforms - List all valid platforms" |
$(USAGE) | $(USAGE) |
|
|
# build target: builds all source | # build target: builds all source |
# | # |
build: depend all setupdevserver | build: depend all setupdevserver |
ifeq ($(PEGASUS_USE_DIRECTACCESS_FOR_LOCAL),true) |
|
$(MAKE) --directory=$(PEGASUS_ROOT) dacim |
|
endif |
|
|
|
| |
#------------------------ | #------------------------ |
# rebuild target is being deprecated instead use "make new build" | # rebuild target is being deprecated instead use "make new build" |
|
|
# buildmu target: build mu the make utility that among other things | # buildmu target: build mu the make utility that among other things |
# includes depend | # includes depend |
buildmu: FORCE | buildmu: FORCE |
$(MKDIRHIER) $(BIN_DIR) |
|
$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile | $(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile |
| |
#---------------------- | #---------------------- |
|
|
- $(RMDIRHIER) $(PEGASUS_HOME)/lib | - $(RMDIRHIER) $(PEGASUS_HOME)/lib |
- $(RMDIRHIER) $(PEGASUS_HOME)/obj | - $(RMDIRHIER) $(PEGASUS_HOME)/obj |
| |
dacim: FORCE |
|
@$(TOUCH) $(PEGASUS_ROOT)/src/Pegasus/Client/CIMClient.cpp |
|
@$(TOUCH) $(PEGASUS_ROOT)/src/Pegasus/Client/CIMClientRep.cpp |
|
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Client -f Makefile2 |
|
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Client/tests/DirectAccessCIM |
|
@$(ECHO) "PEGASUS built with direct access CIM. " |
|
|
|
removedacim: rmv_dacim build |
|
|
|
rmv_dacim: FORCE |
|
@$(TOUCH) $(PEGASUS_ROOT)/src/Pegasus/Client/CIMClientRep.cpp |
|
| |
#--------------------- | #--------------------- |
# The repository Target removes and rebuilds the base repository. It |
# The repository target removes the entire repository and rebuilds the Pegasus |
# does not remove all possible namespaces. See |
# namespaces. The repositoryServer target does not remove the repository |
# Schemas/Pegasus/Makefile for details. The repository clean has the |
# before building the Pegasus namespaces. (The repositoryServer target in |
# same limitation |
# TestMakefile *does* remove the repository first.) |
| |
# Note: Arguments must be quoted to preserve upper case characters in VMS. | # Note: Arguments must be quoted to preserve upper case characters in VMS. |
repository: FORCE |
repository: repositoryclean |
@ $(MAKE) "-SC" Schemas/Pegasus repository | @ $(MAKE) "-SC" Schemas/Pegasus repository |
| |
repositoryclean: FORCE | repositoryclean: FORCE |
|
|
repositoryServer: FORCE | repositoryServer: FORCE |
@ $(MAKE) "-SC" Schemas/Pegasus repositoryServer | @ $(MAKE) "-SC" Schemas/Pegasus repositoryServer |
| |
|
#--------------------- |
|
# The testrepository and testrepositoryServer targets build the Pegasus test |
|
# namespaces. A pre-existing repository is not removed. |
|
|
testrepository: FORCE | testrepository: FORCE |
@ $(MAKE) "-SC" src/Providers/sample/Load repository | @ $(MAKE) "-SC" src/Providers/sample/Load repository |
@ $(MAKE) "-SC" test/wetest repository | @ $(MAKE) "-SC" test/wetest repository |
|
|
@ $(MAKE) "-SC" src/Pegasus/CQL/CQLCLI repository | @ $(MAKE) "-SC" src/Pegasus/CQL/CQLCLI repository |
@ $(MAKE) "-SC" src/Pegasus/Query/QueryExpression/tests repository | @ $(MAKE) "-SC" src/Pegasus/Query/QueryExpression/tests repository |
@ $(MAKE) "-SC" src/Providers/TestProviders/Load repository | @ $(MAKE) "-SC" src/Providers/TestProviders/Load repository |
|
ifeq ($(PEGASUS_ENABLE_CQL),true) |
@ $(MAKE) "-SC" src/Pegasus/ControlProviders/QueryCapabilitiesProvider/tests repository | @ $(MAKE) "-SC" src/Pegasus/ControlProviders/QueryCapabilitiesProvider/tests repository |
|
endif |
ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true) | ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true) |
@ $(MAKE) "-SC" src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests repository | @ $(MAKE) "-SC" src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests repository |
endif | endif |
|
|
@ $(MAKE) "-SC" src/Pegasus/CQL/CQLCLI repositoryServer | @ $(MAKE) "-SC" src/Pegasus/CQL/CQLCLI repositoryServer |
@ $(MAKE) "-SC" src/Pegasus/Query/QueryExpression/tests repositoryServer | @ $(MAKE) "-SC" src/Pegasus/Query/QueryExpression/tests repositoryServer |
@ $(MAKE) "-SC" src/Providers/TestProviders/Load repositoryServer | @ $(MAKE) "-SC" src/Providers/TestProviders/Load repositoryServer |
|
ifeq ($(PEGASUS_ENABLE_CQL),true) |
@ $(MAKE) "-SC" src/Pegasus/ControlProviders/QueryCapabilitiesProvider/tests repositoryServer | @ $(MAKE) "-SC" src/Pegasus/ControlProviders/QueryCapabilitiesProvider/tests repositoryServer |
|
endif |
ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true) | ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true) |
@ $(MAKE) "-SC" src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests repositoryServer | @ $(MAKE) "-SC" src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests repositoryServer |
endif | endif |
@ $(MAKE) --directory=$(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscript \ | @ $(MAKE) --directory=$(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscript \ |
-f Makefile repositoryServer | -f Makefile repositoryServer |
| |
removetestrepository: FORCE |
|
@ $(MAKE) "-SC" src/Providers/sample/Load removerepository |
|
@ $(MAKE) "-SC" test/wetest removerepository |
|
@ $(MAKE) "-SC" src/Clients/benchmarkTest/Load removerepository |
|
@ $(MAKE) "-SC" src/Providers/TestProviders/Load removerepository |
|
@ $(MAKE) "-SC" src/Clients/cimsub/tests/testscript removerepository |
|
|
|
config: | config: |
@ $(ROOT)/SetConfig_EnvVar | @ $(ROOT)/SetConfig_EnvVar |
| |