1 karl 1.117 #//%2006////////////////////////////////////////////////////////////////////////
|
2 martin 1.92 #//
3 #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
6 #// IBM Corp.; EMC Corporation, The Open Group.
7 #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
9 #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 #// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.117 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 #// EMC Corporation; Symantec Corporation; The Open Group.
|
13 martin 1.92 #//
14 #// Permission is hereby granted, free of charge, to any person obtaining a copy
15 #// of this software and associated documentation files (the "Software"), to
16 #// deal in the Software without restriction, including without limitation the
17 #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18 #// sell copies of the Software, and to permit persons to whom the Software is
19 #// furnished to do so, subject to the following conditions:
20 #//
21 #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 #//
30 #//==============================================================================
|
31 mike 1.1 ################################################################################
32 ##
33 ## Get external environment variables. Note that all external environment
34 ## variables begin with "PEGASUS_".
35 ##
36 ################################################################################
37
|
38 konrad.r 1.55 ifndef ROOT
39 ROOT = $(subst \,/,$(PEGASUS_ROOT))
40 endif
41
|
42 mike 1.151.2.2 ifdef TARGET
43 -include $(ROOT)/target.mak
44 endif
|
45 mike 1.151.2.1
|
46 denise.eckstein 1.61 ifdef PEGASUS_ENVVAR_FILE
|
47 david.dillard 1.65 include $(PEGASUS_ENVVAR_FILE)
|
48 denise.eckstein 1.61 else
|
49 david.dillard 1.65 include $(ROOT)/env_var.status
|
50 denise.eckstein 1.61 endif
|
51 konrad.r 1.55
|
52 mike 1.2 ifdef PEGASUS_HOME
|
53 david.dillard 1.65 HOME_DIR = $(subst \,/,$(PEGASUS_HOME))
|
54 mike 1.1 else
|
55 david.dillard 1.65 $(error PEGASUS_HOME environment variable undefined)
|
56 mike 1.1 endif
57
|
58 karl 1.18 ifdef PEGASUS_ROOT
59 ROOT = $(subst \,/,$(PEGASUS_ROOT))
60 else
|
61 david.dillard 1.65 $(error PEGASUS_ROOT environment variable undefined)
|
62 karl 1.18 endif
63
|
64 chuck 1.35 # l10n
65 ifdef ICU_ROOT
66 ICUROOT = $(subst \,/,$(ICU_ROOT))
67 endif
68
|
69 kumpf 1.21 ifdef PEGASUS_TMP
|
70 david.dillard 1.65 TMP_DIR = $(subst \,/,$(PEGASUS_TMP))
|
71 kumpf 1.21 else
|
72 david.dillard 1.65 TMP_DIR = .
|
73 kumpf 1.21 endif
74
|
75 kumpf 1.26 ifdef PEGASUS_DISPLAYCONSUMER_DIR
|
76 david.dillard 1.65 DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_DISPLAYCONSUMER_DIR))
|
77 kumpf 1.26 else
|
78 david.dillard 1.65 DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_HOME))
|
79 kumpf 1.26 endif
80
|
81 aruran.ms 1.102 ifdef PEGASUS_DEBUG
82 PEGASUS_USE_DEBUG_BUILD_OPTIONS = 1
83 endif
84
|
85 david.dillard 1.66 PLATFORM_FILES=$(wildcard $(ROOT)/mak/platform*.mak)
|
86 karl 1.78 PLATFORM_TEMP=$(subst $(ROOT)/mak/platform_,, $(PLATFORM_FILES))
|
87 jim.wunderlich 1.104 VALID_PLATFORMS=$(subst .mak, , $(PLATFORM_TEMP))
|
88 mike 1.8
89 ifndef PEGASUS_PLATFORM
|
90 david.dillard 1.66 $(error PEGASUS_PLATFORM environment variable undefined. Please set to\
91 one of the following:$(VALID_PLATFORMS))
|
92 mike 1.8 endif
93
|
94 mike 1.1 ################################################################################
|
95 denise.eckstein 1.116 ifeq ($(findstring _GNU, $(PEGASUS_PLATFORM)), _GNU)
|
96 mike 1.118 ifdef CXX
97 GCC_VERSION = $(shell $(CXX) -dumpversion)
98 else
99 GCC_VERSION = $(shell g++ -dumpversion)
100 endif
|
101 denise.eckstein 1.116 else
102 GCC_VERSION =
103 endif
|
104 mike 1.1
|
105 denise.eckstein 1.143 #############################################################################
106 ## As a general rule, the directory structure for the object files mirrors
107 ## the directory structure of the source files. E.g.,
108 ## $PEGASUS_HOME/obj/Pegasus/Common contains the object files for the
109 ## source files in $PEGASUS_ROOT/src/Pegasus/Common. Each source-level
110 ## Makefile includes a DIR value that defines this common path (e.g.,
111 ## Pegasus/Common). In a small number of cases, source files are built
112 ## multiple times with difference compile options.
113 ## To handle this situation, the ALT_OBJ_DIR variable can be used to
114 ## specify an alternative object directory for use in building the
115 ## objects defined in the Makefile.
116 ##
117
118 ifndef ALT_OBJ_DIR
119 OBJ_DIR = $(HOME_DIR)/obj/$(DIR)
120 else
121 OBJ_DIR = $(HOME_DIR)/obj/$(ALT_OBJ_DIR)
122 endif
123
124 #############################################################################
125
|
126 kumpf 1.22 BIN_DIR = $(HOME_DIR)/bin
127 LIB_DIR = $(HOME_DIR)/lib
|
128 chuck 1.35
129 # l10n
130 # define the location for the compiled messages
131 MSG_ROOT = $(HOME_DIR)/msg
|
132 kumpf 1.22
|
133 jim.wunderlich 1.90 #############################################################################
|
134 kumpf 1.140 ## The following REPOSITORY_XXX variables are only used within the
135 ## makefiles for building the repository (cimmofl) and running the tests.
|
136 jim.wunderlich 1.90 ## They have no effect on CIMconfig initial startup configuration.
137
138 #
|
139 kumpf 1.22 # define the location for the repository
|
140 jim.wunderlich 1.90 #
141 # NOTE: There is another variable efined in many of the test makefiles
142 # called REPOSITORYDIR. It is a local variable in each of those Makefiles
|
143 kumpf 1.140 # to localally control where the temporay small repository they
|
144 jim.wunderlich 1.90 # build, use and then delete is located. Most of the time it is set to TMP_DIR.
145 #
|
146 jim.wunderlich 1.91
|
147 kumpf 1.22 REPOSITORY_DIR = $(HOME_DIR)
|
148 jim.wunderlich 1.90
149 #
|
150 kumpf 1.140 # WARNING: The REPOSITORY_NAME varible is not used by all the test,
|
151 jim.wunderlich 1.90 # many of them are still hardcoded to "repository". What this means
|
152 kumpf 1.140 # is that you can change the repository name and build it. But you
|
153 jim.wunderlich 1.90 # cannot run the test without many of them failing
154 #
|
155 jim.wunderlich 1.91
|
156 jim.wunderlich 1.81 REPOSITORY_NAME = repository
|
157 jim.wunderlich 1.91
|
158 jim.wunderlich 1.90
|
159 jim.wunderlich 1.81 REPOSITORY_ROOT = $(REPOSITORY_DIR)/$(REPOSITORY_NAME)
160
|
161 kumpf 1.140 # define the repository mode
|
162 h.sterling 1.89 # XML = XML format
163 # BIN = Binary format
|
164 jim.wunderlich 1.81 #
|
165 jim.wunderlich 1.91 ifndef PEGASUS_REPOSITORY_MODE
166 ## set to default value
167 REPOSITORY_MODE = XML
|
168 kumpf 1.140 else
|
169 jim.wunderlich 1.91 ## validate assigned value
170 ifeq ($(PEGASUS_REPOSITORY_MODE),XML)
171 REPOSITORY_MODE = XML
172 else
173 ifeq ($(PEGASUS_REPOSITORY_MODE),BIN)
174 REPOSITORY_MODE = BIN
175 else
176 $(error PEGASUS_REPOSITORY_MODE ($(PEGASUS_REPOSITORY_MODE)) \
177 is invalid. It must be set to either XML or BIN)
178 endif
179 endif
|
180 jim.wunderlich 1.90 endif
181
|
182 jim.wunderlich 1.91
|
183 jim.wunderlich 1.90 ###########################################################################
|
184 mike 1.1
|
185 kumpf 1.23 # The two variables, CIM_SCHEMA_DIR and CIM_SCHEMA_VER,
|
186 chip 1.76 # are used to control the version of the CIM Schema
|
187 kumpf 1.23 # loaded into the Pegasus Internal, InterOp,
188 # root/cimv2 and various test namespaces.
189 #
|
190 chip 1.76 # Update the following two environment variables to
|
191 kumpf 1.23 # change the version.
192
|
193 kumpf 1.37 # The environment variable PEGASUS_CIM_SCHEMA can be used
|
194 chip 1.76 # to change the values of CIM_SCHEMA_DIR, CIM_SCHEMA_VER
|
195 kumpf 1.37 # and ALLOW_EXPERIMENTAL.
196 #
197 # To use the PEGASUS_CIM_SCHEMA variable the Schema mof
198 # files must be placed in the directory
|
199 denise.eckstein 1.115 # $(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
|
200 chip 1.76 #
|
201 kumpf 1.37 # The value of PEGASUS_CIM_SCHEMA must conform to the
202 # following syntax:
203 #
204 # CIM[Prelim]<CIM_SCHEMA_VER>
205 #
|
206 chip 1.76 # The string "Prelim" should be included if the
|
207 kumpf 1.37 # Schema contains "Experimental" class definitions.
208 #
209 # The value of <CIM_SCHEMA_VER> must be the value
|
210 chip 1.76 # of the version string included by the DMTF as
211 # part of the mof file names (e.g, CIM_Core27.mof).
|
212 kumpf 1.37 # Therefore, for example, the value of <CIM_SCHEMA_VER>
213 # for CIM27 Schema directories MUST be 27.
214 #
|
215 chip 1.76 # Examples of valid values of PEGASUS_CIM_SCHEMA
|
216 kumpf 1.37 # include CIMPrelim27, CIM27, CIMPrelim28, and CIM28.
217 #
218 # Note the CIMPrelim271 would NOT be a valid value
219 # for PEGASUS_CIM_SCHEMA because the version string
220 # portion of the mof files (e.g., CIM_Core27.mof) in
221 # the CIMPrelimin271 directory is 27 not 271.
|
222 kumpf 1.23
|
223 gerarda 1.29 # ***** CIM_SCHEMA_DIR INFO ****
224 # If CIM_SCHEMA_DIR changes to use a preliminary schema which
225 # has experimentals make sure and change the path below to appopriate
226 # directory path. Example: CIMPrelim271 is preliminary and has
227 # experimental classes. Since experimental classes exist the -aE
228 # option of the mof compiler needs to be set.
229 # *****
|
230 kumpf 1.37
231 ifdef PEGASUS_CIM_SCHEMA
|
232 david.dillard 1.65 CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
|
233 chip 1.76 ifeq ($(findstring $(patsubst CIM%,%,$(patsubst CIMPrelim%,%,$(PEGASUS_CIM_SCHEMA))),1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 271 28),)
|
234 david.dillard 1.65 CIM_SCHEMA_VER=
235 else
236 CIM_SCHEMA_VER=$(patsubst CIM%,%,$(patsubst CIMPrelim%,%,$(PEGASUS_CIM_SCHEMA)))
237 endif
|
238 kumpf 1.37 else
|
239 s.manicka 1.139 CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/CIM2131
|
240 a.dunfey 1.82 CIM_SCHEMA_VER=
|
241 kumpf 1.37 endif
242
243 ifneq (, $(findstring Prelim, $(CIM_SCHEMA_DIR)))
|
244 david.dillard 1.65 ALLOW_EXPERIMENTAL = -aE
|
245 gerarda 1.29 else
|
246 david.dillard 1.65 ALLOW_EXPERIMENTAL =
|
247 gerarda 1.29 endif
248
|
249 bob 1.5 LEX = flex
250
|
251 jim.wunderlich 1.94 ## ======================================================================
252 ##
|
253 kumpf 1.140 ## PEGASUS_ENABLE_SORTED_DIFF
|
254 jim.wunderlich 1.94 ## This controls if the DIFFSORT function is used rather than a simple DIFF of
255 ## of the test results files to the static results file.
256 ##
257 ## Set to "true" enables the sorted diffs of results to static results files.
258 ## otherwise results in regular diffs of results to static results files.
|
259 kumpf 1.140 ## see bug 2283 for background information concerning this config variable.
|
260 jim.wunderlich 1.94 ##
261 ## Defaults to true.
262 ##
263 ##
264 ifndef PEGASUS_ENABLE_SORTED_DIFF
265 PEGASUS_ENABLE_SORTED_DIFF=true
266 endif
267
|
268 jim.wunderlich 1.86 ## ========================================================================
|
269 kumpf 1.140 ## DIFFSORT function definition
|
270 jim.wunderlich 1.86 ## Here is an example using the DIFFSORT function:
|
271 kumpf 1.140 ##
|
272 jim.wunderlich 1.86 ## difftest: FORCE
|
273 h.sterling 1.89 ## @ test > result
|
274 jim.wunderlich 1.86 ## @ $(call DIFFSORT,result,standard_result)
|
275 h.sterling 1.89 ## @ $(ECHO) +++++ all test passed
|
276 jim.wunderlich 1.86 ##
277
278 define NL
279
280
281 endef
282
|
283 kumpf 1.140 ifndef FORCE_NOCASE
284
|
285 jim.wunderlich 1.86 DIFFSORT = $(SORT) $(1) > $(1).tmp $(NL) \
286 $(SORT) $(2) > $(2).tmp $(NL) \
287 $(DIFF) $(1).tmp $(2).tmp $(NL) \
288 $(RM) -f $(1).tmp $(NL) \
289 $(RM) -f $(2).tmp $(NL)
290
|
291 marek 1.107 else
292
293 DIFFSORT = $(SORT) -f $(1) > $(1).tmp $(NL) \
294 $(SORT) -f $(2) > $(2).tmp $(NL) \
295 $(DIFF) -i $(1).tmp $(2).tmp $(NL) \
296 $(RM) -f $(1).tmp $(NL) \
297 $(RM) -f $(2).tmp $(NL)
298
299 endif
300
301 DIFFSORTNOCASE = $(SORT) $(1) > $(1).tmp $(NL) \
302 $(SORT) $(2) > $(2).tmp $(NL) \
303 $(DIFF) -i $(1).tmp $(2).tmp $(NL) \
304 $(RM) -f $(1).tmp $(NL) \
305 $(RM) -f $(2).tmp $(NL)
306
|
307 jim.wunderlich 1.104 #
308 # The following is used to define the usage message for MakeFile
309 #
310 # See the pegasus/Makfile for an exampleof its usage.
311 #
312 USAGE = @$(ECHO) " $(1)"
313
|
314 mike 1.8 ################################################################################
315 ##
316 ## Attempt to include a platform configuration file:
317 ##
318 ################################################################################
319
|
320 david.dillard 1.66 PLATFORM_FILE = $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
321 ifneq ($(wildcard $(PLATFORM_FILE)), )
322 include $(PLATFORM_FILE)
323 else
|
324 david.dillard 1.65 $(error PEGASUS_PLATFORM environment variable must be set to one of\
|
325 david.dillard 1.66 the following:$(VALID_PLATFORMS))
|
326 mike 1.8 endif
|
327 karl 1.17
|
328 karl 1.36 ################################################################################
329 ##
330 ## Set up any platform independent compile conditionals by adding them to
331 ## precreated FLAGS parameter.
|
332 chip 1.76 ## Assumes that the basic flags have been setup in FLAGS.
|
333 karl 1.36 ## Assumes that compile time flags are controlled with -D CLI option.
334 ##
335 ################################################################################
|
336 karl 1.17
|
337 jim.wunderlich 1.97
338 ################################################################################
339 ##
340 ## PEGASUS_MAX_THREADS_PER_SVC_QUEUE
341 ##
342 ## Controls the maximum number of threads allowed per message service queue.
343 ## It is allowed to range between 1 and MAX_THREADS_PER_SVC_QUEUE_LIMIT
|
344 kumpf 1.103 ## as set in pegasus/src/Pegasus/Common/MessageQueueService.cpp. If the
345 ## specified value is out of range, MAX_THREADS_PER_SVC_QUEUE_LIMIT is
346 ## used. The default value is MAX_THREADS_PER_SVC_QUEUE_DEFAULT, as
347 ## defined in pegasus/src/Pegasus/Common/MessageQueueService.cpp.
|
348 jim.wunderlich 1.98 ##
349 ## Label Current value
350 ## -------------------------------------- -------------
351 ## MAX_THREADS_PER_SVC_QUEUE_LIMIT 5000
352 ## MAX_THREADS_PER_SVC_QUEUE_DEFAULT 5
|
353 jim.wunderlich 1.97 ##
354 ##
355
356 ifdef PEGASUS_MAX_THREADS_PER_SVC_QUEUE
357 DEFINES += -DMAX_THREADS_PER_SVC_QUEUE=$(PEGASUS_MAX_THREADS_PER_SVC_QUEUE)
358 endif
359
|
360 jim.wunderlich 1.99 ##############################################################################
|
361 kumpf 1.140 ##
|
362 jim.wunderlich 1.99 ## PEGASUS_INDICATIONS_Q_THRESHOLD
363 ##
364 ## Controls if indications providers are stalled if the indications
365 ## service queue is too large.
366 ##
|
367 jim.wunderlich 1.100 ## defaults to not set.
|
368 jim.wunderlich 1.99 ##
369 ## It can be set to any positive value.
370 ##
|
371 jim.wunderlich 1.100 ## If not set providers are never stalled. This implies that the
|
372 jim.wunderlich 1.99 ## indications service queue may become as large as neccesary to hold all
373 ## the indicaitons generated.
374 ##
|
375 jim.wunderlich 1.100 ## If set to any value then providers are stalled by forcing them to sleep
|
376 jim.wunderlich 1.99 ## when they try to deliver an indication and the indications service queue
377 ## exceeds this value. They are resumed when the queue count falls 10 percent
|
378 kumpf 1.140 ## below this value.
|
379 jim.wunderlich 1.99 ##
380 ## Stall and resume log entries are made to inform the administrator
381 ## the condition has occured.
382 ##
383 ## WARNING: This also affects the Out of Process Providers (OOP Providers)
384 ## The OOP Providers use two one way pipes for communication.
385 ## By stalling the Provider this prevents the pipe from being read
386 ## which will cause the pipe to fill up and the remote side will block.
387 ## OOP Prividers mix indications and operations on these two pipes.
388 ## This means the operations will also be blocked as a side effect of
389 ## the indications being stalled.
|
390 kumpf 1.140 ##
|
391 jim.wunderlich 1.99 ##
392
393 ifdef PEGASUS_INDICATIONS_Q_THRESHOLD
394 DEFINES += -DPEGASUS_INDICATIONS_Q_THRESHOLD=$(PEGASUS_INDICATIONS_Q_THRESHOLD)
395 endif
396
|
397 jim.wunderlich 1.97
|
398 kumpf 1.87 # Allow PEGASUS_ASSERT statements to be disabled.
399 ifdef PEGASUS_NOASSERTS
400 DEFINES += -DNDEBUG
401 endif
402
|
403 mday 1.40 # do not compile trace code. sometimes it causes problems debugging
404 ifdef PEGASUS_REMOVE_TRACE
|
405 david.dillard 1.65 DEFINES += -DPEGASUS_REMOVE_TRACE
|
406 mday 1.40 endif
407
|
408 chuck 1.47 # PEP 161
409 # Control whether utf-8 filenames are supported by the repository
410 ifdef PEGASUS_SUPPORT_UTF8_FILENAME
|
411 david.dillard 1.65 DEFINES += -DPEGASUS_SUPPORT_UTF8_FILENAME
|
412 chuck 1.47
|
413 david.dillard 1.65 # Control whether utf-8 filenames in the repository are escaped
414 ifdef PEGASUS_REPOSITORY_ESCAPE_UTF8
415 DEFINES += -DPEGASUS_REPOSITORY_ESCAPE_UTF8
416 endif
|
417 chuck 1.47 endif
418
|
419 kumpf 1.49 #
420 # PEP 142
421 # The following flag need to be set to enable
422 # user group authorization functionality.
423 #
424 ifdef PEGASUS_ENABLE_USERGROUP_AUTHORIZATION
|
425 david.dillard 1.65 DEFINES += -DPEGASUS_ENABLE_USERGROUP_AUTHORIZATION
|
426 kumpf 1.49 endif
427
|
428 chuck 1.67 #
429 # PEP 193
430 # The following flag need to be set to disable
431 # CQL in indication subscriptions
432 #
433 ifdef PEGASUS_DISABLE_CQL
434 DEFINES += -DPEGASUS_DISABLE_CQL
435 endif
436
|
437 kumpf 1.68 #
438 # PEP 186
439 # Allow override of product name/version/status. A file
440 # pegasus/src/Pegasus/Common/ProductVersion.h must exist when this
441 # flag is defined.
442 #
443 ifdef PEGASUS_OVERRIDE_PRODUCT_ID
444 DEFINES += -DPEGASUS_OVERRIDE_PRODUCT_ID
445 endif
446
|
447 kumpf 1.71 #
|
448 kumpf 1.106 # PEP 72
449 # Allow Out-of-Process Providers to be disabled by default
450 #
|
451 jim.wunderlich 1.113 ifdef PEGASUS_DEFAULT_ENABLE_OOP
452 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
453 DEFINES += -DPEGASUS_DEFAULT_ENABLE_OOP
|
454 jim.wunderlich 1.111 else
|
455 jim.wunderlich 1.113 ifneq ($(PEGASUS_DEFAULT_ENABLE_OOP),false)
456 $(error PEGASUS_DEFAULT_ENABLE_OOP ($(PEGASUS_DEFAULT_ENABLE_OOP)) invalid, must be true or false)
|
457 kumpf 1.140 endif
|
458 jim.wunderlich 1.111 endif
|
459 kumpf 1.106 endif
460
461 #
|
462 mateus.baur 1.130 # Allow to define the default value for the Provider User Context
463 # property as REQUESTOR.
464 # If is set and true use REQUESTOR
465 # If is not set or false use PRIVILEGED
466 #
467 ifdef PEGASUS_DEFAULT_USERCTXT_REQUESTOR
468 ifeq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),true)
469 DEFINES += -DPEGASUS_DEFAULT_USERCTXT_REQUESTOR
470 else
471 ifneq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),false)
472 $(error PEGASUS_DEFAULT_USERCTXT_REQUESTOR ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR)) invalid, must be true or false)
|
473 kumpf 1.140 endif
|
474 mateus.baur 1.130 endif
475 endif
476
477 #
|
478 kumpf 1.71 # PEP 197
479 # Allow the Provider User Context feature to be disabled.
480 #
|
481 kumpf 1.74 ifdef PEGASUS_DISABLE_PROV_USERCTXT
|
482 kumpf 1.71 DEFINES += -DPEGASUS_DISABLE_PROV_USERCTXT
|
483 kumpf 1.74 endif
|
484 kumpf 1.71
|
485 h.sterling 1.89 # Bug 2147
486 # Allow local domain socket usage to be disabled.
487 ifdef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
488 DEFINES += -DPEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
489 endif
490
|
491 chip 1.76 # PEP 211
492 # Controls object normalization support.
493 ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
494 DEFINES += -DPEGASUS_ENABLE_OBJECT_NORMALIZATION
495 endif
496
|
497 a.dunfey 1.125 # PEP 233
498 # Controls support for EmbeddedInstance properties
499 # and parameters
|
500 a.dunfey 1.129 ifndef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
501 PEGASUS_EMBEDDED_INSTANCE_SUPPORT = true
502 endif
503
504 ifeq ($(PEGASUS_EMBEDDED_INSTANCE_SUPPORT), true)
505 DEFINES += -DPEGASUS_EMBEDDED_INSTANCE_SUPPORT
506 else
507 ifneq ($(PEGASUS_EMBEDDED_INSTANCE_SUPPORT), false)
508 $(error PEGASUS_EMBEDDED_INSTANCE_SUPPORT ($(PEGASUS_EMBEDDED_INSTANCE_SUPPORT)) invalid, must be true or false)
|
509 a.dunfey 1.125 endif
510 endif
511
|
512 a.dunfey 1.129
|
513 kumpf 1.80 # Allow ExecQuery functionality to be enabled
514 ifndef PEGASUS_ENABLE_EXECQUERY
515 DEFINES += -DPEGASUS_DISABLE_EXECQUERY
516 endif
517
|
518 yi.zhou 1.85 # Allow System Log Handler to be enabled
519 ifdef PEGASUS_ENABLE_SYSTEM_LOG_HANDLER
520 DEFINES += -DPEGASUS_ENABLE_SYSTEM_LOG_HANDLER
521 endif
522
523 # Allow Email Handler to be enabled
524 ifdef PEGASUS_ENABLE_EMAIL_HANDLER
525 DEFINES += -DPEGASUS_ENABLE_EMAIL_HANDLER
526 endif
|
527 kumpf 1.49
|
528 h.sterling 1.109 # Allow qualifiers to be disabled for instance operations
529 ifdef PEGASUS_DISABLE_INSTANCE_QUALIFIERS
530 DEFINES += -DPEGASUS_DISABLE_INSTANCE_QUALIFIERS
531 endif
532
|
533 yi.zhou 1.108 # Controls snmp indication handler to use NET-SNMP to deliver trap
534 ifdef PEGASUS_USE_NET_SNMP
535 DEFINES += -DPEGASUS_USE_NET_SNMP
536 endif
537
|
538 denise.eckstein 1.120 ifdef PEGASUS_HAS_SSL
|
539 kumpf 1.145 DEFINES += -DPEGASUS_HAS_SSL -DPEGASUS_SSL_RANDOMFILE
540
541 ifndef OPENSSL_COMMAND
|
542 denise.eckstein 1.147 ifdef OPENSSL_BIN
543 OPENSSL_COMMAND = $(OPENSSL_BIN)/openssl
544 else
545 OPENSSL_COMMAND = openssl
546 endif
|
547 kumpf 1.145 endif
548 ifndef OPENSSL_SET_SERIAL_SUPPORTED
549 ifneq (, $(findstring 0.9.6, $(shell $(OPENSSL_COMMAND) version)))
550 OPENSSL_SET_SERIAL_SUPPORTED = false
551 else
552 OPENSSL_SET_SERIAL_SUPPORTED = true
553 endif
|
554 denise.eckstein 1.120 endif
|
555 sushma.fernandes 1.123
|
556 kumpf 1.145 # Enable CRL verification
557 ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
558 PEGASUS_ENABLE_SSL_CRL_VERIFICATION = true
559 endif
|
560 sushma.fernandes 1.123
|
561 kumpf 1.145 # Check for Enable SSL CRL verification
562 ifdef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
563 ifeq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), true)
564 DEFINES += -DPEGASUS_ENABLE_SSL_CRL_VERIFICATION
565 else
566 ifneq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), false)
567 $(error PEGASUS_ENABLE_SSL_CRL_VERIFICATION\
568 ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION)) invalid, \
569 must be true or false)
570 endif
|
571 sushma.fernandes 1.123 endif
572 endif
573 endif
|
574 denise.eckstein 1.120
|
575 jim.wunderlich 1.101 #
|
576 yi.zhou 1.134 # PEP 258
577 # Allow Audit Logger to be disabled
578 #
579 ifdef PEGASUS_DISABLE_AUDIT_LOGGER
580 ifeq ($(PEGASUS_DISABLE_AUDIT_LOGGER),true)
|
581 kumpf 1.140 DEFINES += -DPEGASUS_DISABLE_AUDIT_LOGGER
|
582 yi.zhou 1.134 else
583 ifneq ($(PEGASUS_DISABLE_AUDIT_LOGGER),false)
584 $(error PEGASUS_DISABLE_AUDIT_LOGGER ($(PEGASUS_DISABLE_AUDIT_LOGGER)) \
585 invalid, must be true or false)
|
586 kumpf 1.140 endif
587 endif
|
588 yi.zhou 1.134 endif
589
|
590 dave.sudlik 1.142
591 #
592 # PEP 291
593 # Enable IPv6 support
594 #
|
595 venkat.puvvada 1.149
|
596 dave.sudlik 1.142 ifndef PEGASUS_ENABLE_IPV6
597 PEGASUS_ENABLE_IPV6 = true
598 endif
599
600 # Check for Enable IPv6 support
601 ifdef PEGASUS_ENABLE_IPV6
602 ifeq ($(PEGASUS_ENABLE_IPV6),true)
603 DEFINES += -DPEGASUS_ENABLE_IPV6
604 else
605 ifneq ($(PEGASUS_ENABLE_IPV6),false)
606 $(error PEGASUS_ENABLE_IPV6 ($(PEGASUS_ENABLE_IPV6)) \
607 invalid, must be true or false)
608 endif
609 endif
610 endif
611
|
612 venkat.puvvada 1.149 # Verify Test IPv6 support
613 # If PEGASUS_ENABLE_IPV6 is defined and PEGASUS_TEST_IPV6 is not defined, we set
614 # PEGASUS_TEST_IPV6 to the same value as PEGASUS_ENABLE_IPV6.
615 # You can explicitly set PEGASUS_TEST_IPV6 to false if you don't want to run the
616 # IPv6 tests (for example, on an IPv4 system that is running an IPv6-enabled
617 # version of Pegasus).
618 #
619 ifdef PEGASUS_TEST_IPV6
620 ifneq ($(PEGASUS_TEST_IPV6),true)
621 ifneq ($(PEGASUS_TEST_IPV6),false)
622 $(error PEGASUS_TEST_IPV6 ($(PEGASUS_TEST_IPV6)) \
623 invalid, must be true or false)
624 endif
625 endif
626 else
|
627 venkat.puvvada 1.150 PEGASUS_TEST_IPV6 = $(PEGASUS_ENABLE_IPV6)
|
628 venkat.puvvada 1.149 endif
629
|
630 karl 1.151 ############################################################################
|
631 yi.zhou 1.134 #
|
632 jim.wunderlich 1.101 # PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP
633 #
|
634 jim.wunderlich 1.112 # PEGASUS_DISABLE_SLP has been depracated. New use model is:
|
635 jim.wunderlich 1.101 #
|
636 jim.wunderlich 1.112 # Use PEGASUS_ENABLE_SLP=true to enable compilation of SLP functions.
637 #
|
638 kumpf 1.140 # Use PEGASUS_ENABLE_SLP=false to disable compilation of SLP functions.
|
639 jim.wunderlich 1.101 #
|
640 kumpf 1.140 # Currently (Aug. 12, 2005) Windows is the only platform that enables SLP
|
641 jim.wunderlich 1.101 # by default.
642 #
643 # NOTE. Effective with Bug # 2633 some platforms enable SLP.
|
644 karl 1.75 # To see which platforms look for platform make files that set
|
645 kumpf 1.140 # the variable PEGASUS_ENABLE_SLP.
|
646 jim.wunderlich 1.101 #
647 #
|
648 jim.wunderlich 1.112
|
649 karl 1.39 ifdef PEGASUS_ENABLE_SLP
|
650 jim.wunderlich 1.101 ifdef PEGASUS_DISABLE_SLP
651 $(error Conflicting defines PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP both set)
652 endif
|
653 jim.wunderlich 1.112 endif
654
655 ifdef PEGASUS_DISABLE_SLP
656 $(error PEGASUS_DISABLE_SLP has been deprecated. Please use PEGASUS_ENABLE_SLP=[true/false] )
657
658 PEGASUS_ENABLE_SLP=false
659
660 endif
661
662 ifdef PEGASUS_ENABLE_SLP
663 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
664 david.dillard 1.65 DEFINES += -DPEGASUS_ENABLE_SLP
|
665 jim.wunderlich 1.112 else
666 ifneq ($(PEGASUS_ENABLE_SLP),false)
667 $(error PEGASUS_ENABLE_SLP ($(PEGASUS_ENABLE_SLP)) invalid, must be true or false)
|
668 kumpf 1.140 endif
|
669 jim.wunderlich 1.112 endif
|
670 karl 1.39 endif
|
671 karl 1.36
|
672 jim.wunderlich 1.121
673 ############################################################################
674 #
675 # PEGASUS_USE_OPENSLP
676 #
677 # Environment variable to set openslp as SLP environment to use
678 # for SLP Directory and User Agents.
679 #
680 # Allows enabling use of openslp interfaces for slp instead of the
681 # internal pegasus slp agent. Note that this does not disable the
682 # compilation of the internal agent code, etc. However, it assumes
683 # openslp is installed on the platform and changes the interfaces
684 # to match this. At this moment, this is a change specifically for
685 # adaptec but we expect to generalize it to provide openslp as a
686 # generalized alternative to ldapslp.
|
687 kumpf 1.140 # to use this. To set this function up,
|
688 jim.wunderlich 1.121 #
689 # Use this variable in conjunction with PEGASUS_OPENSLP_HOME
|
690 kumpf 1.140 # to enable OpenSlp as the slp implementation.
|
691 jim.wunderlich 1.121 #
692 # NOTE that it has no affect if the PEGASUS_ENABLE_SLP etc. flags are not set.
693 #
694
695 ifdef PEGASUS_USE_OPENSLP
696 ifeq ($(PEGASUS_ENABLE_SLP),true)
697 DEFINES += -DPEGASUS_USE_OPENSLP
698 else
699 $(error PEGASUS_USE_OPENSLP defined but PEGASUS_ENABLE_SLP is not true. Please correct this inconsistency)
700 endif
701 endif
702
|
703 dave.sudlik 1.135 # PEP 267
704 # SLP reregistration support.
705 # PEGASUS_SLP_REG_TIMEOUT is defined as the SLP registration timeout
706 # interval, in minutes.
707 ifdef PEGASUS_SLP_REG_TIMEOUT
708 ifeq ($(PEGASUS_ENABLE_SLP),true)
709 DEFINES += -DPEGASUS_SLP_REG_TIMEOUT=$(PEGASUS_SLP_REG_TIMEOUT)
710 else
711 $(error PEGASUS_SLP_REG_TIMEOUT defined but PEGASUS_ENABLE_SLP is not true. Please correct this inconsistency)
712 endif
713 endif
|
714 jim.wunderlich 1.121
715 ############################################################################
716 #
717 # PEGASUS_OPENSLP_HOME
718 #
719 # Environment variable to set home location for OpenSLP include and library
|
720 kumpf 1.140 # files if they are located somewhere other than /usr/include and /usr/lib.
|
721 jim.wunderlich 1.121 #
722 # PEGASUS_USE_OPENSLP must also be defined for this environment variable
723 # to have any effect.
724 #
|
725 kumpf 1.140 # This is the directory level within which both the include and lib
726 # directories holding the OpenSLP files will be found.
|
727 jim.wunderlich 1.121 #
|
728 kumpf 1.140 # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
|
729 jim.wunderlich 1.121 # then this environment variable should be set to /opt/OpenSLP.
730 #
731
732
|
733 sushma.fernandes 1.114 #
|
734 kumpf 1.140 # Enable this flag to allow the handshake to continue regardless of verification result
|
735 sushma.fernandes 1.114 #
736 ifdef PEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
737 DEFINES += -DPEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
738 endif
739
|
740 karl 1.151 ############################################################################
741 #
742 # PEGASUS_ENABLE_INTEROP_PROVIDER
743 # Enables the interop provider AND the server profile.
744 # initially this was activated by setting either the perfinst or slp enable
745 # flags. This allows activating this function without any either perfinst or
746 # slp enabled. Note that if either of these are enabled, this funtion is also
747 # enabled
748
749 ## if either slp or perfinst are enabled and this is false, flag error
750 ## This gets messy because should account for both postive and negative on
751 ## interop so we don't get multiples.
752
753 ifdef PEGASUS_ENABLE_SLP
754 ifeq ($(PEGASUS_ENABLE_SLP),true)
755 ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
756 PEGASUS_ENABLE_INTEROP_PROVIDER = true
757 else
758 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
759 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if SLP enabled)
760 endif
761 karl 1.151 endif
762 endif
763 endif
764
765 ## if PERFINST enabled, set to force interop.
766 ifndef PEGASUS_DISABLE_PERFINST
767 ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
768 PEGASUS_ENABLE_INTEROP_PROVIDER = true
769 else
770 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
771 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if PERFINST enabled)
772 endif
773 endif
774 endif
775
776 ifdef PEGASUS_ENABLE_INTEROP_PROVIDER
777 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),true)
778 DEFINES += -DPEGASUS_ENABLE_INTEROP_PROVIDER
779 else
780 ifneq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
781 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true or false)
782 karl 1.151 endif
783 endif
784 endif
785
786
787 ############################################################################
|
788 karl 1.60 # set PEGASUS_DEBUG into the DEFINES if it exists.
789 # Note that this flag is the general separator between
790 # debug compiles and non-debug compiles and controls both
791 # the use of any debug options on compilers and linkers
792 # and general debug support that we want to be turned on in
|
793 chip 1.76 # debug mode.
|
794 karl 1.60 ifdef PEGASUS_DEBUG
|
795 david.dillard 1.65 DEFINES += -DPEGASUS_DEBUG
|
796 kumpf 1.88
797 # Indications debugging options
798 ifdef PEGASUS_INDICATION_PERFINST
799 DEFINES += -DPEGASUS_INDICATION_PERFINST
800 endif
801
802 ifdef PEGASUS_INDICATION_HASHTRACE
803 DEFINES += -DPEGASUS_INDICATION_HASHTRACE
804 endif
|
805 kumpf 1.131
806 # Setup the conditional compile for client displays.
807 ifdef PEGASUS_CLIENT_TRACE_ENABLE
808 DEFINES += -DPEGASUS_CLIENT_TRACE_ENABLE
809 endif
|
810 karl 1.60 endif
811
|
812 chuck 1.42 # compile in the experimental APIs
|
813 david.dillard 1.65 DEFINES += -DPEGASUS_USE_EXPERIMENTAL_INTERFACES
|
814 chuck 1.42
|
815 kumpf 1.93 # Ensure that the deprecated interfaces are defined in the Pegasus libraries.
816 # One may wish to disable these interfaces if binary compatibility with
817 # previous Pegasus releases is not required.
818 ifndef PEGASUS_DISABLE_DEPRECATED_INTERFACES
819 DEFINES += -DPEGASUS_USE_DEPRECATED_INTERFACES
820 endif
821
|
822 w.white 1.57 # Set compile flag to control compilation of CIMOM statistics
|
823 karl 1.73 ifdef PEGASUS_DISABLE_PERFINST
|
824 marek 1.136 DEFINES += -DPEGASUS_DISABLE_PERFINST
|
825 w.white 1.57 endif
|
826 kumpf 1.56
|
827 karl 1.96 # Set compile flag to control compilation of SNIA Extensions
828 ifdef PEGASUS_SNIA_EXTENSIONS
|
829 marek 1.136 DEFINES += -DPEGASUS_SNIA_EXTENSIONS
|
830 karl 1.96 endif
831
|
832 denise.eckstein 1.119 ifdef PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
833 ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
|
834 marek 1.136 DEFINES += -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
|
835 denise.eckstein 1.119 else
836 ifneq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), false)
837 $(error PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER \
838 ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER)) invalid, \
839 must be true or false)
840 endif
841 endif
842 endif
843
|
844 mark.hamzy 1.124 ifdef PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
845 ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
|
846 marek 1.136 DEFINES += -DPEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
|
847 mark.hamzy 1.124 else
848 ifneq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), false)
849 $(error PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER \
850 ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER)) invalid, \
851 must be true or false)
852 endif
853 endif
854 endif
855
|
856 kumpf 1.95 # Allow remote CMPI functionality to be enabled
857 ifdef PEGASUS_ENABLE_REMOTE_CMPI
|
858 marek 1.136 DEFINES += -DPEGASUS_ENABLE_REMOTE_CMPI
|
859 kumpf 1.95 endif
860
|
861 kumpf 1.56 ############################################################
862 #
863 # Set any vendor-specific compile flags
864 #
865 ############################################################
866
867 ifdef PEGASUS_VENDOR_HP
|
868 david.dillard 1.65 DEFINES+= -DPEGASUS_VENDOR_HP
|
869 kumpf 1.56 endif
870
|
871 chip 1.76
|
872 karl 1.17 ############################################################
873 #
874 # Set up other Make Variables that depend on platform config files
875 #
876 ############################################################
877
878 # This is temporary until we end up with a better place to
879 # put this variable
880 # Makefiles can do directory remove with
881 # $(RMREPOSITORY) repositoryname
882 #
883 RMREPOSITORY = $(RMDIRHIER)
884
|
885 w.otsuka 1.63 ifdef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
|
886 marek 1.136 DEFINES += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
|
887 w.otsuka 1.62 endif
888
889 ifdef PEGASUS_USE_RELEASE_DIRS
|
890 marek 1.136 DEFINES += -DPEGASUS_USE_RELEASE_DIRS
|
891 w.otsuka 1.62 endif
|
892 mday 1.27
|
893 denise.eckstein 1.110 ifdef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
|
894 marek 1.136 DEFINES += -DPEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
|
895 denise.eckstein 1.110 endif
896
|
897 kumpf 1.64 # Unless otherwise specified, Pegasus libraries go in $(PEGASUS_HOME)/lib
898 ifndef PEGASUS_DEST_LIB_DIR
|
899 david.dillard 1.65 PEGASUS_DEST_LIB_DIR = lib
|
900 kumpf 1.64 endif
|
901 mday 1.28
|
902 gs.keenan 1.77 ifeq ($(OS),VMS)
903 DEFINES += -DPEGASUS_DEST_LIB_DIR="""$(PEGASUS_DEST_LIB_DIR)"""
904 else
905 DEFINES += -DPEGASUS_DEST_LIB_DIR=\"$(PEGASUS_DEST_LIB_DIR)\"
906 endif
907
|
908 w.otsuka 1.79 ################################################################################
909 ##
|
910 mike 1.105 ## PEGASUS_CLASS_CACHE_SIZE
911 ##
912 ## This environment variable gives the size of the class cache used by
913 ## the CIM repository. When it is undefined, the size defaults to something
914 ## relatively small (see src/Pegasus/Repository/CIMRepository.cpp). If
915 ## defined, it gives the size of the class cache. If it is 0 , the class
916 ## cache is not defined compiled in at all.
917 ##
918 ################################################################################
919
920 ifdef PEGASUS_CLASS_CACHE_SIZE
921 DEFINES += -DPEGASUS_CLASS_CACHE_SIZE=$(PEGASUS_CLASS_CACHE_SIZE)
922 endif
923
924 ################################################################################
925 ##
|
926 w.otsuka 1.79 ## Additional build flags passed in through environment variables.
927 ## These flags are added to the compile/link commands.
928 ##
929 ################################################################################
930
931 ifdef PEGASUS_EXTRA_CXX_FLAGS
932 EXTRA_CXX_FLAGS = $(PEGASUS_EXTRA_CXX_FLAGS)
933 endif
934
935 ifdef PEGASUS_EXTRA_C_FLAGS
936 EXTRA_C_FLAGS = $(PEGASUS_EXTRA_C_FLAGS)
937 endif
938
939 ifdef PEGASUS_EXTRA_LINK_FLAGS
940 EXTRA_LINK_FLAGS = $(PEGASUS_EXTRA_LINK_FLAGS)
941 endif
942
|
943 mike 1.126 ##==============================================================================
944 ##
945 ## By definining PEGASUS_USE_STATIC_LIBRARIES in the environment and STATIC
946 ## in the Makefile, a static library is produced rather than a shared one.
947 ## PEGASUS_USE_STATIC_LIBRARIES should be "true" or "false".
948 ##
949 ##==============================================================================
950
951 ifdef PEGASUS_USE_STATIC_LIBRARIES
952 ifeq ($(PEGASUS_USE_STATIC_LIBRARIES),true)
953 else
954 ifneq ($(PEGASUS_USE_STATIC_LIBRARIES),false)
955 $(error PEGASUS_USE_STATIC_LIBRARIES ($(PEGASUS_USE_STATIC_LIBRARIES)) invalid, must be true or false)
|
956 kumpf 1.140 endif
957 endif
958 endif
959
960 ##==============================================================================
961 ##
962 ## PEGASUS_ENABLE_PRIVILEGE_SEPARATION
963 ##
964 ## Enables privilege separation support (uses the executor process to
965 ## perform privileged operations).
966 ##
967 ##==============================================================================
968
969 ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
970 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
971 DEFINES += -DPEGASUS_ENABLE_PRIVILEGE_SEPARATION
972 else
973 ifneq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),false)
974 $(error PEGASUS_ENABLE_PRIVILEGE_SEPARATION \
975 ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION)) invalid, must be true or false)
976 endif
977 kumpf 1.140 endif
978
|
979 kumpf 1.148 ## Defines the user context of the cimservermain process when privilege
|
980 kumpf 1.140 ## separation is enabled.
|
981 kumpf 1.148 PEGASUS_CIMSERVERMAIN_USER = cimsrvr
|
982 kumpf 1.141 DEFINES += -DPEGASUS_CIMSERVERMAIN_USER=\"$(PEGASUS_CIMSERVERMAIN_USER)\"
|
983 mike 1.126 endif
|
984 mark.hamzy 1.127
|
985 kumpf 1.140 ##==============================================================================
986 ##
987 ## PEGASUS_USE_PAM_STANDALONE_PROC
988 ##
989 ##==============================================================================
990
991 ifdef PEGASUS_USE_PAM_STANDALONE_PROC
992 DEFINES += -DPEGASUS_USE_PAM_STANDALONE_PROC
993 endif
994
995 ##==============================================================================
|
996 mark.hamzy 1.127
997 ifndef PEGASUS_JAVA_CLASSPATH_DELIMITER
998 PEGASUS_JAVA_CLASSPATH_DELIMITER = :
999 endif
|
1000 mark.hamzy 1.132
1001 ifndef PEGASUS_JVM
1002 PEGASUS_JVM = sun
1003 endif
1004 ifeq ($(PEGASUS_JVM),gcj)
1005 PEGASUS_JAVA_COMPILER = gcj -C
1006 PEGASUS_JAVA_JAR = fastjar
1007 PEGASUS_JAVA_INTERPRETER = gij
1008 else
1009 PEGASUS_JAVA_COMPILER = javac -target 1.4 -source 1.4
1010 PEGASUS_JAVA_JAR = jar
1011 PEGASUS_JAVA_INTERPRETER = java
1012 endif
|