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 kumpf 1.20 ifeq ($(OS),HPUX)
|
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 mike 1.2
136 tests: $(TESTS)
137 @ echo Finished Tests
138
139 ###############################################################################
140 ##
141 ## Trace Configuration
142 ##
143 ## Options:
144 ## XMLTraceOn: Enables XML request and response tracing.
145 ## ProviderLoadTraceOn: Enables Provider load tracing.
146 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
147 ## load tracing.
148 ## AllTraceOn: Enables all tracing.
149 ## AllTraceOff: Disables all tracing.
150 ## list: Lists trace settings.
151 ##
152 ###############################################################################
153
154 XMLTraceOn:
155 cimconfig -s traceComponents=XmlIO -c
156 mike 1.2 cimconfig -s traceLevel=3 -c
157 cimconfig -g traceComponents
158 cimconfig -g traceLevel
159
160 ProviderLoadTraceOn:
161 cimconfig -s traceComponents=ProvManager,OsAbstraction
162 cimconfig -s traceLevel=3 -c
163 cimconfig -g traceComponents
164 cimconfig -g traceLevel
165
166 XML+ProviderLoadTraceOn:
167 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
168 cimconfig -s traceLevel=3 -c
169 cimconfig -g traceComponents
170 cimconfig -g traceLevel
171
172 AllTraceOn:
173 cimconfig -s traceComponents=ALL
174 cimconfig -s traceLevel=3 -c
175 cimconfig -g traceComponents
176 cimconfig -g traceLevel
177 mike 1.2
178 AllTraceOff:
179 cimconfig -s traceComponents=
180 cimconfig -g traceComponents
181 cimconfig -g traceLevel
182
183 list:
184 cimconfig -g traceComponents
185 cimconfig -g traceLevel
186 cimconfig -g traceFilePath
187
188 # DO NOT DELETE
|