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.31 include $(PEGASUS_ROOT)/mak/config.mak
|
25 kumpf 1.34 include $(PEGASUS_ROOT)/mak/commands.mak
|
26 kumpf 1.14
|
27 kumpf 1.34 TESTS = prestarttests poststarttests
|
28 david.eger 1.23
|
29 kumpf 1.12 ifeq ($(DYNAMIC_SOCKSIFY),TRUE)
30 CVS = socksify cvs
31 else
32 CVS = cvs
33 endif
34
|
35 mike 1.2 error:
36 @ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)"
37
38 buildmu:
|
39 david.eger 1.24 $(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile
|
40 kumpf 1.34 $(MKDIRHIER) $(BIN_DIR)
|
41 david.eger 1.24
|
42 mike 1.2 cleanbuild: removeall recheckout buildmu all $(TESTS)
43
44 recheckout: removeall checkout
45
46 removeall:
47 $(REMOVE_PEGASUS_DIRECTORY)
48
49 checkout:
|
50 kumpf 1.12 $(CVS) checkout pegasus
|
51 david.eger 1.24
|
52 mike 1.2 rebuild: clean buildmu all tests
53
|
54 kumpf 1.28 rebuild-notest: clean buildmu all
55
|
56 kumpf 1.13 build: all tests
|
57 kumpf 1.28
58 build-notest: all
|
59 kumpf 1.13
|
60 mike 1.2 all: buildmu
|
61 david.eger 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
62 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile all
|
63 mike 1.2
|
64 kumpf 1.8 doc:
|
65 david.eger 1.24 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
66 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
|
67 kumpf 1.8
|
68 mike 1.2 clean:
|
69 david.eger 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
|
70 mike 1.2
|
71 kumpf 1.17 repositoryServer:
72 $(CIMSERVER_STOP_SERVICE)
|
73 kumpf 1.34 $(SLEEP) 5
|
74 kumpf 1.17 $(RMDIRHIER) $(REPOSITORY_ROOT)
75 $(CIMSERVER_START_SERVICE)
|
76 kumpf 1.34 $(SLEEP) 5
|
77 david.eger 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
78 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
79
|
80 mike 1.2 prestarttests:
|
81 kumpf 1.7 $(CIMSERVER_STOP_SERVICE)
|
82 kumpf 1.34 $(SLEEP) 5
|
83 david.eger 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
84 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
85 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
|
86 kumpf 1.30 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
|
87 mike 1.2
88 poststarttests:
|
89 lucier 1.32 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
90 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
|
91 david.eger 1.24 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
|
92 kumpf 1.6 $(CIMSERVER_START_SERVICE)
|
93 kumpf 1.34 $(SLEEP) 5
|
94 david.eger 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
|
95 kumpf 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
|
96 mike 1.2
|
97 denise.eckstein 1.33 ###############################################################################
98
|
99 mike 1.2 tests: $(TESTS)
|
100 tony 1.21 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
101 $(CIMSERVER_STOP_SERVICE)
|
102 david.eger 1.24 $(MAKE) --directory=$(PEGASUS_ROOT)src/Server -f Makefile uninstall
|
103 tony 1.21 endif
|
104 mike 1.2 @ echo Finished Tests
105
106 ###############################################################################
107 ##
108 ## Trace Configuration
109 ##
110 ## Options:
111 ## XMLTraceOn: Enables XML request and response tracing.
112 ## ProviderLoadTraceOn: Enables Provider load tracing.
113 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
114 ## load tracing.
115 ## AllTraceOn: Enables all tracing.
116 ## AllTraceOff: Disables all tracing.
117 ## list: Lists trace settings.
118 ##
119 ###############################################################################
120
121 XMLTraceOn:
122 cimconfig -s traceComponents=XmlIO -c
123 cimconfig -s traceLevel=3 -c
124 cimconfig -g traceComponents
125 mike 1.2 cimconfig -g traceLevel
126
127 ProviderLoadTraceOn:
128 cimconfig -s traceComponents=ProvManager,OsAbstraction
129 cimconfig -s traceLevel=3 -c
130 cimconfig -g traceComponents
131 cimconfig -g traceLevel
132
133 XML+ProviderLoadTraceOn:
134 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
135 cimconfig -s traceLevel=3 -c
136 cimconfig -g traceComponents
137 cimconfig -g traceLevel
138
139 AllTraceOn:
140 cimconfig -s traceComponents=ALL
141 cimconfig -s traceLevel=3 -c
142 cimconfig -g traceComponents
143 cimconfig -g traceLevel
144
145 AllTraceOff:
146 mike 1.2 cimconfig -s traceComponents=
147 cimconfig -g traceComponents
148 cimconfig -g traceLevel
149
150 list:
151 cimconfig -g traceComponents
152 cimconfig -g traceLevel
153 cimconfig -g traceFilePath
154
155 # DO NOT DELETE
|