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