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

File: [Pegasus] / pegasus / Schemas / Pegasus / ManagedSystem / Makefile (download)
Revision: 1.15, Wed Feb 16 00:10:07 2005 UTC (19 years, 4 months ago) by jim.wunderlich
Branch: MAIN
CVS Tags: PEP214ROOT, PEP214BRANCH, PEP214-root, PEP214-branch, PEP-214B-root
Changes since 1.14: +8 -8 lines
BUG#: 2493

TITLE: Pegasus repository issues

DESCRIPTION:


BUG 2493 binary repository issues:
  Added compare xml to binary repository to unit tests
	- test is enabled on Windows and X86 Linux platforms only.
	- test should be enabled on other platforms by developers/testers
	   working on the those platforms by editing
	   the CompareRepositories Makefile.
	- Instructions are are in the Makefile documenting how to
	   enable it for a specific plaform.

  Added Files:
	src/Pegasus/Repository/tests/CompareRepositories/Makefile
	src/Pegasus/Repository/tests/CompareRepositories/CompareRepositories.cpp
  Modified Files:
  	Makefile Schemas/Pegasus/InterOp/Makefile
  	Schemas/Pegasus/Internal/Makefile
  	Schemas/Pegasus/ManagedSystem/Makefile mak/config.mak
  	src/Pegasus/Compiler/cimmofParser.cpp
  	src/Pegasus/Compiler/cimmofRepository.cpp
  	src/Pegasus/Compiler/cimmofRepository.h
  	src/Pegasus/Compiler/cimmofRepositoryInterface.cpp
  	src/Pegasus/Compiler/cimmofRepositoryInterface.h
  	src/Pegasus/Compiler/mofCompilerOptions.h
  	src/Pegasus/Compiler/cmdline/cimmof/cmdline.cpp
  	src/Pegasus/Compiler/cmdline/cimmof/cmdline.h
  	src/Pegasus/Repository/CIMRepository.cpp
  	src/Pegasus/Repository/CIMRepository.h
  	src/Pegasus/Repository/tests/Makefile
  	src/Pegasus/Server/CIMServer.cpp

# Makefile builds a Managed System Namepspace 
# ATTN: Today this makefile is implementation dependent.
#       It assumes that the repository is a set of directories
#       that can be removed by removing the directories.
#       This must be updated to an implementation independent repository
#       remove function.

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

# The following two variables determine the version of the Schema to
# be loaded into the Managed System namespace.
# Update the following two environment variables to change the version.

PG_SCHEMA_VER=20
PG_SCHEMA_DIR=VER$(PG_SCHEMA_VER)
PG_MOF_PATH=$(ROOT)/Schemas/Pegasus/ManagedSystem/$(PG_SCHEMA_DIR)
FILE_PREFIX=PG
# The following defines are used to determine the version of 
# the platform specific schema to be loaded into Managed System namespace.

MANAGEDSYSTEM_NS_SUPPORTED = true

ifeq ($(OS), HPUX)
EXTENDED_MANAGEDSYSTEM_NS_SUPPORTED = true
FILE_PREFIX=HPUX
endif

ifeq ($(OS), VMS)
EXTENDED_MANAGEDSYSTEM_NS_SUPPORTED = true
FILE_PREFIX=HPUX
endif

install:
	$(MKDIRHIER) "$(LOCAL_STATE_PREFIX)"
	$(MAKE) "REPOSITORY_DIR=$(LOCAL_STATE_PREFIX)" repository

