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 kumpf 1.18 CIMSERVER_START_SERVICE = start cimserver
|
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.18 CIMSERVER_START_SERVICE = cimserver
43 CIMSERVER_STOP_SERVICE = cimserver -s
|
44 kumpf 1.6 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 kumpf 1.18 CIMSERVER_START_SERVICE = cimserver
|
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 kumpf 1.18 CIMSERVER_START_SERVICE = cimserver
|
65 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"}'
|
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 kumpf 1.17 repositoryServer:
114 $(CIMSERVER_STOP_SERVICE)
115 $(SLEEP)
116 $(RMDIRHIER) $(REPOSITORY_ROOT)
117 $(CIMSERVER_START_SERVICE)
118 $(SLEEP)
119 $(MAKE) --directory=pegasus -f Makefile repositoryServer
120 $(MAKE) --directory=pegasus -f Makefile testrepositoryServer
|
121 mike 1.2
122 prestarttests:
|
123 kumpf 1.7 $(CIMSERVER_STOP_SERVICE)
124 $(SLEEP)
|
125 kumpf 1.6 $(MAKE) --directory=pegasus -f Makefile repository
|
126 kumpf 1.13 $(MAKE) --directory=pegasus -f Makefile testrepository
|
127 kumpf 1.6 $(MAKE) --directory=pegasus -f Makefile tests
128 $(MAKE) --directory=pegasus/src/Server -f Makefile install
|
129 mike 1.2
130 poststarttests:
|
131 kumpf 1.13 $(MAKE) --directory=pegasus/test/wetest -f Makefile clean
|
132 kumpf 1.6 $(CIMSERVER_START_SERVICE)
133 $(SLEEP)
|
134 kumpf 1.13 $(MAKE) --directory=pegasus -f Makefile poststarttests
|
135 kumpf 1.6 @ $(CIMSERVER_STOP_SERVICE)
|
136 kumpf 1.13 $(SLEEP)
|
137 mike 1.2
138 tests: $(TESTS)
139 @ echo Finished Tests
140
141 ###############################################################################
142 ##
143 ## Trace Configuration
144 ##
145 ## Options:
146 ## XMLTraceOn: Enables XML request and response tracing.
147 ## ProviderLoadTraceOn: Enables Provider load tracing.
148 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
149 ## load tracing.
150 ## AllTraceOn: Enables all tracing.
151 ## AllTraceOff: Disables all tracing.
152 ## list: Lists trace settings.
153 ##
154 ###############################################################################
155
156 XMLTraceOn:
157 cimconfig -s traceComponents=XmlIO -c
158 mike 1.2 cimconfig -s traceLevel=3 -c
159 cimconfig -g traceComponents
160 cimconfig -g traceLevel
161
162 ProviderLoadTraceOn:
163 cimconfig -s traceComponents=ProvManager,OsAbstraction
164 cimconfig -s traceLevel=3 -c
165 cimconfig -g traceComponents
166 cimconfig -g traceLevel
167
168 XML+ProviderLoadTraceOn:
169 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
170 cimconfig -s traceLevel=3 -c
171 cimconfig -g traceComponents
172 cimconfig -g traceLevel
173
174 AllTraceOn:
175 cimconfig -s traceComponents=ALL
176 cimconfig -s traceLevel=3 -c
177 cimconfig -g traceComponents
178 cimconfig -g traceLevel
179 mike 1.2
180 AllTraceOff:
181 cimconfig -s traceComponents=
182 cimconfig -g traceComponents
183 cimconfig -g traceLevel
184
185 list:
186 cimconfig -g traceComponents
187 cimconfig -g traceLevel
188 cimconfig -g traceFilePath
189
190 # DO NOT DELETE
|