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

File: [Pegasus] / pegasus / src / Clients / MCCATestClient / Attic / Makefile (download)
Revision: 1.6, Thu Aug 12 19:13:24 2004 UTC (19 years, 10 months ago) by gs.keenan
Branch: MAIN
CVS Tags: RELEASE_2_4_3, RELEASE_2_4_2, RELEASE_2_4_1-BETA3, RELEASE_2_4_1-BETA2, RELEASE_2_4_1-BETA1, RELEASE_2_4_1, RELEASE_2_4_0-RC3, RELEASE_2_4_0-RC2, RELEASE_2_4_0, RELEASE_2_4-root, RELEASE_2_4-branch, IBM_241_April1405, CQL_2_5_BRANCH, CHUNKTESTDONE_PEP140
Changes since 1.5: +21 -20 lines
BUG#: 1772
TITLE: All command line parameters in Makefiles should be enclosed in double quotes.

DESCRIPTION: OpenVMS requires MAKE parameters that need to maintain case (mixed or upper) to be enclosed in double quotes.  This should NOT affect any other O/S. This change also fixes Bug # 1773 (Use of echo in makefiles should use ECHO Macro).

ROOT = $(PEGASUS_ROOT)

include $(ROOT)/mak/config.mak
include $(ROOT)/mak/configschema.mak

PEGASUS_ZOS_PROGRAM_OBJECT = yes

DIR = Clients/MCCATestClient
include $(ROOT)/mak/config.mak

ifdef PEGASUS_HAS_SSL
   FLAGS += -DPEGASUS_HAS_SSL -DPEGASUS_SSL_RANDOMFILE
   SYS_INCLUDES += -I$(OPENSSL_HOME)/include
endif

LIBRARIES = \
    pegcommon \
    pegmanagedclient

PROGRAM = MCCATestClient
SOURCES = MCCATestClient.cpp

ifneq ($(PEGASUS_PLATFORM),ZOS_ZSERIES_IBM)
  ifneq ($(OS),HPUX)
    ifdef PEGASUS_ENABLE_SLP
       LIBRARIES += pegslp_client
    endif
  endif
endif

include $(ROOT)/mak/program.mak

tests:

poststarttests: repository
	
	$(PROGRAM) 1
	$(MAKE) -i unregister

# Load the sample MOF with the local compiler. Cleans the existing repository
# before reloading.
repository:

# Loading Core mof into the two new test namespaces	
	@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into root/test/A namespace ...
	@ cimmof "-R$(REPOSITORY_DIR)" "-I$(CIM_SCHEMA_DIR)" "-n/root/test/A" $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof
	
	@ $(ECHO) +++++ Loading CIM_Core$(CIM_SCHEMA_VER) into root/test/B namespace ...
	@ cimmof "-R$(REPOSITORY_DIR)" "-I$(CIM_SCHEMA_DIR)" "-n/root/test/B" $(CIM_SCHEMA_DIR)/CIM_Core$(CIM_SCHEMA_VER).mof

# Loading MCCA_TestClass into the two namespaces
	@ $(ECHO) +++++ Loading MCCA_TestClass into root/test/A namespace ...
	@ cimmof "-R$(REPOSITORY_DIR)" "-nroot/test/A" MCCA_TestClass.mof
	@ $(ECHO) +++++ Loading MCCA_TestClass into root/test/B namespace ...
	@ cimmof "-R$(REPOSITORY_DIR)" "-nroot/test/B" MCCA_TestClass.mof
# Loading Association Schema definition into both namespaces		
	@ $(ECHO) +++++ Loading MCCA_TestAssocClass into root/test/A namespace ...
	@ cimmof "-R$(REPOSITORY_DIR)" "-nroot/test/A" $(ROOT)/src/Providers/TestProviders/MCCA_TestAssocProvider/MCCA_TestAssocPrvSchema.mof
	@ $(ECHO) +++++ Loading MCCA_TestAssocClass into root/test/B namespace ...
	@ cimmof "-R$(REPOSITORY_DIR)" "-nroot/test/B" $(ROOT)/src/Providers/TestProviders/MCCA_TestAssocProvider/MCCA_TestAssocPrvSchema.mof
# Registering Provider in PG_InterOp
	@ $(ECHO) +++++ Loading  MCCA_TestAssocClass provider definitions into PG_InterOp namespace ...
	@ cimmof "-R$(REPOSITORY_DIR)" "-n$(INTEROPNS)" $(ROOT)/src/Providers/TestProviders/MCCA_TestAssocProvider/MCCA_TestAssocPrvReg.mof

removeclasses:
# Removing test repository without cimserver knowing it	
	@ $(ECHO) +++++ Removing MCCA_Test Classes from repository ...
	wbemexec DeleteClassA.xml > removeclasses.log
	wbemexec DeleteClassB.xml >> removeclasses.log
	wbemexec DeleteAssocA.xml >> removeclasses.log
	wbemexec DeleteAssocB.xml >> removeclasses.log

removerepository:
# Removing test repository without cimserver knowing it	
	@ $(ECHO) +++++ Removing existing repository named root/test/A
	@$(RMREPOSITORY) "$(REPOSITORY_ROOT)/root#test#A"
	@ $(ECHO) +++++ Removing existing repository named root/test/B
	@$(RMREPOSITORY) "$(REPOSITORY_ROOT)/root#test#B"

unregister: removeclasses
	@ $(ECHO) +++++ Unregister MCCA_TestAssocClass provider ...
	$(MAKE) -i unregisterproviders

unregisterproviders:
	cimprovider -r -m MCCATestAssocProviderModule	

install:

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2