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
|
77 kumpf 1.1.2.1 $(MAKE) --directory=pegasus -f Makefile tests
78 $(MAKE) --directory=pegasus/src/Server -f Makefile install
79 $(MAKE) --directory=pegasus/test -f Makefile clean
80
81 poststarttests:
82 $(CIMSERVER_START_SERVICE)
83 $(SLEEP)
84 TestClient
85 Client
86 $(MAKE) --directory=pegasus/test -f Makefile tests
87 @ echo Terminating cimserver...
88 @ $(CIMSERVER_STOP_SERVICE)
89
90 tests: $(TESTS)
91 @ echo Finished Tests
92
93 ###############################################################################
94 ##
95 ## Trace Configuration
96 ##
97 ## Options:
98 kumpf 1.1.2.1 ## XMLTraceOn: Enables XML request and response tracing.
99 ## ProviderLoadTraceOn: Enables Provider load tracing.
100 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
101 ## load tracing.
102 ## AllTraceOn: Enables all tracing.
103 ## AllTraceOff: Disables all tracing.
104 ## list: Lists trace settings.
105 ##
106 ###############################################################################
107
108 XMLTraceOn:
109 cimconfig -s traceComponents=XmlIO -c
110 cimconfig -s traceLevel=3 -c
111 cimconfig -g traceComponents
112 cimconfig -g traceLevel
113
114 ProviderLoadTraceOn:
115 cimconfig -s traceComponents=ProvManager,OsAbstraction
116 cimconfig -s traceLevel=3 -c
117 cimconfig -g traceComponents
118 cimconfig -g traceLevel
119 kumpf 1.1.2.1
120 XML+ProviderLoadTraceOn:
121 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
122 cimconfig -s traceLevel=3 -c
123 cimconfig -g traceComponents
124 cimconfig -g traceLevel
125
126 AllTraceOn:
127 cimconfig -s traceComponents=ALL
128 cimconfig -s traceLevel=3 -c
129 cimconfig -g traceComponents
130 cimconfig -g traceLevel
131
132 AllTraceOff:
133 cimconfig -s traceComponents=
134 cimconfig -g traceComponents
135 cimconfig -g traceLevel
136
137 list:
138 cimconfig -g traceComponents
139 cimconfig -g traceLevel
140 kumpf 1.1.2.1 cimconfig -g traceFilePath
141
142 # DO NOT DELETE
|