1 karl 1.1 # Makefile builds the Pegasus Repository
2 # ATTN: Today this makefile is implementation dependent.
3 # It assumes that the repository is a set of directories
4 # that can be removed by removing the directories.
5 # This must be updated to an implementation independent repository
6 # remove function.
7
8 ROOT = $(PEGASUS_ROOT)
9 include $(ROOT)/mak/config.mak
10
11 # The following two variables determine which CIM Schema is compiled
12 # from the CIMSchemas Directory.
13 # To Change the CIM Schema used, change the following two environment
14 # variables.
15
16 SCHEMA_VER=25
17 SCHEMA_DIR=CIM$(SCHEMA_VER)
18
19 #SCHEMA_VER=26
|
20 karl 1.3 #SCHEMA_DIR=CIM26
|
21 karl 1.1
22 # Define Namespace in which the CIM Schemas are to be Loaded.
23 # Note that by default, the CORE is also loaded into root.
24 NAMESPACE=root/cimv2
25
26 MOF_PATH = $(ROOT)/Schemas/$(SCHEMA_DIR)
27
28 all:
29
30 # Delete and rebuild the repository using the MOF compiler.
31
32 repository:
33 @ echo +++++ Removing existing repository named $(REPOSITORY_ROOT)
34 @ $(RMREPOSITORY) $(REPOSITORY_ROOT)
35 @ echo +++++ Populating CIM repository - this will take a while
36 @ echo +++++ Loading CIM_Core$(SCHEMA_VER).mof into root namespace...
|
37 kumpf 1.5 @ cimmofl -R$(REPOSITORY_DIR) -I$(MOF_PATH) -nroot $(MOF_PATH)/CIM_Core$(SCHEMA_VER).mof
|
38 karl 1.1 @ echo +++++ Loading CIM_Schema$(SCHEMA_VER).mof into $(NAMESPACE) namespace...
|
39 kumpf 1.5 @ cimmofl -R$(REPOSITORY_DIR) -I$(MOF_PATH) -n$(NAMESPACE) $(MOF_PATH)/CIM_Schema$(SCHEMA_VER).mof
|
40 karl 1.1
41 # The following is a hangover from previous testing and simply loads the
42 # core into the namespace defined by NAMESPACE. It should probably be
43 # deleted since there is no use for it any more.
44 short:
45 @ echo +++++ Populating CIM repository - this will take a minute
46 $(RMREPOSITORY) $(REPOSITORY_ROOT)
47 echo +++++ Loading CIM_Core.mof into root namespace...
|
48 kumpf 1.5 cimmofl -R$(REPOSITORY_DIR) -I$(MOF_PATH) -n$(NAMESPACE) $(MOF_PATH)/CIM_Core$(SCHEMA_VER).mof
|
49 karl 1.1
50 clean:
51 @ echo +++++ Removing existing CIM Repository named $(REPOSITORY_ROOT)
52 @ $(RMREPOSITORY) $(REPOSITORY_ROOT)
53
54
55 depend:
56
57 sub:
58
59 misc:
60
61 tests:
62
63 poststarttests:
64
65 general:
66
|
67 karl 1.3 # used to generate xml output from the schema
|
68 karl 1.1 xml:
|
69 karl 1.4 @ echo +++++ Loading CIM_Schema$(SCHEMA_VER).mof into root/cimv2 namespace...
|
70 kumpf 1.5 @ cimmofl -R$(REPOSITORY_DIR) --xml -I$(MOF_PATH) -nroot/cimv2 $(MOF_PATH)/CIM_Schema$(SCHEMA_VER).mof >CIM_Schema$(SCHEMA_VER).XML
|