#//%2006//////////////////////////////////////////////////////////////////////// #// #// 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. #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; #// 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. #// #//============================================================================== # Pegasus top level make file # see the usage rule for options ROOT = . include $(ROOT)/env_var.status include $(ROOT)/mak/config.mak # This is a recurse make file # Defines subdirectorys to go to recursively # DIRS = src cgi ifeq ($(OS_TYPE),vxworks) DIRS = \ src/Pegasus/Common \ src/Pegasus/Common/tests \ src/Pegasus/Config \ src/Pegasus/Query/QueryCommon \ src/Pegasus/WQL \ src/Pegasus/CQL \ src/Pegasus/Query/QueryExpression \ src/Pegasus/Security/UserManager \ src/Pegasus/Client \ src/Service \ src/Pegasus/Provider \ src/Pegasus/Repository \ src/Pegasus/Repository/tests \ src/Pegasus/Server/ProviderRegistrationManager \ src/Pegasus/ProviderManager2 \ src/Pegasus/ProviderManager2/Default \ src/Pegasus/ExportServer \ src/Pegasus/ProviderManagerService \ src/Pegasus/Security/Authentication \ src/Pegasus/HandlerService \ src/Pegasus/IndicationService \ src/Pegasus/ControlProviders/InteropProvider \ src/Pegasus/ControlProviders/Statistic \ src/Pegasus/ControlProviders/QueryCapabilitiesProvider \ src/Pegasus/ControlProviders/ProviderRegistrationProvider \ src/Pegasus/ControlProviders/NamespaceProvider \ src/Pegasus/ControlProviders/ConfigSettingProvider \ src/Pegasus/ControlProviders/UserAuthProvider \ src/Pegasus/Server \ src/Server XSOURCES = \ src/Providers/ManagedSystem/ComputerSystem \ src/Providers/ManagedSystem/Process \ src/Providers/ManagedSystem/Processor \ src/Providers/ManagedSystem/IP \ src/Providers/ManagedSystem/ComputerSystem else DIRS = src test Schemas endif # Define the inclusion of the recurse.mak file to execute the next # level of makefiles defined by the DIRS variable ifeq ($(OS_TYPE),vxworks) defaultrule: all else defaultrule: all setupdevserver endif include $(ROOT)/mak/recurse.mak .PHONY: FORCE FORCE: usage: FORCE $(USAGE) $(USAGE)"Makefile targets:" $(USAGE) $(USAGE)"Recursive rules - These are the primatives that traverse the tree" $(USAGE)"invoking the specified command in each subdirectory directory." $(USAGE)"NOTE: all is special, it specifies no target and therefore invokes" $(USAGE)"the default rule for that directory." $(USAGE)"all - recursive DEFAULT rule" $(USAGE)"clean - recursive clean" $(USAGE)"depend - buildmu recursive depend" $(USAGE)"messages - rootbundle recursive messages" $(USAGE)"tests - recursive tests" $(USAGE)"poststarttests - recursive poststarttests" $(USAGE) $(USAGE)"Combinational rules - Combine other rules to achieve results" $(USAGE)"DEFAULT RULE - all, setupdevserver" $(USAGE)"new - clean repositoryclean" $(USAGE)"build - depend all, setupdevserver" $(USAGE)"world - build unittests servertests" $(USAGE) $(USAGE)"Functional rules - Other rules to achieve specified results" $(USAGE)"clobber -removes objects built during compile" $(USAGE)" specifically the following directories are removed:" $(USAGE)" $(PEGASUS_HOME)/bin" $(USAGE)" $(PEGASUS_HOME)/lib" $(USAGE)" $(PEGASUS_HOME)/obj" $(USAGE)"buildmu - builds the mu utility" $(USAGE)"setupdevserver - setup the development server env" $(USAGE)"cleandevserver - cleans the development server env" $(USAGE)"repository - builds the base repository. Does not remove other" $(USAGE)" namespaces than the base namespaces." $(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)"listplatforms - List all valid platforms" $(USAGE) $(USAGE)"Test rules (accessable here but implemented in TestMakefile)" $(USAGE)"alltests - unittests and servertests" $(USAGE)"unittests - runs the unit functional test" $(USAGE)"servertests - runs basic server tests" $(USAGE)"perftests - runs basic server performance tests" $(USAGE)"standardtests - runs server extended tests" $(USAGE)"testusage - TestMakefile usage" $(USAGE)"testusage2 - TestMakefile usage2" $(USAGE)"stresstests - Runs the default stresstests" $(USAGE) $(USAGE)"--------------------" $(USAGE)"Quick start:" $(USAGE)" After checkout of new tree:" $(USAGE)" use \"make listplatforms\" to view a list of platforms" $(USAGE)" set PEGASUS_PLATFORM=" $(USAGE)" set PEGASUS_ROOT=" $(USAGE)" set PEGASUS_HOME=