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 ## Platform specific settings for HP-UX
19 ##
20 ## NOTE: Please add platform specific environment variables as appropriate.
21 ##
22 mike 1.2 ###############################################################################
23
24 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
25 kumpf 1.6 CIMSERVER_START_SERVICE =
26 CIMSERVER_STOP_SERVICE =
27 SLEEP =
|
28 mike 1.2 REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus
29 MUEXE = mu.exe
|
30 kumpf 1.6 COPYMU = copy pegasus\src\utils\mu\$(MUEXE) /y $(MUEXE)
31 MKDIR = pegasus/src/utils/mu/mu mkdirhier
|
32 mike 1.2 TESTS = prestarttests
33 endif
34
35 ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
|
36 kumpf 1.6 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 SLEEP = sleep 5
39 REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
|
40 mike 1.2 MUEXE = mu
|
41 kumpf 1.6 COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) /usr/local/bin/$(MUEXE)
42 MKDIR = pegasus/src/utils/mu/mu mkdirhier
|
43 mike 1.2 TESTS = prestarttests poststarttests
44 endif
45
46 error:
47 @ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)"
48
49 buildmu:
|
50 kumpf 1.6 $(MAKE) --directory=pegasus/src/utils/mu -f Makefile
|
51 mike 1.2 $(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 kumpf 1.3 cvs checkout pegasus
|
62 mike 1.2
63 rebuild: clean buildmu all tests
64
65 all: buildmu
|
66 kumpf 1.6 $(MAKE) --directory=pegasus -f Makefile depend
67 $(MAKE) --directory=pegasus -f Makefile all
|
68 mike 1.2
|
69 kumpf 1.8 doc:
70 $(MAKE) --directory=pegasus/doc/ProviderSpec -f Makefile
71 $(MAKE) --directory=pegasus/doc/DevManual -f Makefile
72
|
73 mike 1.2 clean:
|
74 kumpf 1.6 $(MAKE) --directory=pegasus -f Makefile clean
|
75 mike 1.2
76
77 prestarttests:
|
78 kumpf 1.7 $(CIMSERVER_STOP_SERVICE)
79 $(SLEEP)
|
80 kumpf 1.6 $(MAKE) --directory=pegasus -f Makefile repository
81 $(MAKE) --directory=pegasus -f Makefile tests
82 $(MAKE) --directory=pegasus/src/Server -f Makefile install
83 $(MAKE) --directory=pegasus/test -f Makefile clean
|
84 mike 1.2
85 poststarttests:
|
86 kumpf 1.6 $(CIMSERVER_START_SERVICE)
87 $(SLEEP)
|
88 mike 1.2 TestClient
89 Client
|
90 kumpf 1.6 $(MAKE) --directory=pegasus/test -f Makefile tests
|
91 mike 1.2 @ echo Terminating cimserver...
|
92 kumpf 1.6 @ $(CIMSERVER_STOP_SERVICE)
|
93 mike 1.2
94 tests: $(TESTS)
95 @ echo Finished Tests
96
97 ###############################################################################
98 ##
99 ## Trace Configuration
100 ##
101 ## Options:
102 ## XMLTraceOn: Enables XML request and response tracing.
103 ## ProviderLoadTraceOn: Enables Provider load tracing.
104 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
105 ## load tracing.
106 ## AllTraceOn: Enables all tracing.
107 ## AllTraceOff: Disables all tracing.
108 ## list: Lists trace settings.
109 ##
110 ###############################################################################
111
112 XMLTraceOn:
113 cimconfig -s traceComponents=XmlIO -c
114 mike 1.2 cimconfig -s traceLevel=3 -c
115 cimconfig -g traceComponents
116 cimconfig -g traceLevel
117
118 ProviderLoadTraceOn:
119 cimconfig -s traceComponents=ProvManager,OsAbstraction
120 cimconfig -s traceLevel=3 -c
121 cimconfig -g traceComponents
122 cimconfig -g traceLevel
123
124 XML+ProviderLoadTraceOn:
125 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
126 cimconfig -s traceLevel=3 -c
127 cimconfig -g traceComponents
128 cimconfig -g traceLevel
129
130 AllTraceOn:
131 cimconfig -s traceComponents=ALL
132 cimconfig -s traceLevel=3 -c
133 cimconfig -g traceComponents
134 cimconfig -g traceLevel
135 mike 1.2
136 AllTraceOff:
137 cimconfig -s traceComponents=
138 cimconfig -g traceComponents
139 cimconfig -g traceLevel
140
141 list:
142 cimconfig -g traceComponents
143 cimconfig -g traceLevel
144 cimconfig -g traceFilePath
145
146 # DO NOT DELETE
|