(file) Return to Makefile CVS log (file) (dir) Up to [Pegasus] / pegasus

Diff for /pegasus/Makefile between version 1.31 and 1.43.2.7

version 1.31, 2005/05/12 15:27:24 version 1.43.2.7, 2007/10/06 00:38:20
Line 1 
Line 1 
 #//%2005////////////////////////////////////////////////////////////////////////  #//%2006////////////////////////////////////////////////////////////////////////
 #// #//
 #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
Line 8 
Line 8 
 #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 #// EMC Corporation; VERITAS Software Corporation; The Open Group. #// 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 #// Permission is hereby granted, free of charge, to any person obtaining a copy
 #// of this software and associated documentation files (the "Software"), to #// of this software and associated documentation files (the "Software"), to
Line 27 
Line 29 
 #// #//
 #//============================================================================== #//==============================================================================
 # Pegasus top level make file # Pegasus top level make file
 # options are  # see the usage rule for options
 # Make rebuild  
 # Make world  
 # Make tests - Executes the complete test suite  
 # Make repository - Rebuilds the Pegasus repository  
 #  
 ROOT = . ROOT = .
  
 include $(ROOT)/env_var.status include $(ROOT)/env_var.status
Line 42 
Line 40 
 # Defines subdirectorys to go to recursively # Defines subdirectorys to go to recursively
  
 # DIRS = src cgi # DIRS = src cgi
 DIRS = src test rpm Schemas  
   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/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
   else
       DIRS = src test Schemas
   endif
  
 # 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
  
   ifeq ($(OS_TYPE),vxworks)
       defaultrule: all
   else
       defaultrule: all setupdevserver
   endif
   
 include $(ROOT)/mak/recurse.mak include $(ROOT)/mak/recurse.mak
  
 # rebuild target cleans, setup dependencies, compiles all and builds  .PHONY: FORCE
 # repository  
  
 FORCE: FORCE:
  
 rebuild: clean depend all repository  usage: FORCE
         @ $(MAKE) -s tests          $(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=<your platofrm>"
           $(USAGE)"  set PEGASUS_ROOT=<location of your pegasus source>"
           $(USAGE)"  set PEGASUS_HOME=<build output location"
           $(USAGE)"  make world"
           $(USAGE)
           $(USAGE)"  This will build everthing with a default configuration"
           $(USAGE)"  and run the automated tests."
           $(USAGE)
           $(USAGE)"--------------------"
           $(USAGE)"Examples:"
           $(USAGE)"  After \"cvs checkout\" of new tree:    make world"
           $(USAGE)
           $(USAGE)"  After changes to include files:      make"
           $(USAGE)
           $(USAGE)"  After changes to the files included: make build"
           $(USAGE)
           $(USAGE)"  After \"cvs update\" or to start over: make new world"
           $(USAGE)
   
   listplatforms: FORCE
           $(USAGE)
           $(USAGE)"The $(words $(VALID_PLATFORMS)) valid platforms are:"
           $(USAGE)" $(foreach w, $(VALID_PLATFORMS), " $w ")"
           $(USAGE)
           $(USAGE)
   
   #########################################################################
   # This section defines any prerequisites that are required by the
   # recursive rules.
   #
   # NOTE: You can add prerequisties for the recursive rules but you cannot
   #       add any commands to run as part of the rule. You can define them
   #       and make will quietly ignore them and they will not be run either
   #       before or after the recursive rule.
   #
   #
   messages: rootbundle
   
   depend: buildmu
   
   #########################################################################
   # This section defines combinational rules
   #
   #-----------------------
   # build target: builds all source
   #
   build: depend all setupdevserver
   
   #------------------------
   # rebuild target is being deprecated instead use "make new build"
   #
   rebuild_msg: FORCE
           @$(ECHO) "==============================================================================="
           @$(ECHO) "Makefile: The rebuild target is being deprecated."
           @$(ECHO) "          Use \"make usage\" for a description of the usage model."
           @$(ECHO) "          Consider using \"make new world\" ."
           @$(ECHO) "          Invoking the old rebuild rule now."
           @$(ECHO) "==============================================================================="
   
   rebuild: rebuild_msg shortsleep new build s_unittests repository
   
   #-----------------------
   # new target: cleans everthing
   #
   # This can be combined on the command line with other rules like:
   #
   # make new build
   # make new world
   
   new: clean repositoryclean
   
   #-----------------------
   # world targets: builds everything and dependent on which target may do testing
   #
   #       Typically used after a fresh checkout from CVS
  
 world: depend all repository  world: build s_unittests servertests
         @ $(MAKE) -s tests  
  
 # The repository Target removes and rebuilds the CIM repository  
   ############################
   #
   # rules defined in TestMakefile that are repeated here for convenience
   #
   shortsleep: FORCE
           @$(MAKE)  -f TestMakefile shortsleep
   
   servertests: FORCE
           @ $(MAKE) -f TestMakefile servertests
   
   perftests: FORCE
           @ $(MAKE) -f TestMakefile perftests
   
   s_unittests: FORCE
           @ $(MAKE) -f TestMakefile -s unittests
   
   unittests: FORCE
           @ $(MAKE) -f TestMakefile unittests
   
   standardtests: FORCE
           @ $(MAKE) -f TestMakefile standardtests
   
   alltests: FORCE
           @ $(MAKE) -f TestMakefile alltests
   
   testusage: FORCE
           @ $(MAKE) -f TestMakefile usage
   
   testusage2: FORCE
           @ $(MAKE) -f TestMakefile usage2
   
   stresstests:
           @$(ECHO) "Running OpenPegasus StressTests"
           @$(MAKE)  -f TestMakefile stresstests
           @$(ECHO) "+++++ OpenPegasus StressTests complete"
   
   ##########################################################################
   #
   # This section defines functional rules
   #
   #---------------------
   # buildmu target: build mu the make utility that among other things
   #                 includes depend
   buildmu: FORCE
           $(MKDIRHIER) $(BIN_DIR)
           $(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile
   
   #----------------------
   # setupdevserver and cleandevserver are used to setup and clear the
   # server configuration files needed to run the server in a development
   # environment.
   #
   setupdevserver: FORCE
           $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
           @$(ECHO) "PEGASUS Development Server Runtime Environment configured "
   
   cleandevserver: FORCE
           $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run_clean
   
   clobber: FORCE
           - $(RMDIRHIER) $(PEGASUS_HOME)/bin
           - $(RMDIRHIER) $(PEGASUS_HOME)/lib
           - $(RMDIRHIER) $(PEGASUS_HOME)/obj
   
   
   #---------------------
   # The repository Target removes and rebuilds the base repository. It
   # does not remove all possible namespaces.  See
   # Schemas/Pegasus/Makefile for details. The repository clean has the
   # same limitation
  
 # 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: FORCE
Line 79 
Line 309 
         @ $(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
   ifndef PEGASUS_DISABLE_CQL
         @ $(MAKE) "-SC" src/Pegasus/ControlProviders/QueryCapabilitiesProvider/tests repository         @ $(MAKE) "-SC" src/Pegasus/ControlProviders/QueryCapabilitiesProvider/tests repository
   endif
   ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
           @ $(MAKE) "-SC" src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests repository
   endif
           @ $(MAKE) --directory=$(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscript \
               -f Makefile repository
  
 testrepositoryServer: FORCE testrepositoryServer: FORCE
         @ $(MAKE) "-SC" src/Providers/sample/Load repositoryServer         @ $(MAKE) "-SC" src/Providers/sample/Load repositoryServer
Line 88 
Line 325 
         @ $(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
   ifndef PEGASUS_DISABLE_CQL
         @ $(MAKE) "-SC" src/Pegasus/ControlProviders/QueryCapabilitiesProvider/tests repositoryServer         @ $(MAKE) "-SC" src/Pegasus/ControlProviders/QueryCapabilitiesProvider/tests repositoryServer
   endif
   ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
           @ $(MAKE) "-SC" src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests repositoryServer
   endif
           @ $(MAKE) --directory=$(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscript \
               -f Makefile repositoryServer
  
 removetestrepository: FORCE removetestrepository: FORCE
         @ $(MAKE) "-SC" src/Providers/sample/Load removerepository         @ $(MAKE) "-SC" src/Providers/sample/Load removerepository
         @ $(MAKE) "-SC" test/wetest removerepository         @ $(MAKE) "-SC" test/wetest removerepository
         @ $(MAKE) "-SC" src/Clients/benchmarkTest/Load removerepository         @ $(MAKE) "-SC" src/Clients/benchmarkTest/Load removerepository
         @ $(MAKE) "-SC" src/Providers/TestProviders/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
  
 all: messages  
   
 messages: rootbundle  
   
 rootbundle: rootbundle:
         $(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/cnv2rootbundle -f Makefile         $(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/cnv2rootbundle -f Makefile
   
 # the collections of tests that we run with the server active.  
 # For now, these are centralized and do not include startup  
 # and shutdown of the server.  
   
 activetests: FORCE  
         $(MAKE) --directory=$(PEGASUS_ROOT)/test -f Makefile clean  
         $(PEGASUS_ROOT)/bin/TestClient  
         $(PEGASUS_ROOT)/bin/Client  
         $(MAKE) --directory=$(PEGASUS_ROOT)/test -f Makefile tests  


Legend:
Removed from v.1.31  
changed lines
  Added in v.1.43.2.7

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2