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 denise.eckstein 1.61 ifdef PEGASUS_ENVVAR_FILE
|
43 david.dillard 1.65 include $(PEGASUS_ENVVAR_FILE)
|
44 denise.eckstein 1.61 else
|
45 david.dillard 1.65 include $(ROOT)/env_var.status
|
46 denise.eckstein 1.61 endif
|
47 konrad.r 1.55
|
48 mike 1.2 ifdef PEGASUS_HOME
|
49 david.dillard 1.65 HOME_DIR = $(subst \,/,$(PEGASUS_HOME))
|
50 mike 1.1 else
|
51 david.dillard 1.65 $(error PEGASUS_HOME environment variable undefined)
|
52 mike 1.1 endif
53
|
54 karl 1.18 ifdef PEGASUS_ROOT
55 ROOT = $(subst \,/,$(PEGASUS_ROOT))
56 else
|
57 david.dillard 1.65 $(error PEGASUS_ROOT environment variable undefined)
|
58 karl 1.18 endif
59
|
60 kumpf 1.21 ifdef PEGASUS_TMP
|
61 david.dillard 1.65 TMP_DIR = $(subst \,/,$(PEGASUS_TMP))
|
62 kumpf 1.21 else
|
63 david.dillard 1.65 TMP_DIR = .
|
64 kumpf 1.21 endif
65
|
66 kumpf 1.26 ifdef PEGASUS_DISPLAYCONSUMER_DIR
|
67 david.dillard 1.65 DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_DISPLAYCONSUMER_DIR))
|
68 kumpf 1.26 else
|
69 david.dillard 1.65 DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_HOME))
|
70 kumpf 1.26 endif
71
|
72 aruran.ms 1.102 ifdef PEGASUS_DEBUG
73 PEGASUS_USE_DEBUG_BUILD_OPTIONS = 1
74 endif
75
|
76 david.dillard 1.66 PLATFORM_FILES=$(wildcard $(ROOT)/mak/platform*.mak)
|
77 karl 1.78 PLATFORM_TEMP=$(subst $(ROOT)/mak/platform_,, $(PLATFORM_FILES))
|
78 jim.wunderlich 1.104 VALID_PLATFORMS=$(subst .mak, , $(PLATFORM_TEMP))
|
79 mike 1.8
80 ifndef PEGASUS_PLATFORM
|
81 david.dillard 1.66 $(error PEGASUS_PLATFORM environment variable undefined. Please set to\
82 one of the following:$(VALID_PLATFORMS))
|
83 mike 1.8 endif
84
|
85 mike 1.1 ################################################################################
|
86 denise.eckstein 1.116 ifeq ($(findstring _GNU, $(PEGASUS_PLATFORM)), _GNU)
|
87 mike 1.118 ifdef CXX
88 GCC_VERSION = $(shell $(CXX) -dumpversion)
89 else
90 GCC_VERSION = $(shell g++ -dumpversion)
91 endif
|
92 denise.eckstein 1.116 else
93 GCC_VERSION =
94 endif
|
95 mike 1.1
|
96 denise.eckstein 1.143 #############################################################################
97 ## As a general rule, the directory structure for the object files mirrors
98 ## the directory structure of the source files. E.g.,
99 ## $PEGASUS_HOME/obj/Pegasus/Common contains the object files for the
100 ## source files in $PEGASUS_ROOT/src/Pegasus/Common. Each source-level
101 ## Makefile includes a DIR value that defines this common path (e.g.,
102 ## Pegasus/Common). In a small number of cases, source files are built
103 ## multiple times with difference compile options.
104 ## To handle this situation, the ALT_OBJ_DIR variable can be used to
105 ## specify an alternative object directory for use in building the
106 ## objects defined in the Makefile.
107 ##
108
109 ifndef ALT_OBJ_DIR
110 OBJ_DIR = $(HOME_DIR)/obj/$(DIR)
111 else
112 OBJ_DIR = $(HOME_DIR)/obj/$(ALT_OBJ_DIR)
113 endif
114
115 #############################################################################
116
|
117 kumpf 1.157 ifdef PEGASUS_TEST_VALGRIND_LOG_DIR
|
118 dmitry.mikulin 1.155 BIN_DIR = $(HOME_DIR)/bin_exe
119 VALGRIND_SCRIPT_BIN_DIR = $(HOME_DIR)/bin
120 else
121 BIN_DIR = $(HOME_DIR)/bin
122 endif
|
123 kumpf 1.22 LIB_DIR = $(HOME_DIR)/lib
|
124 chuck 1.35
125 # l10n
126 # define the location for the compiled messages
127 MSG_ROOT = $(HOME_DIR)/msg
|
128 kumpf 1.22
|
129 jim.wunderlich 1.90 #############################################################################
|
130 kumpf 1.140 ## The following REPOSITORY_XXX variables are only used within the
131 ## makefiles for building the repository (cimmofl) and running the tests.
|
132 jim.wunderlich 1.90 ## They have no effect on CIMconfig initial startup configuration.
133
134 #
|
135 kumpf 1.22 # define the location for the repository
|
136 jim.wunderlich 1.90 #
137 # NOTE: There is another variable efined in many of the test makefiles
138 # called REPOSITORYDIR. It is a local variable in each of those Makefiles
|
139 kumpf 1.140 # to localally control where the temporay small repository they
|
140 jim.wunderlich 1.90 # build, use and then delete is located. Most of the time it is set to TMP_DIR.
141 #
|
142 jim.wunderlich 1.91
|
143 kumpf 1.22 REPOSITORY_DIR = $(HOME_DIR)
|
144 jim.wunderlich 1.90
145 #
|
146 kumpf 1.140 # WARNING: The REPOSITORY_NAME varible is not used by all the test,
|
147 jim.wunderlich 1.90 # many of them are still hardcoded to "repository". What this means
|
148 kumpf 1.140 # is that you can change the repository name and build it. But you
|
149 jim.wunderlich 1.90 # cannot run the test without many of them failing
150 #
|
151 jim.wunderlich 1.91
|
152 jim.wunderlich 1.81 REPOSITORY_NAME = repository
|
153 jim.wunderlich 1.91
|
154 jim.wunderlich 1.90
|
155 jim.wunderlich 1.81 REPOSITORY_ROOT = $(REPOSITORY_DIR)/$(REPOSITORY_NAME)
156
|
157 kumpf 1.140 # define the repository mode
|
158 h.sterling 1.89 # XML = XML format
159 # BIN = Binary format
|
160 jim.wunderlich 1.81 #
|
161 jim.wunderlich 1.91 ifndef PEGASUS_REPOSITORY_MODE
162 ## set to default value
163 REPOSITORY_MODE = XML
|
164 kumpf 1.140 else
|
165 jim.wunderlich 1.91 ## validate assigned value
166 ifeq ($(PEGASUS_REPOSITORY_MODE),XML)
167 REPOSITORY_MODE = XML
168 else
169 ifeq ($(PEGASUS_REPOSITORY_MODE),BIN)
170 REPOSITORY_MODE = BIN
171 else
172 $(error PEGASUS_REPOSITORY_MODE ($(PEGASUS_REPOSITORY_MODE)) \
173 is invalid. It must be set to either XML or BIN)
174 endif
175 endif
|
176 jim.wunderlich 1.90 endif
177
|
178 jim.wunderlich 1.91
|
179 jim.wunderlich 1.90 ###########################################################################
|
180 mike 1.1
|
181 kumpf 1.23 # The two variables, CIM_SCHEMA_DIR and CIM_SCHEMA_VER,
|
182 chip 1.76 # are used to control the version of the CIM Schema
|
183 kumpf 1.23 # loaded into the Pegasus Internal, InterOp,
184 # root/cimv2 and various test namespaces.
185 #
|
186 chip 1.76 # Update the following two environment variables to
|
187 kumpf 1.23 # change the version.
188
|
189 kumpf 1.37 # The environment variable PEGASUS_CIM_SCHEMA can be used
|
190 chip 1.76 # to change the values of CIM_SCHEMA_DIR, CIM_SCHEMA_VER
|
191 kumpf 1.37 # and ALLOW_EXPERIMENTAL.
192 #
193 # To use the PEGASUS_CIM_SCHEMA variable the Schema mof
194 # files must be placed in the directory
|
195 denise.eckstein 1.115 # $(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
|
196 chip 1.76 #
|
197 kumpf 1.37 # The value of PEGASUS_CIM_SCHEMA must conform to the
198 # following syntax:
199 #
200 # CIM[Prelim]<CIM_SCHEMA_VER>
201 #
|
202 chip 1.76 # The string "Prelim" should be included if the
|
203 kumpf 1.37 # Schema contains "Experimental" class definitions.
204 #
205 # The value of <CIM_SCHEMA_VER> must be the value
|
206 chip 1.76 # of the version string included by the DMTF as
207 # part of the mof file names (e.g, CIM_Core27.mof).
|
208 kumpf 1.37 # Therefore, for example, the value of <CIM_SCHEMA_VER>
209 # for CIM27 Schema directories MUST be 27.
210 #
|
211 chip 1.76 # Examples of valid values of PEGASUS_CIM_SCHEMA
|
212 kumpf 1.37 # include CIMPrelim27, CIM27, CIMPrelim28, and CIM28.
213 #
214 # Note the CIMPrelim271 would NOT be a valid value
215 # for PEGASUS_CIM_SCHEMA because the version string
216 # portion of the mof files (e.g., CIM_Core27.mof) in
217 # the CIMPrelimin271 directory is 27 not 271.
|
218 kumpf 1.23
|
219 gerarda 1.29 # ***** CIM_SCHEMA_DIR INFO ****
220 # If CIM_SCHEMA_DIR changes to use a preliminary schema which
221 # has experimentals make sure and change the path below to appopriate
222 # directory path. Example: CIMPrelim271 is preliminary and has
223 # experimental classes. Since experimental classes exist the -aE
224 # option of the mof compiler needs to be set.
225 # *****
|
226 kumpf 1.37
|
227 denise.eckstein 1.154 ifndef PEGASUS_CIM_SCHEMA
|
228 kumpf 1.164 PEGASUS_CIM_SCHEMA=CIM217
|
229 denise.eckstein 1.154 endif
230
231 CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
232 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),)
233 CIM_SCHEMA_VER=
|
234 kumpf 1.37 else
|
235 denise.eckstein 1.154 CIM_SCHEMA_VER=$(patsubst CIM%,%,$(patsubst CIMPrelim%,%,$(PEGASUS_CIM_SCHEMA)))
|
236 kumpf 1.37 endif
237
238 ifneq (, $(findstring Prelim, $(CIM_SCHEMA_DIR)))
|
239 david.dillard 1.65 ALLOW_EXPERIMENTAL = -aE
|
240 gerarda 1.29 else
|
241 david.dillard 1.65 ALLOW_EXPERIMENTAL =
|
242 gerarda 1.29 endif
243
|
244 bob 1.5 LEX = flex
245
|
246 jim.wunderlich 1.94 ## ======================================================================
247 ##
|
248 kumpf 1.140 ## PEGASUS_ENABLE_SORTED_DIFF
|
249 jim.wunderlich 1.94 ## This controls if the DIFFSORT function is used rather than a simple DIFF of
250 ## of the test results files to the static results file.
251 ##
252 ## Set to "true" enables the sorted diffs of results to static results files.
253 ## otherwise results in regular diffs of results to static results files.
|
254 kumpf 1.140 ## see bug 2283 for background information concerning this config variable.
|
255 jim.wunderlich 1.94 ##
256 ## Defaults to true.
257 ##
258 ##
259 ifndef PEGASUS_ENABLE_SORTED_DIFF
260 PEGASUS_ENABLE_SORTED_DIFF=true
261 endif
262
|
263 jim.wunderlich 1.86 ## ========================================================================
|
264 kumpf 1.140 ## DIFFSORT function definition
|
265 jim.wunderlich 1.86 ## Here is an example using the DIFFSORT function:
|
266 kumpf 1.140 ##
|
267 jim.wunderlich 1.86 ## difftest: FORCE
|
268 h.sterling 1.89 ## @ test > result
|
269 jim.wunderlich 1.86 ## @ $(call DIFFSORT,result,standard_result)
|
270 h.sterling 1.89 ## @ $(ECHO) +++++ all test passed
|
271 jim.wunderlich 1.86 ##
272
273 define NL
274
275
276 endef
277
|
278 kumpf 1.140 ifndef FORCE_NOCASE
279
|
280 jim.wunderlich 1.86 DIFFSORT = $(SORT) $(1) > $(1).tmp $(NL) \
281 $(SORT) $(2) > $(2).tmp $(NL) \
282 $(DIFF) $(1).tmp $(2).tmp $(NL) \
283 $(RM) -f $(1).tmp $(NL) \
284 $(RM) -f $(2).tmp $(NL)
285
|
286 marek 1.107 else
287
288 DIFFSORT = $(SORT) -f $(1) > $(1).tmp $(NL) \
289 $(SORT) -f $(2) > $(2).tmp $(NL) \
290 $(DIFF) -i $(1).tmp $(2).tmp $(NL) \
291 $(RM) -f $(1).tmp $(NL) \
292 $(RM) -f $(2).tmp $(NL)
293
294 endif
295
296 DIFFSORTNOCASE = $(SORT) $(1) > $(1).tmp $(NL) \
297 $(SORT) $(2) > $(2).tmp $(NL) \
298 $(DIFF) -i $(1).tmp $(2).tmp $(NL) \
299 $(RM) -f $(1).tmp $(NL) \
300 $(RM) -f $(2).tmp $(NL)
301
|
302 jim.wunderlich 1.104 #
303 # The following is used to define the usage message for MakeFile
304 #
305 # See the pegasus/Makfile for an exampleof its usage.
306 #
307 USAGE = @$(ECHO) " $(1)"
308
|
309 mike 1.8 ################################################################################
310 ##
311 ## Attempt to include a platform configuration file:
312 ##
313 ################################################################################
314
|
315 david.dillard 1.66 PLATFORM_FILE = $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
316 ifneq ($(wildcard $(PLATFORM_FILE)), )
317 include $(PLATFORM_FILE)
318 else
|
319 david.dillard 1.65 $(error PEGASUS_PLATFORM environment variable must be set to one of\
|
320 david.dillard 1.66 the following:$(VALID_PLATFORMS))
|
321 mike 1.8 endif
|
322 karl 1.17
|
323 karl 1.36 ################################################################################
324 ##
325 ## Set up any platform independent compile conditionals by adding them to
326 ## precreated FLAGS parameter.
|
327 chip 1.76 ## Assumes that the basic flags have been setup in FLAGS.
|
328 karl 1.36 ## Assumes that compile time flags are controlled with -D CLI option.
329 ##
330 ################################################################################
|
331 karl 1.17
|
332 kumpf 1.166 ############################################################################
333 # OpenPegasus relies on the existence of an external set of libraries to
334 # support localized messages. Today, the only supported package is
335 # the International Components for Unicode (ICU) OSS project,
336 # http://oss.software.ibm.com/icu. If PEGASUS_HAS_ICU is true,
337 # OpenPegasus will use the ICU library.
338 #
339 # ICU_INSTALL points to the directory containing the ICU installation.
340 # If set, the OpenPegasus will use this variable to locate the ICU
341 # include files and libraries. If not set, the ICU libraries are expected
342 # to be installed in a directory that is searched by default.
343 #
344 # If PEGASUS_HAS_ICU is not set and ICU_INSTALL is set, the value of
345 # PEGASUS_HAS_ICU will be set to true.
346 ############################################################################
347
348 ifdef PEGASUS_HAS_ICU
349 ifneq ($(PEGASUS_HAS_ICU),true)
350 ifneq ($(PEGASUS_HAS_ICU),false)
351 $(error PEGASUS_HAS_ICU ($(PEGASUS_HAS_ICU)) \
352 invalid, must be true or false)
353 kumpf 1.166 endif
354 endif
355 else
356 ifdef ICU_INSTALL
357 PEGASUS_HAS_ICU = true
358 endif
359 endif
360
361 ifdef PEGASUS_HAS_MESSAGES
362 DEFINES += -DPEGASUS_HAS_MESSAGES
363
364 ifneq ($(PEGASUS_HAS_ICU),true)
365 $(error Support for localized messages in OpenPegasus \
366 requires PEGASUS_HAS_ICU to be true)
367 endif
368 endif
369
370 ifeq ($(PEGASUS_HAS_ICU),true)
371 DEFINES += -DPEGASUS_HAS_ICU
372
373 ##################################
374 kumpf 1.166 ##
375 ## ICU_NO_UPPERCASE_ROOT if set, specifies NOT to uppercase the root
376 ## resource bundle, default is to uppercase the root resource bundle
377 ##
378 ##################################
379
380 ifdef ICU_NO_UPPERCASE_ROOT
381 CNV_ROOT_FLAGS =
382 else
383 CNV_ROOT_FLAGS = -u
384 endif
385
386 ####################################
387 ##
388 ## ICU_ROOT_BUNDLE_LANG if set, specifies the language that the root
389 ## resource bundle will be generated from. Defaults to _en if not set.
390 ## If set, for any directory containing resource bundles, there must
391 ## exist a file name: package($ICU_ROOT_BUNDLE_LANG).txt or the make
392 ## messages target will fail.
393 ##
394 ####################################
395 kumpf 1.166
396 ifdef ICU_ROOT_BUNDLE_LANG
397 MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
398 else
399 MSG_ROOT_SOURCE = _en
400 endif
|
401 mike 1.167.4.1
402 ifdef ICU_INSTALL
403 MSG_COMPILE = $(ICU_INSTALL)/bin/genrb
404 else
405 MSG_COMPILE = genrb
406 endif
407
408 MSG_FLAGS =
409 MSG_SOURCE_EXT = .txt
410 MSG_COMPILE_EXT = .res
411
412 ifeq ($(OS),linux)
413 CNV_ROOT_CMD = $(BIN_DIR)/cnv2rootbundle
414 else
415 CNV_ROOT_CMD = cnv2rootbundle
416 endif
417
418 # The library path option is needed on all link commands with some ICU
419 # builds, because internal ICU library dependencies are resolved
420 # dynamically.
421 ifdef ICU_INSTALL
422 mike 1.167.4.1 ifeq ($(OS),zos)
423 # On z/OS, the -L option must appear before the -o option and
424 # the object (.o) and sidedeck (.x) files in the link command.
425 FLAGS += -L$(ICU_INSTALL)/lib
426 PR_FLAGS += -L$(ICU_INSTALL)/lib
427 else
428 EXTRA_LIBRARIES += -L$(ICU_INSTALL)/lib
429 endif
430 endif
431
432 # The ICU include path and library dependencies are restricted to
433 # where they are specifically needed.
434 ifeq ($(HAS_ICU_DEPENDENCY),true)
435 ifdef ICU_INSTALL
436 SYS_INCLUDES += -I$(ICU_INSTALL)/include
437 endif
438
439 ifeq ($(OS),windows)
440 EXTRA_LIBRARIES += \
441 $(ICU_INSTALL)/lib/icuuc.lib \
442 $(ICU_INSTALL)/lib/icuin.lib \
443 mike 1.167.4.1 $(ICU_INSTALL)/lib/icudt.lib
444 else
445 ifeq ($(OS),zos)
446 EXTRA_LIBRARIES += \
447 $(ICU_INSTALL)/lib/libicui18n.x \
448 $(ICU_INSTALL)/lib/libicuuc.x
449 else
450 EXTRA_LIBRARIES += -licuuc -licui18n
451 ifeq ($(OS),linux)
452 EXTRA_LIBRARIES += -licudata
453 endif
454 endif
455 endif
456 endif
|
457 kumpf 1.166 endif
|
458 jim.wunderlich 1.97
459 ################################################################################
460 ##
461 ## PEGASUS_MAX_THREADS_PER_SVC_QUEUE
462 ##
463 ## Controls the maximum number of threads allowed per message service queue.
464 ## It is allowed to range between 1 and MAX_THREADS_PER_SVC_QUEUE_LIMIT
|
465 kumpf 1.103 ## as set in pegasus/src/Pegasus/Common/MessageQueueService.cpp. If the
466 ## specified value is out of range, MAX_THREADS_PER_SVC_QUEUE_LIMIT is
467 ## used. The default value is MAX_THREADS_PER_SVC_QUEUE_DEFAULT, as
468 ## defined in pegasus/src/Pegasus/Common/MessageQueueService.cpp.
|
469 jim.wunderlich 1.98 ##
470 ## Label Current value
471 ## -------------------------------------- -------------
472 ## MAX_THREADS_PER_SVC_QUEUE_LIMIT 5000
473 ## MAX_THREADS_PER_SVC_QUEUE_DEFAULT 5
|
474 jim.wunderlich 1.97 ##
475 ##
476
477 ifdef PEGASUS_MAX_THREADS_PER_SVC_QUEUE
478 DEFINES += -DMAX_THREADS_PER_SVC_QUEUE=$(PEGASUS_MAX_THREADS_PER_SVC_QUEUE)
479 endif
480
|
481 jim.wunderlich 1.99 ##############################################################################
|
482 kumpf 1.140 ##
|
483 jim.wunderlich 1.99 ## PEGASUS_INDICATIONS_Q_THRESHOLD
484 ##
485 ## Controls if indications providers are stalled if the indications
486 ## service queue is too large.
487 ##
|
488 jim.wunderlich 1.100 ## defaults to not set.
|
489 jim.wunderlich 1.99 ##
490 ## It can be set to any positive value.
491 ##
|
492 jim.wunderlich 1.100 ## If not set providers are never stalled. This implies that the
|
493 jim.wunderlich 1.99 ## indications service queue may become as large as neccesary to hold all
494 ## the indicaitons generated.
495 ##
|
496 jim.wunderlich 1.100 ## If set to any value then providers are stalled by forcing them to sleep
|
497 jim.wunderlich 1.99 ## when they try to deliver an indication and the indications service queue
498 ## exceeds this value. They are resumed when the queue count falls 10 percent
|
499 kumpf 1.140 ## below this value.
|
500 jim.wunderlich 1.99 ##
501 ## Stall and resume log entries are made to inform the administrator
502 ## the condition has occured.
503 ##
504 ## WARNING: This also affects the Out of Process Providers (OOP Providers)
505 ## The OOP Providers use two one way pipes for communication.
506 ## By stalling the Provider this prevents the pipe from being read
507 ## which will cause the pipe to fill up and the remote side will block.
508 ## OOP Prividers mix indications and operations on these two pipes.
509 ## This means the operations will also be blocked as a side effect of
510 ## the indications being stalled.
|
511 kumpf 1.140 ##
|
512 jim.wunderlich 1.99 ##
513
514 ifdef PEGASUS_INDICATIONS_Q_THRESHOLD
515 DEFINES += -DPEGASUS_INDICATIONS_Q_THRESHOLD=$(PEGASUS_INDICATIONS_Q_THRESHOLD)
516 endif
517
|
518 jim.wunderlich 1.97
|
519 kumpf 1.87 # Allow PEGASUS_ASSERT statements to be disabled.
520 ifdef PEGASUS_NOASSERTS
521 DEFINES += -DNDEBUG
522 endif
523
|
524 mday 1.40 # do not compile trace code. sometimes it causes problems debugging
525 ifdef PEGASUS_REMOVE_TRACE
|
526 david.dillard 1.65 DEFINES += -DPEGASUS_REMOVE_TRACE
|
527 mday 1.40 endif
528
|
529 marek 1.167 # PEP 315
530 # Control whether compile with or without method entertexit trace code.
531 # A value other than 'true' or 'false' will cause a make error.
532 ifdef PEGASUS_REMOVE_METHODTRACE
533 ifeq ($(PEGASUS_REMOVE_METHODTRACE),true)
534 DEFINES += -DPEGASUS_REMOVE_METHODTRACE
535 else
536 ifneq ($(PEGASUS_REMOVE_METHODTRACE),false)
537 $(error PEGASUS_REMOVE_METHODTRACE ($(PEGASUS_REMOVE_METHODTRACE)) invalid, must be true or false)
538 endif
539 endif
540 endif
541
|
542 chuck 1.47 # PEP 161
543 # Control whether utf-8 filenames are supported by the repository
544 ifdef PEGASUS_SUPPORT_UTF8_FILENAME
|
545 david.dillard 1.65 DEFINES += -DPEGASUS_SUPPORT_UTF8_FILENAME
|
546 chuck 1.47
|
547 david.dillard 1.65 # Control whether utf-8 filenames in the repository are escaped
548 ifdef PEGASUS_REPOSITORY_ESCAPE_UTF8
549 DEFINES += -DPEGASUS_REPOSITORY_ESCAPE_UTF8
550 endif
|
551 chuck 1.47 endif
552
|
553 kumpf 1.49 #
554 # PEP 142
555 # The following flag need to be set to enable
556 # user group authorization functionality.
557 #
558 ifdef PEGASUS_ENABLE_USERGROUP_AUTHORIZATION
|
559 david.dillard 1.65 DEFINES += -DPEGASUS_ENABLE_USERGROUP_AUTHORIZATION
|
560 kumpf 1.49 endif
561
|
562 karl 1.159 ############################################################################
563 #
564 # PEGASUS_ENABLE_CQL and PEGASUS_DISABLE_CQL
565 # Set to enable CQL processor in indication subscriptions and query execution
566 # PEGASUS_DISABLE_CQL (PEP 193) has been depracated. New use model is:
567 #
568 # Use PEGASUS_ENABLE_CQL=true to enable compilation of CQL functions.
|
569 chuck 1.67 #
|
570 karl 1.159 # Use PEGASUS_ENABLE_CQL=false to disable compilation of CQL functions.
|
571 chuck 1.67 #
|
572 karl 1.159 # Default is PEGASUS_ENABLE_CQL=true if not defined external to config.mak
573 #
574
|
575 chuck 1.67 ifdef PEGASUS_DISABLE_CQL
|
576 carson.hovey 1.160 $(error PEGASUS_DISABLE_CQL has been deprecated. Please use PEGASUS_ENABLE_CQL=[true/false])
|
577 karl 1.159 endif
578
579 ifndef PEGASUS_ENABLE_CQL
580 # Default is true. CQL is enabled normally on all platforms unless specifically defined
581 PEGASUS_ENABLE_CQL=true
582 endif
583
584 ifeq ($(PEGASUS_ENABLE_CQL),true)
585 DEFINES += -DPEGASUS_ENABLE_CQL
586 else
587 ifneq ($(PEGASUS_ENABLE_CQL),false)
588 $(error PEGASUS_ENABLE_CQL ($(PEGASUS_ENABLE_CQL)) invalid, must be true or false)
589 endif
|
590 chuck 1.67 endif
591
|
592 karl 1.159 ############################################################################
|
593 kumpf 1.68 #
|
594 karl 1.159 # PEGASUS_OVERRIDE_PRODUCT_ID
|
595 kumpf 1.68 # PEP 186
596 # Allow override of product name/version/status. A file
597 # pegasus/src/Pegasus/Common/ProductVersion.h must exist when this
598 # flag is defined.
599 #
600 ifdef PEGASUS_OVERRIDE_PRODUCT_ID
601 DEFINES += -DPEGASUS_OVERRIDE_PRODUCT_ID
602 endif
603
|
604 kumpf 1.71 #
|
605 kumpf 1.106 # PEP 72
606 # Allow Out-of-Process Providers to be disabled by default
607 #
|
608 jim.wunderlich 1.113 ifdef PEGASUS_DEFAULT_ENABLE_OOP
609 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
610 DEFINES += -DPEGASUS_DEFAULT_ENABLE_OOP
|
611 jim.wunderlich 1.111 else
|
612 jim.wunderlich 1.113 ifneq ($(PEGASUS_DEFAULT_ENABLE_OOP),false)
613 $(error PEGASUS_DEFAULT_ENABLE_OOP ($(PEGASUS_DEFAULT_ENABLE_OOP)) invalid, must be true or false)
|
614 kumpf 1.140 endif
|
615 jim.wunderlich 1.111 endif
|
616 kumpf 1.106 endif
617
618 #
|
619 mateus.baur 1.130 # Allow to define the default value for the Provider User Context
620 # property as REQUESTOR.
621 # If is set and true use REQUESTOR
622 # If is not set or false use PRIVILEGED
623 #
624 ifdef PEGASUS_DEFAULT_USERCTXT_REQUESTOR
625 ifeq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),true)
626 DEFINES += -DPEGASUS_DEFAULT_USERCTXT_REQUESTOR
627 else
628 ifneq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),false)
629 $(error PEGASUS_DEFAULT_USERCTXT_REQUESTOR ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR)) invalid, must be true or false)
|
630 kumpf 1.140 endif
|
631 mateus.baur 1.130 endif
632 endif
633
634 #
|
635 kumpf 1.71 # PEP 197
636 # Allow the Provider User Context feature to be disabled.
637 #
|
638 kumpf 1.74 ifdef PEGASUS_DISABLE_PROV_USERCTXT
|
639 kumpf 1.71 DEFINES += -DPEGASUS_DISABLE_PROV_USERCTXT
|
640 kumpf 1.74 endif
|
641 kumpf 1.71
|
642 h.sterling 1.89 # Bug 2147
643 # Allow local domain socket usage to be disabled.
644 ifdef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
645 DEFINES += -DPEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
646 endif
647
|
648 chip 1.76 # PEP 211
649 # Controls object normalization support.
650 ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
651 DEFINES += -DPEGASUS_ENABLE_OBJECT_NORMALIZATION
652 endif
653
|
654 a.dunfey 1.125 # PEP 233
655 # Controls support for EmbeddedInstance properties
656 # and parameters
|
657 a.dunfey 1.129 ifndef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
658 PEGASUS_EMBEDDED_INSTANCE_SUPPORT = true
659 endif
660
661 ifeq ($(PEGASUS_EMBEDDED_INSTANCE_SUPPORT), true)
662 DEFINES += -DPEGASUS_EMBEDDED_INSTANCE_SUPPORT
663 else
664 ifneq ($(PEGASUS_EMBEDDED_INSTANCE_SUPPORT), false)
665 $(error PEGASUS_EMBEDDED_INSTANCE_SUPPORT ($(PEGASUS_EMBEDDED_INSTANCE_SUPPORT)) invalid, must be true or false)
|
666 a.dunfey 1.125 endif
667 endif
668
|
669 a.dunfey 1.129
|
670 kumpf 1.80 # Allow ExecQuery functionality to be enabled
671 ifndef PEGASUS_ENABLE_EXECQUERY
672 DEFINES += -DPEGASUS_DISABLE_EXECQUERY
673 endif
674
|
675 yi.zhou 1.85 # Allow System Log Handler to be enabled
676 ifdef PEGASUS_ENABLE_SYSTEM_LOG_HANDLER
677 DEFINES += -DPEGASUS_ENABLE_SYSTEM_LOG_HANDLER
678 endif
679
680 # Allow Email Handler to be enabled
681 ifdef PEGASUS_ENABLE_EMAIL_HANDLER
682 DEFINES += -DPEGASUS_ENABLE_EMAIL_HANDLER
683 endif
|
684 kumpf 1.49
|
685 h.sterling 1.109 # Allow qualifiers to be disabled for instance operations
686 ifdef PEGASUS_DISABLE_INSTANCE_QUALIFIERS
687 DEFINES += -DPEGASUS_DISABLE_INSTANCE_QUALIFIERS
688 endif
689
|
690 yi.zhou 1.108 # Controls snmp indication handler to use NET-SNMP to deliver trap
691 ifdef PEGASUS_USE_NET_SNMP
692 DEFINES += -DPEGASUS_USE_NET_SNMP
693 endif
694
|
695 denise.eckstein 1.120 ifdef PEGASUS_HAS_SSL
|
696 sushma.fernandes 1.152 DEFINES += -DPEGASUS_HAS_SSL
697
698 # Enable SSL Random file by default.
699 ifndef PEGASUS_USE_SSL_RANDOMFILE
700 PEGASUS_USE_SSL_RANDOMFILE = true
701 endif
702
703 # Allow SSL Random file functionality to be optionally disabled.
704 ifdef PEGASUS_USE_SSL_RANDOMFILE
705 ifeq ($(PEGASUS_USE_SSL_RANDOMFILE), true)
706 DEFINES += -DPEGASUS_SSL_RANDOMFILE
707 else
708 ifneq ($(PEGASUS_USE_SSL_RANDOMFILE), false)
709 $(error PEGASUS_USE_SSL_RANDOMFILE\
710 ($(PEGASUS_USE_SSL_RANDOMFILE)) invalid, \
711 must be true or false)
712 endif
713 endif
714 endif
|
715 kumpf 1.145
716 ifndef OPENSSL_COMMAND
|
717 denise.eckstein 1.147 ifdef OPENSSL_BIN
718 OPENSSL_COMMAND = $(OPENSSL_BIN)/openssl
719 else
720 OPENSSL_COMMAND = openssl
721 endif
|
722 kumpf 1.145 endif
723 ifndef OPENSSL_SET_SERIAL_SUPPORTED
724 ifneq (, $(findstring 0.9.6, $(shell $(OPENSSL_COMMAND) version)))
725 OPENSSL_SET_SERIAL_SUPPORTED = false
726 else
727 OPENSSL_SET_SERIAL_SUPPORTED = true
728 endif
|
729 denise.eckstein 1.120 endif
|
730 sushma.fernandes 1.123
|
731 kumpf 1.145 # Enable CRL verification
732 ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
733 PEGASUS_ENABLE_SSL_CRL_VERIFICATION = true
734 endif
|
735 sushma.fernandes 1.123
|
736 kumpf 1.145 # Check for Enable SSL CRL verification
737 ifdef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
738 ifeq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), true)
739 DEFINES += -DPEGASUS_ENABLE_SSL_CRL_VERIFICATION
740 else
741 ifneq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), false)
742 $(error PEGASUS_ENABLE_SSL_CRL_VERIFICATION\
743 ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION)) invalid, \
744 must be true or false)
745 endif
|
746 sushma.fernandes 1.123 endif
747 endif
748 endif
|
749 denise.eckstein 1.120
|
750 jim.wunderlich 1.101 #
|
751 yi.zhou 1.134 # PEP 258
|
752 kumpf 1.153 # Allow Audit Logger to be disabled. It is enabled by default.
|
753 yi.zhou 1.134 #
|
754 kumpf 1.153
755 ifndef PEGASUS_ENABLE_AUDIT_LOGGER
756 PEGASUS_ENABLE_AUDIT_LOGGER = true
757 endif
758
759 ifdef PEGASUS_ENABLE_AUDIT_LOGGER
760 ifeq ($(PEGASUS_ENABLE_AUDIT_LOGGER),true)
761 DEFINES += -DPEGASUS_ENABLE_AUDIT_LOGGER
762 else
763 ifneq ($(PEGASUS_ENABLE_AUDIT_LOGGER),false)
764 $(error PEGASUS_ENABLE_AUDIT_LOGGER \
765 ($(PEGASUS_ENABLE_AUDIT_LOGGER)) invalid, must be true or false)
766 endif
767 endif
768 endif
769
770 # Check for use of deprecated variable
|
771 yi.zhou 1.134 ifdef PEGASUS_DISABLE_AUDIT_LOGGER
|
772 kumpf 1.153 $(error The PEGASUS_DISABLE_AUDIT_LOGGER variable is deprecated. \
773 Use PEGASUS_ENABLE_AUDIT_LOGGER=false instead)
|
774 yi.zhou 1.134 endif
775
|
776 dave.sudlik 1.142
777 #
778 # PEP 291
779 # Enable IPv6 support
780 #
|
781 venkat.puvvada 1.149
|
782 dave.sudlik 1.142 ifndef PEGASUS_ENABLE_IPV6
783 PEGASUS_ENABLE_IPV6 = true
784 endif
785
786 # Check for Enable IPv6 support
787 ifdef PEGASUS_ENABLE_IPV6
788 ifeq ($(PEGASUS_ENABLE_IPV6),true)
789 DEFINES += -DPEGASUS_ENABLE_IPV6
790 else
791 ifneq ($(PEGASUS_ENABLE_IPV6),false)
792 $(error PEGASUS_ENABLE_IPV6 ($(PEGASUS_ENABLE_IPV6)) \
793 invalid, must be true or false)
794 endif
795 endif
796 endif
797
|
798 venkat.puvvada 1.149 # Verify Test IPv6 support
799 # If PEGASUS_ENABLE_IPV6 is defined and PEGASUS_TEST_IPV6 is not defined, we set
800 # PEGASUS_TEST_IPV6 to the same value as PEGASUS_ENABLE_IPV6.
801 # You can explicitly set PEGASUS_TEST_IPV6 to false if you don't want to run the
802 # IPv6 tests (for example, on an IPv4 system that is running an IPv6-enabled
803 # version of Pegasus).
804 #
805 ifdef PEGASUS_TEST_IPV6
806 ifneq ($(PEGASUS_TEST_IPV6),true)
807 ifneq ($(PEGASUS_TEST_IPV6),false)
808 $(error PEGASUS_TEST_IPV6 ($(PEGASUS_TEST_IPV6)) \
809 invalid, must be true or false)
810 endif
811 endif
812 else
|
813 venkat.puvvada 1.150 PEGASUS_TEST_IPV6 = $(PEGASUS_ENABLE_IPV6)
|
814 venkat.puvvada 1.149 endif
815
|
816 yi.zhou 1.163 #
817 # PEP 322
818 # Allow tracking generated indications data to be disabled. It is enabled
819 # by default.
820 #
821
822 ifndef PEGASUS_ENABLE_INDICATION_COUNT
823 PEGASUS_ENABLE_INDICATION_COUNT = true
824 endif
825
826 ifdef PEGASUS_ENABLE_INDICATION_COUNT
827 ifeq ($(PEGASUS_ENABLE_INDICATION_COUNT),true)
828 DEFINES += -DPEGASUS_ENABLE_INDICATION_COUNT
829 else
830 ifneq ($(PEGASUS_ENABLE_INDICATION_COUNT),false)
831 $(error PEGASUS_ENABLE_INDICATION_COUNT \
832 ($(PEGASUS_ENABLE_INDICATION_COUNT)) invalid, must be true or false)
833 endif
834 endif
835 endif
836
|
837 karl 1.151 ############################################################################
|
838 yi.zhou 1.134 #
|
839 jim.wunderlich 1.101 # PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP
840 #
|
841 karl 1.167.4.1.4.3 # PEGASUS_DISABLE_SLP has been deprecated. New use model is:
|
842 jim.wunderlich 1.101 #
|
843 jim.wunderlich 1.112 # Use PEGASUS_ENABLE_SLP=true to enable compilation of SLP functions.
844 #
|
845 kumpf 1.140 # Use PEGASUS_ENABLE_SLP=false to disable compilation of SLP functions.
|
846 jim.wunderlich 1.101 #
847 # NOTE. Effective with Bug # 2633 some platforms enable SLP.
|
848 karl 1.75 # To see which platforms look for platform make files that set
|
849 kumpf 1.140 # the variable PEGASUS_ENABLE_SLP.
|
850 jim.wunderlich 1.101 #
851 #
|
852 jim.wunderlich 1.112
|
853 karl 1.39 ifdef PEGASUS_ENABLE_SLP
|
854 jim.wunderlich 1.101 ifdef PEGASUS_DISABLE_SLP
855 $(error Conflicting defines PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP both set)
856 endif
|
857 jim.wunderlich 1.112 endif
858
859 ifdef PEGASUS_DISABLE_SLP
860 $(error PEGASUS_DISABLE_SLP has been deprecated. Please use PEGASUS_ENABLE_SLP=[true/false] )
861
862 PEGASUS_ENABLE_SLP=false
863
864 endif
865
866 ifdef PEGASUS_ENABLE_SLP
867 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
868 david.dillard 1.65 DEFINES += -DPEGASUS_ENABLE_SLP
|
869 jim.wunderlich 1.112 else
870 ifneq ($(PEGASUS_ENABLE_SLP),false)
871 $(error PEGASUS_ENABLE_SLP ($(PEGASUS_ENABLE_SLP)) invalid, must be true or false)
|
872 kumpf 1.140 endif
|
873 jim.wunderlich 1.112 endif
|
874 karl 1.39 endif
|
875 karl 1.36
|
876 jim.wunderlich 1.121
877 ############################################################################
878 #
879 # PEGASUS_USE_OPENSLP
|
880 karl 1.167.4.1.4.3
881 ## NOTE: This variable has been deprecated and superceeded by the use of
882 ## PEGASUS_USE_EXTERNAL_SLP. The use of this variable may be
883 ## removed from Pegasus in future releases. It is converted to the
884 ## PEGASUS_USE_EXTERNAL_SLP variable in the following function.
885 ## Do not allow PEGASUS_USE_EXTERNAL_SLP if PEGASUS_ENABLE_SLP not set and
886 ## insure that PEGASUS_USE_OPENSLP and PEGASUS_USE_EXTERNAL_SLP are not used
887 ## simultaneously
|
888 jim.wunderlich 1.121 #
889 # Environment variable to set openslp as SLP environment to use
890 # for SLP Directory and User Agents.
891 #
892 # Allows enabling use of openslp interfaces for slp instead of the
893 # internal pegasus slp agent. Note that this does not disable the
894 # compilation of the internal agent code, etc. However, it assumes
895 # openslp is installed on the platform and changes the interfaces
|
896 karl 1.167.4.1.4.3 # to match this.
|
897 jim.wunderlich 1.121 #
898 # Use this variable in conjunction with PEGASUS_OPENSLP_HOME
|
899 kumpf 1.140 # to enable OpenSlp as the slp implementation.
|
900 jim.wunderlich 1.121 #
901 # NOTE that it has no affect if the PEGASUS_ENABLE_SLP etc. flags are not set.
902 #
903
904 ifdef PEGASUS_USE_OPENSLP
|
905 karl 1.167.4.1.4.3 ifdef PEGASUS_USE_EXTERNAL_SLP
906 $(error Both PEGASUS_USE_OPENSLP and PEGASUS_USE_EXTERNAL_SLP defined. \
907 Please use PEGASUS_USE_EXTERNAL_SLP)
908 endif
|
909 mike 1.167.4.1 ifeq ($(PEGASUS_USE_OPENSLP),true)
910 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
911 karl 1.167.4.1.4.3 DEFINES += -DPEGASUS_USE_EXTERNAL_SLP=1
|
912 karl 1.167.4.1.4.4 PEGASUS_USE_EXTERNAL_SLP_TYPE=1
|
913 jim.wunderlich 1.121 else
|
914 karl 1.167.4.1.4.3 $(error PEGASUS_USE_OPENSLP defined but PEGASUS_ENABLE_SLP is not true. \
915 Please correct this inconsistency)
|
916 jim.wunderlich 1.121 endif
|
917 mike 1.167.4.1 else
918 ifneq ($(PEGASUS_USE_OPENSLP), false)
919 $(error PEGASUS_USE_OPENSLP \
920 ($(PEGASUS_USE_OPENSLP)) \
921 invalid, must be true or false)
922 endif
923 endif
|
924 jim.wunderlich 1.121 endif
925
|
926 karl 1.167.4.1.4.3 #########################################################################
|
927 dave.sudlik 1.135 # PEP 267
928 # SLP reregistration support.
929 # PEGASUS_SLP_REG_TIMEOUT is defined as the SLP registration timeout
930 # interval, in minutes.
931 ifdef PEGASUS_SLP_REG_TIMEOUT
932 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
933 karl 1.167.4.1.4.3 DEFINES += -DPEGASUS_SLP_REG_TIMEOUT=$(PEGASUS_SLP_REG_TIMEOUT)
|
934 dave.sudlik 1.135 else
|
935 karl 1.167.4.1.4.3 $(error PEGASUS_SLP_REG_TIMEOUT defined but PEGASUS_ENABLE_SLP is not true. \
936 Please correct this inconsistency)
|
937 dave.sudlik 1.135 endif
938 endif
|
939 jim.wunderlich 1.121
940 ############################################################################
941 #
|
942 karl 1.167.4.1.4.3 # PEGASUS_USE_EXTERNAL_SLP
943
944 # Environment variable to set an external slp implementation as the SLP
945 # environment to use for SLP Directory Agents.
946
947 # This allows setting any one of several possible external SLP SAs as the
948 # interface for the SLP provider to communicate with in managing SLP templates
949 # in place of the internal SLP agent provided with Pegasus.
950 # Note: This does not disable the compilation of the internal agent code since
951 # this is used for the SLP UA defined with the pegasus client.
952 # Pegasus assumes that the external SLP defined is installed on the platform
953 # and running when pegasus is started. It changes the interfaces from the SLP
954 # provider to match the defined SLP implementation.
955
956 # This environment variable superceedes the use of PEGASUS_USE_OPENSLP since
957 # openslp is considered one of the valid external SLP environments usable by
958 # pegasus.
959
960 # The variable uses the value component to define a name for the external SLP
961 # environment that must match one of the names defined below.
962
963 karl 1.167.4.1.4.3 # This variable is not allowed if the PEGASUS_ENABLE_SLP flag is not set.
964
965 # Allow only predefined string values for the variable corresponding
966 # to external slp types that pegasus knows.
967 # Valid types are openslp (1) and solarisslp (2)
968 EXTERNAL_SLP_TYPES = openslp solarisslp
969
970 ifdef PEGASUS_USE_EXTERNAL_SLP
971 ifeq ($(PEGASUS_ENABLE_SLP),true)
972 ifeq ($(PEGASUS_USE_EXTERNAL_SLP),openslp)
973 DEFINES += -DPEGASUS_USE_EXTERNAL_SLP_TYPE=1
974 else
975 ifeq ($(PEGASUS_USE_EXTERNAL_SLP),solarisslp)
976 DEFINES += -DPEGASUS_USE_EXTERNAL_SLP_TYPE=2
977 else
978 $(error PEGASUS_USE_EXTERNAL_SLP value ($(PEGASUS_USE_EXTERNAL_SLP)) \
979 invalid. It must be one of valid SLP external types \
980 ($(EXTERNAL_SLP_TYPES)) )
981 endif
982 endif
983 endif
984 karl 1.167.4.1.4.3 endif
985
986 ############################################################################
987 #
|
988 jim.wunderlich 1.121 # PEGASUS_OPENSLP_HOME
989 #
|
990 karl 1.167.4.1.4.3 # PEGASUS_OPENSLP_HOME superceeded by PEGASUS_OPEN_EXTERNAL_SLP_HOME. If
991 # PEGASUS_OPENSLP_HOME is encountered it will create PEGASUS_OPEN_EXTERNAL_SLP_HOME
992 #
|
993 jim.wunderlich 1.121 # Environment variable to set home location for OpenSLP include and library
|
994 kumpf 1.140 # files if they are located somewhere other than /usr/include and /usr/lib.
|
995 jim.wunderlich 1.121 #
996 # PEGASUS_USE_OPENSLP must also be defined for this environment variable
997 # to have any effect.
998 #
|
999 kumpf 1.140 # This is the directory level within which both the include and lib
1000 # directories holding the OpenSLP files will be found.
|
1001 jim.wunderlich 1.121 #
|
1002 kumpf 1.140 # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
|
1003 jim.wunderlich 1.121 # then this environment variable should be set to /opt/OpenSLP.
1004 #
1005
|
1006 karl 1.167.4.1.4.3 ifdef PEGASUS_OPENSLP_HOME
1007 ifdef PEGASUS_OPEN_EXTERNAL_SLP_HOME
1008 $(error Both PEGASUS_OPENSLP_HOME and PEGASUS_OPEN_EXTERNAL_SLP_HOME defined. \
1009 Please use PEGASUS_OPEN_EXTERNAL_SLP_HOME)
1010 else
1011 PEGASUS_EXTERNAL_SLP_HOME=$(PEGASUS_OPENSLP_HOME)
1012 endif
1013 endif
1014 ############################################################################
1015 #
1016 # PEGASUS_EXTERNAL_SLP_HOME
1017 #
1018 # Environment variable to set home location for External SLP include and library
1019 # files if they are located somewhere other than /usr/include and /usr/lib.
1020 #
1021 # This variable superceeds PEGASUS_OPENSLP_HOME to match the use of
1022 # PEGASUS_USE_EXTERNAL_SLP variable.
1023 #
1024 # PEGASUS_USE_EXTERNAL_SLP must also be defined for this environment variable
1025 # to have any effect.
1026 #
1027 karl 1.167.4.1.4.3 # This is the directory level within which both the include and lib
1028 # directories holding the OpenSLP files will be found.
1029 #
1030 # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
1031 # then this environment variable should be set to /opt/OpenSLP.
1032 #
|
1033 jim.wunderlich 1.121
|
1034 karl 1.167.4.1.4.3 ############################################################################
|
1035 sushma.fernandes 1.114 #
|
1036 kumpf 1.140 # Enable this flag to allow the handshake to continue regardless of verification result
|
1037 sushma.fernandes 1.114 #
1038 ifdef PEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
1039 DEFINES += -DPEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
1040 endif
1041
|
1042 karl 1.151 ############################################################################
1043 #
1044 # PEGASUS_ENABLE_INTEROP_PROVIDER
1045 # Enables the interop provider AND the server profile.
1046 # initially this was activated by setting either the perfinst or slp enable
1047 # flags. This allows activating this function without any either perfinst or
1048 # slp enabled. Note that if either of these are enabled, this funtion is also
1049 # enabled
1050
1051 ## if either slp or perfinst are enabled and this is false, flag error
1052 ## This gets messy because should account for both postive and negative on
1053 ## interop so we don't get multiples.
1054
1055 ifdef PEGASUS_ENABLE_SLP
1056 ifeq ($(PEGASUS_ENABLE_SLP),true)
1057 ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1058 PEGASUS_ENABLE_INTEROP_PROVIDER = true
1059 else
1060 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1061 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if SLP enabled)
1062 endif
1063 karl 1.151 endif
1064 endif
1065 endif
1066
1067 ## if PERFINST enabled, set to force interop.
1068 ifndef PEGASUS_DISABLE_PERFINST
1069 ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1070 PEGASUS_ENABLE_INTEROP_PROVIDER = true
1071 else
1072 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1073 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if PERFINST enabled)
1074 endif
1075 endif
1076 endif
1077
1078 ifdef PEGASUS_ENABLE_INTEROP_PROVIDER
1079 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),true)
1080 DEFINES += -DPEGASUS_ENABLE_INTEROP_PROVIDER
1081 else
1082 ifneq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1083 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true or false)
1084 karl 1.151 endif
1085 endif
1086 endif
1087
|
1088 venkat.puvvada 1.165 #
1089 ## PEP 323, DMTF Indications Profile support, stage 1
1090 #
1091 ifdef PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT
1092 ifeq ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT), true)
1093 ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1094 PEGASUS_ENABLE_INTEROP_PROVIDER = true
1095 else
1096 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1097 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if DMTF Indications profile support is enabled)
1098 endif
1099 endif
1100 DEFINES += -DPEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT
1101 else
1102 ifneq ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT),false)
1103 $(error PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT)) invalid, must be true or false)
1104 endif
1105 endif
1106 endif
|
1107 karl 1.151
1108 ############################################################################
|
1109 karl 1.60 # set PEGASUS_DEBUG into the DEFINES if it exists.
1110 # Note that this flag is the general separator between
1111 # debug compiles and non-debug compiles and controls both
1112 # the use of any debug options on compilers and linkers
1113 # and general debug support that we want to be turned on in
|
1114 chip 1.76 # debug mode.
|
1115 karl 1.60 ifdef PEGASUS_DEBUG
|
1116 david.dillard 1.65 DEFINES += -DPEGASUS_DEBUG
|
1117 kumpf 1.88
1118 # Indications debugging options
1119 ifdef PEGASUS_INDICATION_PERFINST
1120 DEFINES += -DPEGASUS_INDICATION_PERFINST
1121 endif
1122
1123 ifdef PEGASUS_INDICATION_HASHTRACE
1124 DEFINES += -DPEGASUS_INDICATION_HASHTRACE
1125 endif
|
1126 kumpf 1.131
1127 # Setup the conditional compile for client displays.
1128 ifdef PEGASUS_CLIENT_TRACE_ENABLE
1129 DEFINES += -DPEGASUS_CLIENT_TRACE_ENABLE
1130 endif
|
1131 karl 1.60 endif
1132
|
1133 chuck 1.42 # compile in the experimental APIs
|
1134 david.dillard 1.65 DEFINES += -DPEGASUS_USE_EXPERIMENTAL_INTERFACES
|
1135 chuck 1.42
|
1136 kumpf 1.93 # Ensure that the deprecated interfaces are defined in the Pegasus libraries.
1137 # One may wish to disable these interfaces if binary compatibility with
1138 # previous Pegasus releases is not required.
1139 ifndef PEGASUS_DISABLE_DEPRECATED_INTERFACES
1140 DEFINES += -DPEGASUS_USE_DEPRECATED_INTERFACES
1141 endif
1142
|
1143 w.white 1.57 # Set compile flag to control compilation of CIMOM statistics
|
1144 karl 1.73 ifdef PEGASUS_DISABLE_PERFINST
|
1145 marek 1.136 DEFINES += -DPEGASUS_DISABLE_PERFINST
|
1146 w.white 1.57 endif
|
1147 kumpf 1.56
|
1148 karl 1.96 # Set compile flag to control compilation of SNIA Extensions
1149 ifdef PEGASUS_SNIA_EXTENSIONS
|
1150 marek 1.136 DEFINES += -DPEGASUS_SNIA_EXTENSIONS
|
1151 karl 1.96 endif
1152
|
1153 denise.eckstein 1.119 ifdef PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
1154 ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
|
1155 marek 1.136 DEFINES += -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
|
1156 denise.eckstein 1.119 else
1157 ifneq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), false)
1158 $(error PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER \
1159 ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER)) invalid, \
1160 must be true or false)
1161 endif
1162 endif
1163 endif
1164
|
1165 mark.hamzy 1.124 ifdef PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
1166 ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
|
1167 marek 1.136 DEFINES += -DPEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
|
1168 mark.hamzy 1.124 else
1169 ifneq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), false)
1170 $(error PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER \
1171 ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER)) invalid, \
1172 must be true or false)
1173 endif
1174 endif
1175 endif
1176
|
1177 kumpf 1.95 # Allow remote CMPI functionality to be enabled
1178 ifdef PEGASUS_ENABLE_REMOTE_CMPI
|
1179 marek 1.136 DEFINES += -DPEGASUS_ENABLE_REMOTE_CMPI
|
1180 kumpf 1.95 endif
1181
|
1182 kumpf 1.56 ############################################################
1183 #
1184 # Set any vendor-specific compile flags
1185 #
1186 ############################################################
1187
1188 ifdef PEGASUS_VENDOR_HP
|
1189 david.dillard 1.65 DEFINES+= -DPEGASUS_VENDOR_HP
|
1190 kumpf 1.56 endif
1191
|
1192 chip 1.76
|
1193 karl 1.17 ############################################################
1194 #
1195 # Set up other Make Variables that depend on platform config files
1196 #
1197 ############################################################
1198
1199 # This is temporary until we end up with a better place to
1200 # put this variable
1201 # Makefiles can do directory remove with
1202 # $(RMREPOSITORY) repositoryname
1203 #
1204 RMREPOSITORY = $(RMDIRHIER)
1205
|
1206 w.otsuka 1.63 ifdef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
|
1207 marek 1.136 DEFINES += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
|
1208 w.otsuka 1.62 endif
1209
1210 ifdef PEGASUS_USE_RELEASE_DIRS
|
1211 marek 1.136 DEFINES += -DPEGASUS_USE_RELEASE_DIRS
|
1212 w.otsuka 1.62 endif
|
1213 mday 1.27
|
1214 denise.eckstein 1.110 ifdef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
|
1215 marek 1.136 DEFINES += -DPEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
|
1216 denise.eckstein 1.110 endif
1217
|
1218 kumpf 1.64 # Unless otherwise specified, Pegasus libraries go in $(PEGASUS_HOME)/lib
1219 ifndef PEGASUS_DEST_LIB_DIR
|
1220 david.dillard 1.65 PEGASUS_DEST_LIB_DIR = lib
|
1221 kumpf 1.64 endif
|
1222 mday 1.28
|
1223 gs.keenan 1.77 ifeq ($(OS),VMS)
1224 DEFINES += -DPEGASUS_DEST_LIB_DIR="""$(PEGASUS_DEST_LIB_DIR)"""
1225 else
1226 DEFINES += -DPEGASUS_DEST_LIB_DIR=\"$(PEGASUS_DEST_LIB_DIR)\"
1227 endif
1228
|
1229 w.otsuka 1.79 ################################################################################
1230 ##
|
1231 mike 1.105 ## PEGASUS_CLASS_CACHE_SIZE
1232 ##
1233 ## This environment variable gives the size of the class cache used by
1234 ## the CIM repository. When it is undefined, the size defaults to something
1235 ## relatively small (see src/Pegasus/Repository/CIMRepository.cpp). If
1236 ## defined, it gives the size of the class cache. If it is 0 , the class
1237 ## cache is not defined compiled in at all.
1238 ##
1239 ################################################################################
1240
1241 ifdef PEGASUS_CLASS_CACHE_SIZE
1242 DEFINES += -DPEGASUS_CLASS_CACHE_SIZE=$(PEGASUS_CLASS_CACHE_SIZE)
1243 endif
1244
1245 ################################################################################
1246 ##
|
1247 w.otsuka 1.79 ## Additional build flags passed in through environment variables.
1248 ## These flags are added to the compile/link commands.
1249 ##
1250 ################################################################################
1251
1252 ifdef PEGASUS_EXTRA_CXX_FLAGS
1253 EXTRA_CXX_FLAGS = $(PEGASUS_EXTRA_CXX_FLAGS)
1254 endif
1255
1256 ifdef PEGASUS_EXTRA_C_FLAGS
1257 EXTRA_C_FLAGS = $(PEGASUS_EXTRA_C_FLAGS)
1258 endif
1259
1260 ifdef PEGASUS_EXTRA_LINK_FLAGS
1261 EXTRA_LINK_FLAGS = $(PEGASUS_EXTRA_LINK_FLAGS)
1262 endif
1263
|
1264 mike 1.126 ##==============================================================================
1265 ##
1266 ## By definining PEGASUS_USE_STATIC_LIBRARIES in the environment and STATIC
1267 ## in the Makefile, a static library is produced rather than a shared one.
1268 ## PEGASUS_USE_STATIC_LIBRARIES should be "true" or "false".
1269 ##
1270 ##==============================================================================
1271
1272 ifdef PEGASUS_USE_STATIC_LIBRARIES
1273 ifeq ($(PEGASUS_USE_STATIC_LIBRARIES),true)
1274 else
1275 ifneq ($(PEGASUS_USE_STATIC_LIBRARIES),false)
1276 $(error PEGASUS_USE_STATIC_LIBRARIES ($(PEGASUS_USE_STATIC_LIBRARIES)) invalid, must be true or false)
|
1277 kumpf 1.140 endif
1278 endif
1279 endif
1280
1281 ##==============================================================================
1282 ##
1283 ## PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1284 ##
1285 ## Enables privilege separation support (uses the executor process to
1286 ## perform privileged operations).
1287 ##
1288 ##==============================================================================
1289
1290 ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1291 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1292 DEFINES += -DPEGASUS_ENABLE_PRIVILEGE_SEPARATION
1293 else
1294 ifneq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),false)
1295 $(error PEGASUS_ENABLE_PRIVILEGE_SEPARATION \
1296 ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION)) invalid, must be true or false)
1297 endif
1298 kumpf 1.140 endif
1299
|
1300 kumpf 1.148 ## Defines the user context of the cimservermain process when privilege
|
1301 kumpf 1.140 ## separation is enabled.
|
1302 kumpf 1.148 PEGASUS_CIMSERVERMAIN_USER = cimsrvr
|
1303 kumpf 1.141 DEFINES += -DPEGASUS_CIMSERVERMAIN_USER=\"$(PEGASUS_CIMSERVERMAIN_USER)\"
|
1304 mike 1.126 endif
|
1305 mark.hamzy 1.127
|
1306 kumpf 1.162
1307 ##==============================================================================
1308 ##
1309 ## PEGASUS_ENABLE_PROTOCOL_WSMAN
1310 ##
1311 ## Enables the WS-Management protocol in the CIM Server.
1312 ##
1313 ##==============================================================================
1314
1315 ifndef PEGASUS_ENABLE_PROTOCOL_WSMAN
1316 PEGASUS_ENABLE_PROTOCOL_WSMAN = false
1317 endif
1318
1319 ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
1320 DEFINES += -DPEGASUS_ENABLE_PROTOCOL_WSMAN
1321 else
1322 ifneq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),false)
1323 $(error PEGASUS_ENABLE_PROTOCOL_WSMAN ($(PEGASUS_ENABLE_PROTOCOL_WSMAN)) invalid, must be true or false)
1324 endif
1325 endif
1326
|
1327 mike 1.167.4.1 ##==============================================================================
1328 ##
1329 ## PEGASUS_PAM_AUTHENTICATION
1330 ##
1331 ##==============================================================================
1332
1333 ifdef PEGASUS_PAM_AUTHENTICATION
1334 # Compile in the code required for PAM authentication
1335 # and compile out the code that uses the password file.
1336 DEFINES += -DPEGASUS_PAM_AUTHENTICATION -DPEGASUS_NO_PASSWORDFILE
1337
1338 # Link with libpam only where it is needed.
1339 ifeq ($(HAS_PAM_DEPENDENCY),true)
1340 SYS_LIBS += -lpam
1341 endif
1342 endif
|
1343 kumpf 1.162
|
1344 kumpf 1.140 ##==============================================================================
1345 ##
1346 ## PEGASUS_USE_PAM_STANDALONE_PROC
1347 ##
1348 ##==============================================================================
1349
1350 ifdef PEGASUS_USE_PAM_STANDALONE_PROC
1351 DEFINES += -DPEGASUS_USE_PAM_STANDALONE_PROC
1352 endif
1353
1354 ##==============================================================================
|
1355 mark.hamzy 1.127
1356 ifndef PEGASUS_JAVA_CLASSPATH_DELIMITER
1357 PEGASUS_JAVA_CLASSPATH_DELIMITER = :
1358 endif
|
1359 mark.hamzy 1.132
1360 ifndef PEGASUS_JVM
1361 PEGASUS_JVM = sun
1362 endif
1363 ifeq ($(PEGASUS_JVM),gcj)
1364 PEGASUS_JAVA_COMPILER = gcj -C
1365 PEGASUS_JAVA_JAR = fastjar
1366 PEGASUS_JAVA_INTERPRETER = gij
1367 else
1368 PEGASUS_JAVA_COMPILER = javac -target 1.4 -source 1.4
1369 PEGASUS_JAVA_JAR = jar
1370 PEGASUS_JAVA_INTERPRETER = java
1371 endif
|
1372 dmitry.mikulin 1.155
1373 # Disable client timeouts when we're doing a valgrind build
|
1374 kumpf 1.157 ifdef PEGASUS_TEST_VALGRIND_LOG_DIR
|
1375 dmitry.mikulin 1.156 DEFINES += -DPEGASUS_DISABLE_CLIENT_TIMEOUT -DPEGASUS_TEST_VALGRIND
|
1376 dmitry.mikulin 1.155 endif
1377
|
1378 s.kodali 1.161 ## ======================================================================
1379 ##
1380 ## PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1381 ## This controls allowing the path specified in the Location property of
1382 ## PG_ProviderModule class.
1383 ##
1384 ## Set to "true", It allows the absolute path specified in the Location property
1385 ## of PG_ProviderModule class. Otherwise it does not allow the absolute path.
1386 ## see bug 7289 for background information concerning this config variable.
1387 ##
1388
1389 ifndef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1390 PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE=false
1391 endif
1392
1393 ifdef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1394 ifeq ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE),true)
1395 DEFINES += -DPEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1396 else
1397 ifneq ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE),false)
1398 $(error PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE \
1399 s.kodali 1.161 ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE)) \
1400 invalid, must be true or false)
1401 endif
1402 endif
1403 endif
1404
|