1 kumpf 1.1.2.1 ###############################################################################
2 ##
3 ## Makefile for Pegasus CIMOM
4 ##
5 ## NOTE: Makefile needs to be executed from the parent directory of
6 ## pegasus directory because the path settings are relative and this
7 ## Makefile may remove and recheckout the pegasus source tree.
8 ##
9 ## Options:
10 ## cleanbuild - Removes the existing pegasus directory contents, performs
11 ## checkout, build and runs tests.
12 ## rebuild - Rebuild and execute tests.
13 ##
14 ###############################################################################
15
16 ###############################################################################
17 ##
18 ## Platform specific settings for HP-UX
19 ##
20 ## NOTE: Please add platform specific environment variables as appropriate.
21 ##
22 kumpf 1.1.2.1 ###############################################################################
23 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
24 kumpf 1.1.2.5 CIMSERVER_START_SERVICE =
25 CIMSERVER_STOP_SERVICE =
26 SLEEP =
|
27 kumpf 1.1.2.1 REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus
28 MUEXE = mu.exe
29 COPYMU = copy pegasus\src\utils\mu\$(MUEXE) /y $(MUEXE)
30 MKDIR = pegasus/src/utils/mu/mu mkdirhier
31 TESTS = prestarttests
32 endif
33
34 ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
35 CIMSERVER_START_SERVICE = cimserver -d
36 CIMSERVER_STOP_SERVICE = /usr/bin/ps -ef | /usr/bin/grep cimserver | /usr/bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/usr/bin/sh"}'
|
37 kumpf 1.1.2.5 SLEEP = sleep 5
|
38 kumpf 1.1.2.4 REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
|
39 kumpf 1.1.2.1 MUEXE = mu
40 COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) /usr/local/bin/$(MUEXE)
41 MKDIR = pegasus/src/utils/mu/mu mkdirhier
42 TESTS = prestarttests poststarttests
43 endif
44
45 error:
46 @ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)"
47
48 buildmu:
49 $(MAKE) --directory=pegasus/src/utils/mu -f Makefile
50 $(COPYMU)
51
52 cleanbuild: removeall recheckout buildmu all $(TESTS)
53
54 recheckout: removeall checkout
55
56 removeall:
57 $(REMOVE_PEGASUS_DIRECTORY)
58
59 checkout:
60 kumpf 1.1.2.1 cvs checkout -r dev pegasus
61
62 rebuild: clean buildmu all tests
63
64 all: buildmu
65 $(MAKE) --directory=pegasus -f Makefile depend
66 $(MAKE) --directory=pegasus -f Makefile all
67
68 clean:
69 $(MAKE) --directory=pegasus -f Makefile clean
70
71
72 prestarttests:
73 $(MAKE) --directory=pegasus -f Makefile repository
74 $(MAKE) --directory=pegasus -f Makefile config
|
75 kumpf 1.1.2.2 $(MAKE) --directory=pegasus -f Makefile user
|
76 kumpf 1.1.2.3 $(MAKE) --directory=pegasus -f Makefile shutdownService
|
77 kumpf 1.1.2.5 $(MAKE) --directory=pegasus -f Makefile registration
|
78 kumpf 1.1.2.1 $(MAKE) --directory=pegasus -f Makefile tests
79 $(MAKE) --directory=pegasus/src/Server -f Makefile install
80 $(MAKE) --directory=pegasus/test -f Makefile clean
81
82 poststarttests:
83 $(CIMSERVER_START_SERVICE)
84 $(SLEEP)
85 TestClient
86 Client
87 $(MAKE) --directory=pegasus/test -f Makefile tests
88 @ echo Terminating cimserver...
89 @ $(CIMSERVER_STOP_SERVICE)
90
91 tests: $(TESTS)
92 @ echo Finished Tests
93
94 ###############################################################################
95 ##
96 ## Trace Configuration
97 ##
98 ## Options:
99 kumpf 1.1.2.1 ## XMLTraceOn: Enables XML request and response tracing.
100 ## ProviderLoadTraceOn: Enables Provider load tracing.
101 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
102 ## load tracing.
103 ## AllTraceOn: Enables all tracing.
104 ## AllTraceOff: Disables all tracing.
105 ## list: Lists trace settings.
106 ##
107 ###############################################################################
108
109 XMLTraceOn:
110 cimconfig -s traceComponents=XmlIO -c
111 cimconfig -s traceLevel=3 -c
112 cimconfig -g traceComponents
113 cimconfig -g traceLevel
114
115 ProviderLoadTraceOn:
116 cimconfig -s traceComponents=ProvManager,OsAbstraction
117 cimconfig -s traceLevel=3 -c
118 cimconfig -g traceComponents
119 cimconfig -g traceLevel
120 kumpf 1.1.2.1
121 XML+ProviderLoadTraceOn:
122 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
123 cimconfig -s traceLevel=3 -c
124 cimconfig -g traceComponents
125 cimconfig -g traceLevel
126
127 AllTraceOn:
128 cimconfig -s traceComponents=ALL
129 cimconfig -s traceLevel=3 -c
130 cimconfig -g traceComponents
131 cimconfig -g traceLevel
132
133 AllTraceOff:
134 cimconfig -s traceComponents=
135 cimconfig -g traceComponents
136 cimconfig -g traceLevel
137
138 list:
139 cimconfig -g traceComponents
140 cimconfig -g traceLevel
141 kumpf 1.1.2.1 cimconfig -g traceFilePath
142
143 # DO NOT DELETE
|