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
24 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
25 CIMSERVER_START_SERVICE = cimserver -install
26 CIMSERVER_STOP_SERVICE = cimserver -remove
27 REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus
28 SLEEP =
29 MUEXE = mu.exe
30 COPYMU = copy pegasus\src\utils\mu\$(MUEXE) /y $(MUEXE)
31 MKDIR = pegasus/src/utils/mu/mu mkdirhier
32 TESTS = prestarttests
33 endif
34
35 ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
36 CIMSERVER_START_SERVICE = cimserver -d
37 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"}'
38 REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus
39 SLEEP = sleep 2
40 MUEXE = mu
41 COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) /usr/local/bin/$(MUEXE)
42 MKDIR = pegasus/src/utils/mu/mu mkdirhier
43 kumpf 1.1.2.1 TESTS = prestarttests poststarttests
44 endif
45
46 error:
47 @ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)"
48
49 buildmu:
50 $(MAKE) --directory=pegasus/src/utils/mu -f Makefile
51 $(COPYMU)
52
53 cleanbuild: removeall recheckout buildmu all $(TESTS)
54
55 recheckout: removeall checkout
56
57 removeall:
58 $(REMOVE_PEGASUS_DIRECTORY)
59
60 checkout:
61 cvs checkout -r dev pegasus
62
63 rebuild: clean buildmu all tests
64 kumpf 1.1.2.1
65 all: buildmu
66 $(MAKE) --directory=pegasus -f Makefile depend
67 $(MAKE) --directory=pegasus -f Makefile all
68
69 clean:
70 $(MAKE) --directory=pegasus -f Makefile clean
71
72
73 prestarttests:
74 $(MAKE) --directory=pegasus -f Makefile repository
75 $(MAKE) --directory=pegasus -f Makefile config
|
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
|