1 mike 1.2 ###############################################################################
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 karl 1.16 ## Platform specific settings for several platforms.
|
19 mike 1.2 ##
20 ## NOTE: Please add platform specific environment variables as appropriate.
21 ##
22 ###############################################################################
23
|
24 kumpf 1.14 include pegasus/mak/config.mak
25
|
26 karl 1.16 # There is a start command for cimserver but no stop today. Because of problems with
27 # the use of cimserver as a service, we simply used the start command to allow us to
28 # get on with testing. I know of no CLI to stop a window started with start so that
29 # field is blank. ks 7 April 2002
|
30 mike 1.2 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
31 karl 1.16 CIMSERVER_START_SERVICE = start cimserver -l
|
32 kumpf 1.6 CIMSERVER_STOP_SERVICE =
33 SLEEP =
|
34 mike 1.2 REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus
35 MUEXE = mu.exe
|
36 kumpf 1.6 COPYMU = copy pegasus\src\utils\mu\$(MUEXE) /y $(MUEXE)
37 MKDIR = pegasus/src/utils/mu/mu mkdirhier
|
38 mike 1.2 TESTS = prestarttests
39 endif
40
41 ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
|
42 kumpf 1.6 CIMSERVER_START_SERVICE = cimserver -d
43 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"}'
44 SLEEP = sleep 5
45 REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
|
46 mike 1.2 MUEXE = mu
|
47 kumpf 1.14 COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE)
|
48 kumpf 1.6 MKDIR = pegasus/src/utils/mu/mu mkdirhier
|
49 mike 1.2 TESTS = prestarttests poststarttests
50 endif
51
|
52 karl 1.10 ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU)
53 CIMSERVER_START_SERVICE = cimserver -d
|
54 kumpf 1.11 CIMSERVER_STOP_SERVICE = /bin/ps -ef | /bin/grep cimserver | /bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/bin/bash"}'
55 SLEEP = sleep 5
56 REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
57 MUEXE = mu
|
58 kumpf 1.14 COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE)
|
59 kumpf 1.11 MKDIR = pegasus/src/utils/mu/mu mkdirhier
60 TESTS = prestarttests poststarttests
61 endif
62
63 ifeq ($(PEGASUS_PLATFORM),LINUX_IA64_GNU)
64 CIMSERVER_START_SERVICE = cimserver -d
65 CIMSERVER_STOP_SERVICE = /bin/ps -ef | /bin/grep cimserver | /bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/bin/bash"}'
|
66 karl 1.10 SLEEP = sleep 5
67 REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
68 MUEXE = mu
|
69 kumpf 1.14 COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE)
|
70 karl 1.10 MKDIR = pegasus/src/utils/mu/mu mkdirhier
71 TESTS = prestarttests poststarttests
72 endif
73
|
74 kumpf 1.12 ifeq ($(DYNAMIC_SOCKSIFY),TRUE)
75 CVS = socksify cvs
76 else
77 CVS = cvs
78 endif
79
|
80 mike 1.2 error:
81 @ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)"
82
83 buildmu:
|
84 kumpf 1.6 $(MAKE) --directory=pegasus/src/utils/mu -f Makefile
|
85 kumpf 1.15 $(MKDIR) $(BIN_DIR)
|
86 mike 1.2 $(COPYMU)
87
88 cleanbuild: removeall recheckout buildmu all $(TESTS)
89
90 recheckout: removeall checkout
91
92 removeall:
93 $(REMOVE_PEGASUS_DIRECTORY)
94
95 checkout:
|
96 kumpf 1.12 $(CVS) checkout pegasus
|
97 mike 1.2
98 rebuild: clean buildmu all tests
99
|
100 kumpf 1.13 build: all tests
101
|
102 mike 1.2 all: buildmu
|
103 kumpf 1.6 $(MAKE) --directory=pegasus -f Makefile depend
104 $(MAKE) --directory=pegasus -f Makefile all
|
105 mike 1.2
|
106 kumpf 1.8 doc:
107 $(MAKE) --directory=pegasus/doc/ProviderSpec -f Makefile
108 $(MAKE) --directory=pegasus/doc/DevManual -f Makefile
109
|
110 mike 1.2 clean:
|
111 kumpf 1.6 $(MAKE) --directory=pegasus -f Makefile clean
|
112 mike 1.2
113
114 prestarttests:
|
115 kumpf 1.7 $(CIMSERVER_STOP_SERVICE)
116 $(SLEEP)
|
117 kumpf 1.6 $(MAKE) --directory=pegasus -f Makefile repository
|
118 kumpf 1.13 $(MAKE) --directory=pegasus -f Makefile testrepository
|
119 kumpf 1.6 $(MAKE) --directory=pegasus -f Makefile tests
120 $(MAKE) --directory=pegasus/src/Server -f Makefile install
|
121 mike 1.2
122 poststarttests:
|
123 kumpf 1.13 $(MAKE) --directory=pegasus/test/wetest -f Makefile clean
|
124 kumpf 1.6 $(CIMSERVER_START_SERVICE)
125 $(SLEEP)
|
126 kumpf 1.13 $(MAKE) --directory=pegasus -f Makefile poststarttests
|
127 kumpf 1.6 @ $(CIMSERVER_STOP_SERVICE)
|
128 kumpf 1.13 $(SLEEP)
|
129 mike 1.2
130 tests: $(TESTS)
131 @ echo Finished Tests
132
133 ###############################################################################
134 ##
135 ## Trace Configuration
136 ##
137 ## Options:
138 ## XMLTraceOn: Enables XML request and response tracing.
139 ## ProviderLoadTraceOn: Enables Provider load tracing.
140 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
141 ## load tracing.
142 ## AllTraceOn: Enables all tracing.
143 ## AllTraceOff: Disables all tracing.
144 ## list: Lists trace settings.
145 ##
146 ###############################################################################
147
148 XMLTraceOn:
149 cimconfig -s traceComponents=XmlIO -c
150 mike 1.2 cimconfig -s traceLevel=3 -c
151 cimconfig -g traceComponents
152 cimconfig -g traceLevel
153
154 ProviderLoadTraceOn:
155 cimconfig -s traceComponents=ProvManager,OsAbstraction
156 cimconfig -s traceLevel=3 -c
157 cimconfig -g traceComponents
158 cimconfig -g traceLevel
159
160 XML+ProviderLoadTraceOn:
161 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
162 cimconfig -s traceLevel=3 -c
163 cimconfig -g traceComponents
164 cimconfig -g traceLevel
165
166 AllTraceOn:
167 cimconfig -s traceComponents=ALL
168 cimconfig -s traceLevel=3 -c
169 cimconfig -g traceComponents
170 cimconfig -g traceLevel
171 mike 1.2
172 AllTraceOff:
173 cimconfig -s traceComponents=
174 cimconfig -g traceComponents
175 cimconfig -g traceLevel
176
177 list:
178 cimconfig -g traceComponents
179 cimconfig -g traceLevel
180 cimconfig -g traceFilePath
181
182 # DO NOT DELETE
|