ifeq ($(MANAGEDSYSTEM_NS_SUPPORTED),true)
repository:
	@ $(ECHO) +++++ Removing existing repository named $(MANAGEDSYSTEMNS)
	@ $(RMREPOSITORY) $(MANAGEDSYSTEMNSDIRECTORY)
	@ $(ECHO) +++++ Loading CIM_Schema$(CIM_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
	@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" -N$(REPOSITORY_NAME) -M$(REPOSITORY_MODE) "-I$(CIM_SCHEMA_DIR)" "-n$(MANAGEDSYSTEMNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Schema$(CIM_SCHEMA_VER).mof
	@ $(ECHO) +++++ Loading PG_ManagedSystemSchema$(PG_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
	@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" -N$(REPOSITORY_NAME) -M$(REPOSITORY_MODE) "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" $(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER).mof
	@ $(ECHO) +++++ Registering Providers for PG_ManagedSystemSchema$(PG_SCHEMA_VER) ...
	@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" -N$(REPOSITORY_NAME) -M$(REPOSITORY_MODE) "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" $(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof
ifndef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
	@ $(ECHO) +++++ Loading PG_ManagedSystemTestSchema$(PG_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
	@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" -N$(REPOSITORY_NAME) -M$(REPOSITORY_MODE) "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" $(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER).mof
	@ $(ECHO) +++++ Registering Providers for PG_ManagedSystemTestSchema$(PG_SCHEMA_VER) ...
	@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" -N$(REPOSITORY_NAME) -M$(REPOSITORY_MODE) "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" $(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER)R.mof
endif
ifeq ($(EXTENDED_MANAGEDSYSTEM_NS_SUPPORTED),true)
	@ $(ECHO) +++++ Loading platform specific class definitions in $(MANAGEDSYSTEMNS) namespace  ...
	@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" -N$(REPOSITORY_NAME) -M$(REPOSITORY_MODE) "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" $(PG_MOF_PATH)/$(FILE_PREFIX)_ManagedSystemSchema$(PG_SCHEMA_VER).mof
	@ $(ECHO) +++++ Registering Providers for platform specific classes in $(MANAGEDSYSTEMNS) namespace ...
	@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" -N$(REPOSITORY_NAME) -M$(REPOSITORY_MODE) "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" $(PG_MOF_PATH)/$(FILE_PREFIX)_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof
endif
ifeq ($(PEGASUS_ENABLE_SLP),true)	
	@ $(ECHO) +++++ Registering Providers for platform specific classes in $(MANAGEDSYSTEMNS) namespace ...
	@ $(CIMMOFCLI) "-R$(REPOSITORY_DIR)" -N$(REPOSITORY_NAME) -M$(REPOSITORY_MODE) "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" $(PG_MOF_PATH)/$(FILE_PREFIX)_SLPProvider$(PG_SCHEMA_VER)R.mof
endif

repositoryServer:
	@ $(ECHO) +++++ Loading CIM_Schema$(CIM_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
	@ cimmof "-I$(CIM_SCHEMA_DIR)" "-n$(MANAGEDSYSTEMNS)" $(ALLOW_EXPERIMENTAL) $(CIM_SCHEMA_DIR)/CIM_Schema$(CIM_SCHEMA_VER).mof
	@ $(ECHO) +++++ Loading PG_ManagedSystemSchema$(PG_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
	@ cimmof  "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" $(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER).mof
	@ $(ECHO) +++++ Registering Providers for PG_ManagedSystemSchema$(PG_SCHEMA_VER) ...
	@ cimmof "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" $(PG_MOF_PATH)/PG_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof
ifndef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
	@ $(ECHO) +++++ Loading PG_ManagedSystemTestSchema$(PG_SCHEMA_VER) into $(MANAGEDSYSTEMNS) namespace ...
	@ cimmof  "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" $(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER).mof
	@ $(ECHO) +++++ Registering Providers for PG_ManagedSystemTestSchema$(PG_SCHEMA_VER) ...
	@ cimmof "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" $(PG_MOF_PATH)/PG_ManagedSystemTestSchema$(PG_SCHEMA_VER)R.mof
endif
ifeq ($(EXTENDED_MANAGEDSYSTEM_NS_SUPPORTED),true)
	@ $(ECHO) +++++ Loading platform specific class definitions in $(MANAGEDSYSTEMNS) namespace  ...
	@ cimmof "-I$(PG_MOF_PATH)" "-n$(MANAGEDSYSTEMNS)" $(PG_MOF_PATH)/$(FILE_PREFIX)_ManagedSystemSchema$(PG_SCHEMA_VER).mof
	@ $(ECHO) +++++ Registering Providers for platform specific classes in $(MANAGEDSYSTEMNS) namespace ...
	@ cimmof "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" $(PG_MOF_PATH)/$(FILE_PREFIX)_ManagedSystemSchema$(PG_SCHEMA_VER)R.mof
endif
ifeq ($(PEGASUS_ENABLE_SLP),true) 
	@ $(ECHO) +++++ Registering Providers for platform specific classes in $(MANAGEDSYSTEMNS) namespace ...
	@ cimmof "-I$(PG_MOF_PATH)" "-n$(INTEROPNS)" $(PG_MOF_PATH)/$(FILE_PREFIX)_SLPProvider$(PG_SCHEMA_VER)R.mof
endif

clean:
	@ $(ECHO) +++++ Removing existing Repository named $(MANAGEDSYSTEMNS)
	@ $(RMREPOSITORY) $(MANAGEDSYSTEMNSDIRECTORY)
else
repository:
	@ $(ECHO) +++++ No Managed System Namespace defined for this platform ++++

clean:

endif


depend:

sub:

misc:

tests:

poststarttests:

general:

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2