1 martin 1.181 #//%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.182 #//
|
3 martin 1.181 #// Licensed to The Open Group (TOG) under one or more contributor license
4 #// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 #// this work for additional information regarding copyright ownership.
6 #// Each contributor licenses this file to you under the OpenPegasus Open
7 #// Source License; you may not use this file except in compliance with the
8 #// License.
|
9 martin 1.182 #//
|
10 martin 1.181 #// Permission is hereby granted, free of charge, to any person obtaining a
11 #// copy of this software and associated documentation files (the "Software"),
12 #// to deal in the Software without restriction, including without limitation
13 #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 #// and/or sell copies of the Software, and to permit persons to whom the
15 #// Software is furnished to do so, subject to the following conditions:
|
16 martin 1.182 #//
|
17 martin 1.181 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
|
19 martin 1.182 #//
|
20 martin 1.181 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.182 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.181 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.182 #//
|
28 martin 1.181 #//////////////////////////////////////////////////////////////////////////
|
29 mike 1.1 ################################################################################
30 ##
31 ## Get external environment variables. Note that all external environment
32 ## variables begin with "PEGASUS_".
33 ##
34 ################################################################################
35
|
36 dl.meetei 1.215 #PEGASUS_ROOT is mandatory currently
37 ifdef PEGASUS_ROOT
38 ifeq ($(wildcard $(PEGASUS_ROOT)),)
39 $(error PEGASUS_ROOT = $(PEGASUS_ROOT) is incorrect, \
40 Did you meant to set it to $(CURDIR)?)
41 endif
42 ROOT = $(subst \,/,$(PEGASUS_ROOT))
43 else
44 $(error PEGASUS_ROOT environment variable undefined)
|
45 konrad.r 1.55 endif
46
|
47 dl.meetei 1.215
|
48 denise.eckstein 1.61 ifdef PEGASUS_ENVVAR_FILE
|
49 david.dillard 1.65 include $(PEGASUS_ENVVAR_FILE)
|
50 denise.eckstein 1.61 else
|
51 david.dillard 1.65 include $(ROOT)/env_var.status
|
52 denise.eckstein 1.61 endif
|
53 konrad.r 1.55
|
54 mike 1.2 ifdef PEGASUS_HOME
|
55 david.dillard 1.65 HOME_DIR = $(subst \,/,$(PEGASUS_HOME))
|
56 mike 1.1 else
|
57 david.dillard 1.65 $(error PEGASUS_HOME environment variable undefined)
|
58 mike 1.1 endif
59
|
60 karl 1.18
|
61 kumpf 1.21 ifdef PEGASUS_TMP
|
62 david.dillard 1.65 TMP_DIR = $(subst \,/,$(PEGASUS_TMP))
|
63 kumpf 1.21 else
|
64 david.dillard 1.65 TMP_DIR = .
|
65 kumpf 1.21 endif
66
|
67 kumpf 1.26 ifdef PEGASUS_DISPLAYCONSUMER_DIR
|
68 david.dillard 1.65 DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_DISPLAYCONSUMER_DIR))
|
69 kumpf 1.26 else
|
70 david.dillard 1.65 DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_HOME))
|
71 kumpf 1.26 endif
72
|
73 aruran.ms 1.102 ifdef PEGASUS_DEBUG
74 PEGASUS_USE_DEBUG_BUILD_OPTIONS = 1
75 endif
76
|
77 dl.meetei 1.214 PLATFORM_FILES=$(wildcard $(ROOT)/mak/platform*.mak)
|
78 karl 1.78 PLATFORM_TEMP=$(subst $(ROOT)/mak/platform_,, $(PLATFORM_FILES))
|
79 jim.wunderlich 1.104 VALID_PLATFORMS=$(subst .mak, , $(PLATFORM_TEMP))
|
80 mike 1.8
81 ifndef PEGASUS_PLATFORM
|
82 david.dillard 1.66 $(error PEGASUS_PLATFORM environment variable undefined. Please set to\
83 one of the following:$(VALID_PLATFORMS))
|
84 mike 1.8 endif
85
|
86 mike 1.1 ################################################################################
|
87 denise.eckstein 1.116 ifeq ($(findstring _GNU, $(PEGASUS_PLATFORM)), _GNU)
|
88 mike 1.118 ifdef CXX
89 GCC_VERSION = $(shell $(CXX) -dumpversion)
90 else
91 GCC_VERSION = $(shell g++ -dumpversion)
92 endif
|
93 denise.eckstein 1.116 else
94 GCC_VERSION =
95 endif
|
96 mike 1.1
|
97 denise.eckstein 1.143 #############################################################################
98 ## As a general rule, the directory structure for the object files mirrors
99 ## the directory structure of the source files. E.g.,
100 ## $PEGASUS_HOME/obj/Pegasus/Common contains the object files for the
101 ## source files in $PEGASUS_ROOT/src/Pegasus/Common. Each source-level
102 ## Makefile includes a DIR value that defines this common path (e.g.,
103 ## Pegasus/Common). In a small number of cases, source files are built
|
104 kumpf 1.183 ## multiple times with difference compile options.
|
105 denise.eckstein 1.143 ## To handle this situation, the ALT_OBJ_DIR variable can be used to
106 ## specify an alternative object directory for use in building the
107 ## objects defined in the Makefile.
108 ##
109
110 ifndef ALT_OBJ_DIR
|
111 s.kodali 1.193 ifeq ($(PEGASUS_INTERNAL_ENABLE_32BIT_PROVIDER_SUPPORT),true)
112 OBJ_DIR = $(HOME_DIR)/obj32/$(DIR)
113 else
|
114 denise.eckstein 1.143 OBJ_DIR = $(HOME_DIR)/obj/$(DIR)
|
115 s.kodali 1.193 endif
|
116 denise.eckstein 1.143 else
|
117 s.kodali 1.193 ifeq ($(PEGASUS_INTERNAL_ENABLE_32BIT_PROVIDER_SUPPORT),true)
118 OBJ_DIR = $(HOME_DIR)/obj/$(ALT_OBJ_DIR)32
119 else
|
120 denise.eckstein 1.143 OBJ_DIR = $(HOME_DIR)/obj/$(ALT_OBJ_DIR)
|
121 s.kodali 1.193 endif
|
122 denise.eckstein 1.143 endif
123
124 #############################################################################
125
|
126 kumpf 1.157 ifdef PEGASUS_TEST_VALGRIND_LOG_DIR
|
127 dmitry.mikulin 1.155 BIN_DIR = $(HOME_DIR)/bin_exe
128 VALGRIND_SCRIPT_BIN_DIR = $(HOME_DIR)/bin
129 else
130 BIN_DIR = $(HOME_DIR)/bin
131 endif
|
132 s.kodali 1.193
133 ifeq ($(PEGASUS_INTERNAL_ENABLE_32BIT_PROVIDER_SUPPORT),true)
134 LIB_DIR = $(HOME_DIR)/lib32
135 else
136 LIB_DIR = $(HOME_DIR)/lib
137 endif
|
138 chuck 1.35
139 # l10n
140 # define the location for the compiled messages
141 MSG_ROOT = $(HOME_DIR)/msg
|
142 kumpf 1.22
|
143 jim.wunderlich 1.90 #############################################################################
|
144 kumpf 1.140 ## The following REPOSITORY_XXX variables are only used within the
145 ## makefiles for building the repository (cimmofl) and running the tests.
|
146 jim.wunderlich 1.90 ## They have no effect on CIMconfig initial startup configuration.
147
148 #
|
149 kumpf 1.22 # define the location for the repository
|
150 jim.wunderlich 1.90 #
151 # NOTE: There is another variable efined in many of the test makefiles
152 # called REPOSITORYDIR. It is a local variable in each of those Makefiles
|
153 kumpf 1.140 # to localally control where the temporay small repository they
|
154 jim.wunderlich 1.90 # build, use and then delete is located. Most of the time it is set to TMP_DIR.
155 #
|
156 jim.wunderlich 1.91
|
157 kumpf 1.22 REPOSITORY_DIR = $(HOME_DIR)
|
158 jim.wunderlich 1.90
159 #
|
160 kumpf 1.140 # WARNING: The REPOSITORY_NAME varible is not used by all the test,
|
161 jim.wunderlich 1.90 # many of them are still hardcoded to "repository". What this means
|
162 kumpf 1.140 # is that you can change the repository name and build it. But you
|
163 jim.wunderlich 1.90 # cannot run the test without many of them failing
164 #
|
165 jim.wunderlich 1.91
|
166 jim.wunderlich 1.81 REPOSITORY_NAME = repository
|
167 jim.wunderlich 1.91
|
168 jim.wunderlich 1.90
|
169 jim.wunderlich 1.81 REPOSITORY_ROOT = $(REPOSITORY_DIR)/$(REPOSITORY_NAME)
170
|
171 kumpf 1.140 # define the repository mode
|
172 h.sterling 1.89 # XML = XML format
173 # BIN = Binary format
|
174 jim.wunderlich 1.81 #
|
175 jim.wunderlich 1.91 ifndef PEGASUS_REPOSITORY_MODE
176 ## set to default value
177 REPOSITORY_MODE = XML
|
178 kumpf 1.140 else
|
179 jim.wunderlich 1.91 ## validate assigned value
180 ifeq ($(PEGASUS_REPOSITORY_MODE),XML)
181 REPOSITORY_MODE = XML
182 else
183 ifeq ($(PEGASUS_REPOSITORY_MODE),BIN)
184 REPOSITORY_MODE = BIN
185 else
186 $(error PEGASUS_REPOSITORY_MODE ($(PEGASUS_REPOSITORY_MODE)) \
187 is invalid. It must be set to either XML or BIN)
188 endif
189 endif
|
190 jim.wunderlich 1.90 endif
191
|
192 jim.wunderlich 1.91
|
193 jim.wunderlich 1.90 ###########################################################################
|
194 mike 1.1
|
195 kumpf 1.23 # The two variables, CIM_SCHEMA_DIR and CIM_SCHEMA_VER,
|
196 chip 1.76 # are used to control the version of the CIM Schema
|
197 kumpf 1.23 # loaded into the Pegasus Internal, InterOp,
198 # root/cimv2 and various test namespaces.
199 #
|
200 chip 1.76 # Update the following two environment variables to
|
201 kumpf 1.23 # change the version.
202
|
203 kumpf 1.37 # The environment variable PEGASUS_CIM_SCHEMA can be used
|
204 chip 1.76 # to change the values of CIM_SCHEMA_DIR, CIM_SCHEMA_VER
|
205 kumpf 1.37 # and ALLOW_EXPERIMENTAL.
206 #
207 # To use the PEGASUS_CIM_SCHEMA variable the Schema mof
208 # files must be placed in the directory
|
209 denise.eckstein 1.115 # $(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
|
210 chip 1.76 #
|
211 kumpf 1.37 # The value of PEGASUS_CIM_SCHEMA must conform to the
212 # following syntax:
213 #
214 # CIM[Prelim]<CIM_SCHEMA_VER>
215 #
|
216 chip 1.76 # The string "Prelim" should be included if the
|
217 kumpf 1.37 # Schema contains "Experimental" class definitions.
218 #
219 # The value of <CIM_SCHEMA_VER> must be the value
|
220 chip 1.76 # of the version string included by the DMTF as
221 # part of the mof file names (e.g, CIM_Core27.mof).
|
222 kumpf 1.37 # Therefore, for example, the value of <CIM_SCHEMA_VER>
223 # for CIM27 Schema directories MUST be 27.
224 #
|
225 chip 1.76 # Examples of valid values of PEGASUS_CIM_SCHEMA
|
226 kumpf 1.37 # include CIMPrelim27, CIM27, CIMPrelim28, and CIM28.
227 #
228 # Note the CIMPrelim271 would NOT be a valid value
229 # for PEGASUS_CIM_SCHEMA because the version string
230 # portion of the mof files (e.g., CIM_Core27.mof) in
231 # the CIMPrelimin271 directory is 27 not 271.
|
232 kumpf 1.23
|
233 gerarda 1.29 # ***** CIM_SCHEMA_DIR INFO ****
234 # If CIM_SCHEMA_DIR changes to use a preliminary schema which
235 # has experimentals make sure and change the path below to appopriate
236 # directory path. Example: CIMPrelim271 is preliminary and has
237 # experimental classes. Since experimental classes exist the -aE
238 # option of the mof compiler needs to be set.
239 # *****
|
240 kumpf 1.37
|
241 karl 1.200 ## Sets default CIM Schema if PEGASUS_CIM_SCHEMA not defined.
242 ## NOTE: If the default below is changed, please update the definition
243 ## of default for this variable in pegasus/doc/BuildAndReleaseOptions.html
|
244 denise.eckstein 1.154 ifndef PEGASUS_CIM_SCHEMA
|
245 karl 1.216 PEGASUS_CIM_SCHEMA=CIM241
|
246 denise.eckstein 1.154 endif
247
248 CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
249 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),)
250 CIM_SCHEMA_VER=
|
251 kumpf 1.37 else
|
252 denise.eckstein 1.154 CIM_SCHEMA_VER=$(patsubst CIM%,%,$(patsubst CIMPrelim%,%,$(PEGASUS_CIM_SCHEMA)))
|
253 kumpf 1.37 endif
254
255 ifneq (, $(findstring Prelim, $(CIM_SCHEMA_DIR)))
|
256 david.dillard 1.65 ALLOW_EXPERIMENTAL = -aE
|
257 gerarda 1.29 else
|
258 david.dillard 1.65 ALLOW_EXPERIMENTAL =
|
259 gerarda 1.29 endif
260
|
261 bob 1.5 LEX = flex
262
|
263 jim.wunderlich 1.94 ## ======================================================================
264 ##
|
265 kumpf 1.140 ## PEGASUS_ENABLE_SORTED_DIFF
|
266 jim.wunderlich 1.94 ## This controls if the DIFFSORT function is used rather than a simple DIFF of
267 ## of the test results files to the static results file.
268 ##
269 ## Set to "true" enables the sorted diffs of results to static results files.
270 ## otherwise results in regular diffs of results to static results files.
|
271 kumpf 1.140 ## see bug 2283 for background information concerning this config variable.
|
272 jim.wunderlich 1.94 ##
273 ## Defaults to true.
274 ##
275 ##
276 ifndef PEGASUS_ENABLE_SORTED_DIFF
277 PEGASUS_ENABLE_SORTED_DIFF=true
278 endif
279
|
280 jim.wunderlich 1.86 ## ========================================================================
|
281 kumpf 1.140 ## DIFFSORT function definition
|
282 jim.wunderlich 1.86 ## Here is an example using the DIFFSORT function:
|
283 kumpf 1.140 ##
|
284 jim.wunderlich 1.86 ## difftest: FORCE
|
285 h.sterling 1.89 ## @ test > result
|
286 jim.wunderlich 1.86 ## @ $(call DIFFSORT,result,standard_result)
|
287 h.sterling 1.89 ## @ $(ECHO) +++++ all test passed
|
288 jim.wunderlich 1.86 ##
289
290 define NL
291
292
293 endef
294
|
295 kumpf 1.140 ifndef FORCE_NOCASE
296
|
297 jim.wunderlich 1.86 DIFFSORT = $(SORT) $(1) > $(1).tmp $(NL) \
298 $(SORT) $(2) > $(2).tmp $(NL) \
299 $(DIFF) $(1).tmp $(2).tmp $(NL) \
300 $(RM) -f $(1).tmp $(NL) \
301 $(RM) -f $(2).tmp $(NL)
302
|
303 marek 1.107 else
304
305 DIFFSORT = $(SORT) -f $(1) > $(1).tmp $(NL) \
306 $(SORT) -f $(2) > $(2).tmp $(NL) \
307 $(DIFF) -i $(1).tmp $(2).tmp $(NL) \
308 $(RM) -f $(1).tmp $(NL) \
309 $(RM) -f $(2).tmp $(NL)
310
311 endif
312
313 DIFFSORTNOCASE = $(SORT) $(1) > $(1).tmp $(NL) \
314 $(SORT) $(2) > $(2).tmp $(NL) \
315 $(DIFF) -i $(1).tmp $(2).tmp $(NL) \
316 $(RM) -f $(1).tmp $(NL) \
317 $(RM) -f $(2).tmp $(NL)
318
|
319 jim.wunderlich 1.104 #
320 # The following is used to define the usage message for MakeFile
321 #
322 # See the pegasus/Makfile for an exampleof its usage.
323 #
324 USAGE = @$(ECHO) " $(1)"
325
|
326 mike 1.8 ################################################################################
327 ##
328 ## Attempt to include a platform configuration file:
329 ##
330 ################################################################################
331
|
332 david.dillard 1.66 PLATFORM_FILE = $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
333 ifneq ($(wildcard $(PLATFORM_FILE)), )
334 include $(PLATFORM_FILE)
335 else
|
336 david.dillard 1.65 $(error PEGASUS_PLATFORM environment variable must be set to one of\
|
337 david.dillard 1.66 the following:$(VALID_PLATFORMS))
|
338 mike 1.8 endif
|
339 karl 1.17
|
340 karl 1.36 ################################################################################
341 ##
342 ## Set up any platform independent compile conditionals by adding them to
343 ## precreated FLAGS parameter.
|
344 chip 1.76 ## Assumes that the basic flags have been setup in FLAGS.
|
345 karl 1.36 ## Assumes that compile time flags are controlled with -D CLI option.
346 ##
347 ################################################################################
|
348 karl 1.17
|
349 kumpf 1.166 ############################################################################
|
350 kumpf 1.183 # OpenPegasus relies on the existence of an external set of libraries to
|
351 kumpf 1.166 # support localized messages. Today, the only supported package is
352 # the International Components for Unicode (ICU) OSS project,
353 # http://oss.software.ibm.com/icu. If PEGASUS_HAS_ICU is true,
354 # OpenPegasus will use the ICU library.
355 #
356 # ICU_INSTALL points to the directory containing the ICU installation.
357 # If set, the OpenPegasus will use this variable to locate the ICU
358 # include files and libraries. If not set, the ICU libraries are expected
359 # to be installed in a directory that is searched by default.
360 #
361 # If PEGASUS_HAS_ICU is not set and ICU_INSTALL is set, the value of
362 # PEGASUS_HAS_ICU will be set to true.
363 ############################################################################
364
365 ifdef PEGASUS_HAS_ICU
366 ifneq ($(PEGASUS_HAS_ICU),true)
367 ifneq ($(PEGASUS_HAS_ICU),false)
368 $(error PEGASUS_HAS_ICU ($(PEGASUS_HAS_ICU)) \
369 invalid, must be true or false)
370 endif
371 endif
372 kumpf 1.166 else
373 ifdef ICU_INSTALL
374 PEGASUS_HAS_ICU = true
375 endif
376 endif
377
378 ifdef PEGASUS_HAS_MESSAGES
379 DEFINES += -DPEGASUS_HAS_MESSAGES
380
381 ifneq ($(PEGASUS_HAS_ICU),true)
382 $(error Support for localized messages in OpenPegasus \
383 requires PEGASUS_HAS_ICU to be true)
384 endif
385 endif
386
|
387 s.kodali 1.188
|
388 kumpf 1.166 ifeq ($(PEGASUS_HAS_ICU),true)
389 DEFINES += -DPEGASUS_HAS_ICU
390
391 ####################################
392 ##
393 ## ICU_ROOT_BUNDLE_LANG if set, specifies the language that the root
394 ## resource bundle will be generated from. Defaults to _en if not set.
395 ## If set, for any directory containing resource bundles, there must
396 ## exist a file name: package($ICU_ROOT_BUNDLE_LANG).txt or the make
397 ## messages target will fail.
398 ##
399 ####################################
400
401 ifdef ICU_ROOT_BUNDLE_LANG
402 MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
403 else
404 MSG_ROOT_SOURCE = _en
405 endif
|
406 kumpf 1.168
407 ifdef ICU_INSTALL
408 MSG_COMPILE = $(ICU_INSTALL)/bin/genrb
409 else
410 MSG_COMPILE = genrb
411 endif
412
413 MSG_FLAGS =
414 MSG_SOURCE_EXT = .txt
415 MSG_COMPILE_EXT = .res
416
417 ifeq ($(OS),linux)
418 CNV_ROOT_CMD = $(BIN_DIR)/cnv2rootbundle
419 else
420 CNV_ROOT_CMD = cnv2rootbundle
421 endif
422
|
423 kumpf 1.169 # The library path option is needed on all link commands with some ICU
424 # builds, because internal ICU library dependencies are resolved
425 # dynamically.
|
426 kumpf 1.168 ifdef ICU_INSTALL
427 ifeq ($(OS),zos)
428 # On z/OS, the -L option must appear before the -o option and
429 # the object (.o) and sidedeck (.x) files in the link command.
430 FLAGS += -L$(ICU_INSTALL)/lib
431 PR_FLAGS += -L$(ICU_INSTALL)/lib
|
432 kumpf 1.169 else
433 EXTRA_LIBRARIES += -L$(ICU_INSTALL)/lib
434 endif
435 endif
436
437 # The ICU include path and library dependencies are restricted to
438 # where they are specifically needed.
439 ifeq ($(HAS_ICU_DEPENDENCY),true)
440 ifdef ICU_INSTALL
441 SYS_INCLUDES += -I$(ICU_INSTALL)/include
442 endif
443
444 ifeq ($(OS),windows)
|
445 kumpf 1.168 EXTRA_LIBRARIES += \
|
446 kumpf 1.169 $(ICU_INSTALL)/lib/icuuc.lib \
447 $(ICU_INSTALL)/lib/icuin.lib \
448 $(ICU_INSTALL)/lib/icudt.lib
|
449 kumpf 1.168 else
|
450 kumpf 1.169 ifeq ($(OS),zos)
451 EXTRA_LIBRARIES += \
|
452 r.kieninger 1.176 $(ICU_INSTALL)/lib/libicui18n$(DYNLIB_SUFFIX) \
453 $(ICU_INSTALL)/lib/libicuuc$(DYNLIB_SUFFIX)
|
454 kumpf 1.169 else
455 EXTRA_LIBRARIES += -licuuc -licui18n
456 ifeq ($(OS),linux)
457 EXTRA_LIBRARIES += -licudata
458 endif
|
459 kumpf 1.168 endif
460 endif
461 endif
|
462 kumpf 1.166 endif
|
463 jim.wunderlich 1.97
464 ################################################################################
465 ##
466 ## PEGASUS_MAX_THREADS_PER_SVC_QUEUE
467 ##
468 ## Controls the maximum number of threads allowed per message service queue.
469 ## It is allowed to range between 1 and MAX_THREADS_PER_SVC_QUEUE_LIMIT
|
470 kumpf 1.103 ## as set in pegasus/src/Pegasus/Common/MessageQueueService.cpp. If the
471 ## specified value is out of range, MAX_THREADS_PER_SVC_QUEUE_LIMIT is
472 ## used. The default value is MAX_THREADS_PER_SVC_QUEUE_DEFAULT, as
473 ## defined in pegasus/src/Pegasus/Common/MessageQueueService.cpp.
|
474 jim.wunderlich 1.98 ##
475 ## Label Current value
476 ## -------------------------------------- -------------
477 ## MAX_THREADS_PER_SVC_QUEUE_LIMIT 5000
478 ## MAX_THREADS_PER_SVC_QUEUE_DEFAULT 5
|
479 jim.wunderlich 1.97 ##
480 ##
481
482 ifdef PEGASUS_MAX_THREADS_PER_SVC_QUEUE
483 DEFINES += -DMAX_THREADS_PER_SVC_QUEUE=$(PEGASUS_MAX_THREADS_PER_SVC_QUEUE)
484 endif
485
|
486 kumpf 1.87 # Allow PEGASUS_ASSERT statements to be disabled.
487 ifdef PEGASUS_NOASSERTS
|
488 marek 1.206 DEFINES += -DNDEBUG -DPEGASUS_NOASSERTS
|
489 kumpf 1.87 endif
490
|
491 mday 1.40 # do not compile trace code. sometimes it causes problems debugging
492 ifdef PEGASUS_REMOVE_TRACE
|
493 david.dillard 1.65 DEFINES += -DPEGASUS_REMOVE_TRACE
|
494 mday 1.40 endif
495
|
496 s.kodali 1.193
497 ifdef PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT
498 PLATFORM_FILE_32 = $(ROOT)/mak/platform_$(PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT).mak
499 ifeq ($(wildcard $(PLATFORM_FILE_32)), )
500 $(error PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT environment variable must be set to one of\
501 the following:$(VALID_PLATFORMS))
502 endif
503 DEFINES += -DPEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT
504 ifdef PEGASUS_PROVIDER_MANAGER_32BIT_LIB_DIR
505 DEFINES += -DPEGASUS_PROVIDER_MANAGER_32BIT_LIB_DIR=\"$(PEGASUS_PROVIDER_MANAGER_32BIT_LIB_DIR)\"
506 endif
507 endif
508
|
509 marek 1.167 # PEP 315
510 # Control whether compile with or without method entertexit trace code.
511 # A value other than 'true' or 'false' will cause a make error.
512 ifdef PEGASUS_REMOVE_METHODTRACE
513 ifeq ($(PEGASUS_REMOVE_METHODTRACE),true)
514 DEFINES += -DPEGASUS_REMOVE_METHODTRACE
515 else
516 ifneq ($(PEGASUS_REMOVE_METHODTRACE),false)
517 $(error PEGASUS_REMOVE_METHODTRACE ($(PEGASUS_REMOVE_METHODTRACE)) invalid, must be true or false)
518 endif
519 endif
520 endif
521
|
522 kumpf 1.173 # Control whether the class definitions in the repository contain elements
523 # propagated from superclass definitions.
524
525 ifndef PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES
526 PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES = false
527 endif
528
529 ifeq ($(PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES),true)
530 DEFINES += -DPEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES
531 else
532 ifneq ($(PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES),false)
533 $(error PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES ($(PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES)) invalid, must be true or false)
534 endif
535 endif
536
|
537 kumpf 1.177 # SQLite repository support
538
539 ifndef PEGASUS_USE_SQLITE_REPOSITORY
540 PEGASUS_USE_SQLITE_REPOSITORY = false
541 endif
542
543 ifeq ($(PEGASUS_USE_SQLITE_REPOSITORY),true)
544 ifeq ($(PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES),true)
545 $(error PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES may not be set to true when PEGASUS_USE_SQLITE_REPOSITORY is true)
546 endif
547 DEFINES += -DPEGASUS_USE_SQLITE_REPOSITORY
548 else
549 ifneq ($(PEGASUS_USE_SQLITE_REPOSITORY),false)
550 $(error PEGASUS_USE_SQLITE_REPOSITORY ($(PEGASUS_USE_SQLITE_REPOSITORY)) invalid, must be true or false)
551 endif
552 endif
553
|
554 chuck 1.47 # PEP 161
|
555 kumpf 1.177 # Control whether utf-8 filenames are supported by the repository.
556 # Note: These options only apply to the file-based repository, not SQLite.
|
557 chuck 1.47 ifdef PEGASUS_SUPPORT_UTF8_FILENAME
|
558 david.dillard 1.65 DEFINES += -DPEGASUS_SUPPORT_UTF8_FILENAME
|
559 chuck 1.47
|
560 david.dillard 1.65 # Control whether utf-8 filenames in the repository are escaped
561 ifdef PEGASUS_REPOSITORY_ESCAPE_UTF8
562 DEFINES += -DPEGASUS_REPOSITORY_ESCAPE_UTF8
563 endif
|
564 chuck 1.47 endif
565
|
566 kumpf 1.49 #
567 # PEP 142
568 # The following flag need to be set to enable
569 # user group authorization functionality.
570 #
571 ifdef PEGASUS_ENABLE_USERGROUP_AUTHORIZATION
|
572 david.dillard 1.65 DEFINES += -DPEGASUS_ENABLE_USERGROUP_AUTHORIZATION
|
573 kumpf 1.49 endif
574
|
575 karl 1.159 ############################################################################
576 #
577 # PEGASUS_ENABLE_CQL and PEGASUS_DISABLE_CQL
578 # Set to enable CQL processor in indication subscriptions and query execution
579 # PEGASUS_DISABLE_CQL (PEP 193) has been depracated. New use model is:
580 #
581 # Use PEGASUS_ENABLE_CQL=true to enable compilation of CQL functions.
|
582 chuck 1.67 #
|
583 karl 1.159 # Use PEGASUS_ENABLE_CQL=false to disable compilation of CQL functions.
|
584 chuck 1.67 #
|
585 karl 1.159 # Default is PEGASUS_ENABLE_CQL=true if not defined external to config.mak
586 #
587
|
588 chuck 1.67 ifdef PEGASUS_DISABLE_CQL
|
589 carson.hovey 1.160 $(error PEGASUS_DISABLE_CQL has been deprecated. Please use PEGASUS_ENABLE_CQL=[true/false])
|
590 karl 1.159 endif
591
592 ifndef PEGASUS_ENABLE_CQL
|
593 kumpf 1.183 # Default is true. CQL is enabled normally on all platforms unless specifically defined
|
594 karl 1.159 PEGASUS_ENABLE_CQL=true
595 endif
596
597 ifeq ($(PEGASUS_ENABLE_CQL),true)
598 DEFINES += -DPEGASUS_ENABLE_CQL
599 else
600 ifneq ($(PEGASUS_ENABLE_CQL),false)
601 $(error PEGASUS_ENABLE_CQL ($(PEGASUS_ENABLE_CQL)) invalid, must be true or false)
602 endif
|
603 chuck 1.67 endif
604
|
605 karl 1.159 ############################################################################
|
606 kumpf 1.68 #
|
607 karl 1.219 # PEGASUS_ENABLE_FQL
608 # The use model is:
609 #
610 # Use PEGASUS_ENABLE_FQL=true to enable compilation of FQL functions.
611 #
612 # Use PEGASUS_ENABLE_FQL=false to disable compilation of FQL functions.
613 #
614 # Default is PEGASUS_ENABLE_FQL=true if not defined external to config.mak
615 #
616
617 ifndef PEGASUS_ENABLE_FQL
618 # Default is true. CQL is enabled normally on all platforms unless specifically defined
619 PEGASUS_ENABLE_FQL=true
620 endif
621
622 ifeq ($(PEGASUS_ENABLE_FQL),true)
623 DEFINES += -DPEGASUS_ENABLE_FQL
624 else
625 ifneq ($(PEGASUS_ENABLE_FQL),false)
626 $(error PEGASUS_ENABLE_FQL ($(PEGASUS_ENABLE_FQL)) invalid, must be true or false)
627 endif
628 karl 1.219 endif
629
630 ############################################################################
631 #
|
632 kumpf 1.183 # PEGASUS_OVERRIDE_PRODUCT_ID
|
633 kumpf 1.68 # PEP 186
634 # Allow override of product name/version/status. A file
635 # pegasus/src/Pegasus/Common/ProductVersion.h must exist when this
636 # flag is defined.
637 #
638 ifdef PEGASUS_OVERRIDE_PRODUCT_ID
639 DEFINES += -DPEGASUS_OVERRIDE_PRODUCT_ID
640 endif
641
|
642 kumpf 1.71 #
|
643 kumpf 1.106 # PEP 72
644 # Allow Out-of-Process Providers to be disabled by default
645 #
|
646 jim.wunderlich 1.113 ifdef PEGASUS_DEFAULT_ENABLE_OOP
647 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
648 DEFINES += -DPEGASUS_DEFAULT_ENABLE_OOP
|
649 jim.wunderlich 1.111 else
|
650 jim.wunderlich 1.113 ifneq ($(PEGASUS_DEFAULT_ENABLE_OOP),false)
651 $(error PEGASUS_DEFAULT_ENABLE_OOP ($(PEGASUS_DEFAULT_ENABLE_OOP)) invalid, must be true or false)
|
652 kumpf 1.140 endif
|
653 jim.wunderlich 1.111 endif
|
654 kumpf 1.106 endif
655
656 #
|
657 mateus.baur 1.130 # Allow to define the default value for the Provider User Context
658 # property as REQUESTOR.
659 # If is set and true use REQUESTOR
660 # If is not set or false use PRIVILEGED
661 #
662 ifdef PEGASUS_DEFAULT_USERCTXT_REQUESTOR
663 ifeq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),true)
664 DEFINES += -DPEGASUS_DEFAULT_USERCTXT_REQUESTOR
665 else
666 ifneq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),false)
667 $(error PEGASUS_DEFAULT_USERCTXT_REQUESTOR ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR)) invalid, must be true or false)
|
668 kumpf 1.140 endif
|
669 mateus.baur 1.130 endif
670 endif
671
672 #
|
673 kumpf 1.71 # PEP 197
674 # Allow the Provider User Context feature to be disabled.
675 #
|
676 kumpf 1.74 ifdef PEGASUS_DISABLE_PROV_USERCTXT
|
677 kumpf 1.71 DEFINES += -DPEGASUS_DISABLE_PROV_USERCTXT
|
678 kumpf 1.74 endif
|
679 kumpf 1.71
|
680 h.sterling 1.89 # Bug 2147
681 # Allow local domain socket usage to be disabled.
682 ifdef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
683 DEFINES += -DPEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
684 endif
685
|
686 chip 1.76 # PEP 211
687 # Controls object normalization support.
688 ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
689 DEFINES += -DPEGASUS_ENABLE_OBJECT_NORMALIZATION
690 endif
691
|
692 kumpf 1.80 # Allow ExecQuery functionality to be enabled
693 ifndef PEGASUS_ENABLE_EXECQUERY
694 DEFINES += -DPEGASUS_DISABLE_EXECQUERY
695 endif
696
|
697 yi.zhou 1.85 # Allow System Log Handler to be enabled
698 ifdef PEGASUS_ENABLE_SYSTEM_LOG_HANDLER
699 DEFINES += -DPEGASUS_ENABLE_SYSTEM_LOG_HANDLER
700 endif
701
702 # Allow Email Handler to be enabled
703 ifdef PEGASUS_ENABLE_EMAIL_HANDLER
704 DEFINES += -DPEGASUS_ENABLE_EMAIL_HANDLER
705 endif
|
706 kumpf 1.49
|
707 h.sterling 1.109 # Allow qualifiers to be disabled for instance operations
708 ifdef PEGASUS_DISABLE_INSTANCE_QUALIFIERS
709 DEFINES += -DPEGASUS_DISABLE_INSTANCE_QUALIFIERS
710 endif
711
|
712 yi.zhou 1.108 # Controls snmp indication handler to use NET-SNMP to deliver trap
|
713 rahul.kumar.singh 1.211 ifdef PEGASUS_USE_NET_SNMP
714 ifeq ($(PEGASUS_USE_NET_SNMP),true)
715 DEFINES += -DPEGASUS_USE_NET_SNMP
716 else
717 ifneq ($(PEGASUS_USE_NET_SNMP),false)
718 $(error PEGASUS_USE_NET_SNMP ($(PEGASUS_USE_NET_SNMP)) invalid, must be true or false)
719 endif
720 endif
|
721 sahana.prabhakar 1.194 endif
722 # Controls snmp indication handler to use NET-SNMP V3 features.
723 ifndef PEGASUS_ENABLE_NET_SNMPV3
|
724 rahul.kumar.singh 1.211 ifeq ($(PEGASUS_USE_NET_SNMP),true)
725 PEGASUS_ENABLE_NET_SNMPV3=true
|
726 sahana.prabhakar 1.194 else
727 PEGASUS_ENABLE_NET_SNMPV3=false
728 endif
729 endif
730
731 ifeq ($(PEGASUS_ENABLE_NET_SNMPV3),true)
|
732 rahul.kumar.singh 1.211 ifneq ($(PEGASUS_USE_NET_SNMP),true)
733 $(error PEGASUS_USE_NET_SNMP should be set to true when PEGASUS_ENABLE_NET_SNMPV3 is true)
|
734 sahana.prabhakar 1.194 endif
735 DEFINES += -DPEGASUS_ENABLE_NET_SNMPV3
736 else
737 ifneq ($(PEGASUS_ENABLE_NET_SNMPV3),false)
738 $(error PEGASUS_ENABLE_NET_SNMPV3 ($(PEGASUS_ENABLE_NET_SNMPV3)) invalid, must be true or false)
739 endif
|
740 yi.zhou 1.108 endif
741
|
742 denise.eckstein 1.120 ifdef PEGASUS_HAS_SSL
|
743 kumpf 1.183 DEFINES += -DPEGASUS_HAS_SSL
|
744 sushma.fernandes 1.152
745 # Enable SSL Random file by default.
746 ifndef PEGASUS_USE_SSL_RANDOMFILE
747 PEGASUS_USE_SSL_RANDOMFILE = true
748 endif
749
750 # Allow SSL Random file functionality to be optionally disabled.
751 ifdef PEGASUS_USE_SSL_RANDOMFILE
752 ifeq ($(PEGASUS_USE_SSL_RANDOMFILE), true)
753 DEFINES += -DPEGASUS_SSL_RANDOMFILE
754 else
755 ifneq ($(PEGASUS_USE_SSL_RANDOMFILE), false)
756 $(error PEGASUS_USE_SSL_RANDOMFILE\
757 ($(PEGASUS_USE_SSL_RANDOMFILE)) invalid, \
758 must be true or false)
759 endif
760 endif
761 endif
|
762 kumpf 1.145
763 ifndef OPENSSL_COMMAND
|
764 denise.eckstein 1.147 ifdef OPENSSL_BIN
765 OPENSSL_COMMAND = $(OPENSSL_BIN)/openssl
766 else
767 OPENSSL_COMMAND = openssl
768 endif
|
769 kumpf 1.145 endif
770 ifndef OPENSSL_SET_SERIAL_SUPPORTED
771 ifneq (, $(findstring 0.9.6, $(shell $(OPENSSL_COMMAND) version)))
772 OPENSSL_SET_SERIAL_SUPPORTED = false
773 else
774 OPENSSL_SET_SERIAL_SUPPORTED = true
775 endif
|
776 denise.eckstein 1.120 endif
|
777 sushma.fernandes 1.123
|
778 kumpf 1.145 # Enable CRL verification
779 ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
780 PEGASUS_ENABLE_SSL_CRL_VERIFICATION = true
781 endif
|
782 sushma.fernandes 1.123
|
783 kumpf 1.145 # Check for Enable SSL CRL verification
784 ifdef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
785 ifeq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), true)
786 DEFINES += -DPEGASUS_ENABLE_SSL_CRL_VERIFICATION
787 else
788 ifneq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), false)
789 $(error PEGASUS_ENABLE_SSL_CRL_VERIFICATION\
790 ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION)) invalid, \
791 must be true or false)
792 endif
|
793 sushma.fernandes 1.123 endif
794 endif
795 endif
|
796 denise.eckstein 1.120
|
797 jim.wunderlich 1.101 #
|
798 yi.zhou 1.134 # PEP 258
|
799 kumpf 1.153 # Allow Audit Logger to be disabled. It is enabled by default.
|
800 yi.zhou 1.134 #
|
801 kumpf 1.153
802 ifndef PEGASUS_ENABLE_AUDIT_LOGGER
803 PEGASUS_ENABLE_AUDIT_LOGGER = true
804 endif
805
806 ifdef PEGASUS_ENABLE_AUDIT_LOGGER
807 ifeq ($(PEGASUS_ENABLE_AUDIT_LOGGER),true)
808 DEFINES += -DPEGASUS_ENABLE_AUDIT_LOGGER
809 else
810 ifneq ($(PEGASUS_ENABLE_AUDIT_LOGGER),false)
811 $(error PEGASUS_ENABLE_AUDIT_LOGGER \
812 ($(PEGASUS_ENABLE_AUDIT_LOGGER)) invalid, must be true or false)
813 endif
814 endif
815 endif
816
817 # Check for use of deprecated variable
|
818 yi.zhou 1.134 ifdef PEGASUS_DISABLE_AUDIT_LOGGER
|
819 kumpf 1.153 $(error The PEGASUS_DISABLE_AUDIT_LOGGER variable is deprecated. \
820 Use PEGASUS_ENABLE_AUDIT_LOGGER=false instead)
|
821 yi.zhou 1.134 endif
822
|
823 dave.sudlik 1.142
824 #
825 # PEP 291
826 # Enable IPv6 support
827 #
|
828 venkat.puvvada 1.149
|
829 dave.sudlik 1.142 ifndef PEGASUS_ENABLE_IPV6
830 PEGASUS_ENABLE_IPV6 = true
831 endif
832
833 # Check for Enable IPv6 support
834 ifdef PEGASUS_ENABLE_IPV6
835 ifeq ($(PEGASUS_ENABLE_IPV6),true)
836 DEFINES += -DPEGASUS_ENABLE_IPV6
837 else
838 ifneq ($(PEGASUS_ENABLE_IPV6),false)
839 $(error PEGASUS_ENABLE_IPV6 ($(PEGASUS_ENABLE_IPV6)) \
840 invalid, must be true or false)
841 endif
842 endif
843 endif
844
|
845 venkat.puvvada 1.149 # Verify Test IPv6 support
846 # If PEGASUS_ENABLE_IPV6 is defined and PEGASUS_TEST_IPV6 is not defined, we set
847 # PEGASUS_TEST_IPV6 to the same value as PEGASUS_ENABLE_IPV6.
848 # You can explicitly set PEGASUS_TEST_IPV6 to false if you don't want to run the
849 # IPv6 tests (for example, on an IPv4 system that is running an IPv6-enabled
850 # version of Pegasus).
851 #
852 ifdef PEGASUS_TEST_IPV6
853 ifneq ($(PEGASUS_TEST_IPV6),true)
854 ifneq ($(PEGASUS_TEST_IPV6),false)
855 $(error PEGASUS_TEST_IPV6 ($(PEGASUS_TEST_IPV6)) \
856 invalid, must be true or false)
857 endif
858 endif
|
859 kumpf 1.183 else
|
860 venkat.puvvada 1.150 PEGASUS_TEST_IPV6 = $(PEGASUS_ENABLE_IPV6)
|
861 venkat.puvvada 1.149 endif
862
|
863 yi.zhou 1.163 #
864 # PEP 322
865 # Allow tracking generated indications data to be disabled. It is enabled
866 # by default.
867 #
868
869 ifndef PEGASUS_ENABLE_INDICATION_COUNT
870 PEGASUS_ENABLE_INDICATION_COUNT = true
871 endif
872
873 ifdef PEGASUS_ENABLE_INDICATION_COUNT
874 ifeq ($(PEGASUS_ENABLE_INDICATION_COUNT),true)
875 DEFINES += -DPEGASUS_ENABLE_INDICATION_COUNT
876 else
877 ifneq ($(PEGASUS_ENABLE_INDICATION_COUNT),false)
878 $(error PEGASUS_ENABLE_INDICATION_COUNT \
879 ($(PEGASUS_ENABLE_INDICATION_COUNT)) invalid, must be true or false)
880 endif
881 endif
882 endif
883
|
884 karl 1.151 ############################################################################
|
885 yi.zhou 1.134 #
|
886 jim.wunderlich 1.101 # PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP
887 #
|
888 karl 1.172 # PEGASUS_DISABLE_SLP has been deprecated. New use model is:
|
889 jim.wunderlich 1.101 #
|
890 jim.wunderlich 1.112 # Use PEGASUS_ENABLE_SLP=true to enable compilation of SLP functions.
891 #
|
892 kumpf 1.140 # Use PEGASUS_ENABLE_SLP=false to disable compilation of SLP functions.
|
893 jim.wunderlich 1.101 #
894 # NOTE. Effective with Bug # 2633 some platforms enable SLP.
|
895 karl 1.75 # To see which platforms look for platform make files that set
|
896 kumpf 1.140 # the variable PEGASUS_ENABLE_SLP.
|
897 jim.wunderlich 1.101 #
898 #
|
899 jim.wunderlich 1.112
|
900 karl 1.39 ifdef PEGASUS_ENABLE_SLP
|
901 jim.wunderlich 1.101 ifdef PEGASUS_DISABLE_SLP
902 $(error Conflicting defines PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP both set)
903 endif
|
904 jim.wunderlich 1.112 endif
905
906 ifdef PEGASUS_DISABLE_SLP
907 $(error PEGASUS_DISABLE_SLP has been deprecated. Please use PEGASUS_ENABLE_SLP=[true/false] )
908
909 PEGASUS_ENABLE_SLP=false
910
911 endif
912
913 ifdef PEGASUS_ENABLE_SLP
914 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
915 david.dillard 1.65 DEFINES += -DPEGASUS_ENABLE_SLP
|
916 jim.wunderlich 1.112 else
917 ifneq ($(PEGASUS_ENABLE_SLP),false)
918 $(error PEGASUS_ENABLE_SLP ($(PEGASUS_ENABLE_SLP)) invalid, must be true or false)
|
919 kumpf 1.140 endif
|
920 jim.wunderlich 1.112 endif
|
921 karl 1.39 endif
|
922 karl 1.36
|
923 jim.wunderlich 1.121
924 ############################################################################
925 #
926 # PEGASUS_USE_OPENSLP
|
927 karl 1.172
928 ## NOTE: This variable has been deprecated and superceeded by the use of
|
929 kumpf 1.183 ## PEGASUS_USE_EXTERNAL_SLP. The use of this variable may be
|
930 karl 1.172 ## removed from Pegasus in future releases. It is converted to the
931 ## PEGASUS_USE_EXTERNAL_SLP variable in the following function.
932 ## Do not allow PEGASUS_USE_EXTERNAL_SLP if PEGASUS_ENABLE_SLP not set and
933 ## insure that PEGASUS_USE_OPENSLP and PEGASUS_USE_EXTERNAL_SLP are not used
934 ## simultaneously
|
935 jim.wunderlich 1.121 #
936 # Environment variable to set openslp as SLP environment to use
937 # for SLP Directory and User Agents.
938 #
939 # Allows enabling use of openslp interfaces for slp instead of the
940 # internal pegasus slp agent. Note that this does not disable the
941 # compilation of the internal agent code, etc. However, it assumes
942 # openslp is installed on the platform and changes the interfaces
|
943 kumpf 1.183 # to match this.
|
944 jim.wunderlich 1.121 #
945 # Use this variable in conjunction with PEGASUS_OPENSLP_HOME
|
946 kumpf 1.140 # to enable OpenSlp as the slp implementation.
|
947 jim.wunderlich 1.121 #
948 # NOTE that it has no affect if the PEGASUS_ENABLE_SLP etc. flags are not set.
949 #
950
951 ifdef PEGASUS_USE_OPENSLP
|
952 karl 1.172 ifdef PEGASUS_USE_EXTERNAL_SLP
953 $(error Both PEGASUS_USE_OPENSLP and PEGASUS_USE_EXTERNAL_SLP defined. \
954 Please use PEGASUS_USE_EXTERNAL_SLP)
955 endif
956 ## if PEGASUS_USE_OPENSLP used, convert to EXTERNAL_SLP variables
957 ## as defined for openslp
|
958 s.kodali 1.171 ifeq ($(PEGASUS_USE_OPENSLP),true)
959 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
960 s.kodali 1.190 export PEGASUS_USE_EXTERNAL_SLP=openslp
|
961 karl 1.172 PEGASUS_USE_OPENSLP=
|
962 jim.wunderlich 1.121 else
|
963 karl 1.172 $(error PEGASUS_USE_OPENSLP defined but PEGASUS_ENABLE_SLP is not true. \
964 Please correct this inconsistency)
|
965 jim.wunderlich 1.121 endif
|
966 s.kodali 1.171 else
967 ifneq ($(PEGASUS_USE_OPENSLP), false)
968 $(error PEGASUS_USE_OPENSLP \
969 ($(PEGASUS_USE_OPENSLP)) \
970 invalid, must be true or false)
971 endif
972 endif
|
973 jim.wunderlich 1.121 endif
974
|
975 karl 1.172 #########################################################################
|
976 dave.sudlik 1.135 # PEP 267
977 # SLP reregistration support.
978 # PEGASUS_SLP_REG_TIMEOUT is defined as the SLP registration timeout
979 # interval, in minutes.
980 ifdef PEGASUS_SLP_REG_TIMEOUT
981 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
982 karl 1.172 DEFINES += -DPEGASUS_SLP_REG_TIMEOUT=$(PEGASUS_SLP_REG_TIMEOUT)
|
983 dave.sudlik 1.135 else
|
984 karl 1.172 $(error PEGASUS_SLP_REG_TIMEOUT defined but PEGASUS_ENABLE_SLP is not true. \
985 Please correct this inconsistency)
|
986 dave.sudlik 1.135 endif
987 endif
|
988 jim.wunderlich 1.121
989 ############################################################################
990 #
|
991 karl 1.172 # PEGASUS_USE_EXTERNAL_SLP
992
993 # Environment variable to set an external slp implementation as the SLP
994 # environment to use for SLP Directory Agents.
995
996 # This allows setting any one of several possible external SLP SAs as the
997 # interface for the SLP provider to communicate with in managing SLP templates
998 # in place of the internal SLP agent provided with Pegasus.
999 # Note: This does not disable the compilation of the internal agent code since
1000 # this is used for the SLP UA defined with the pegasus client.
1001 # Pegasus assumes that the external SLP defined is installed on the platform
1002 # and running when pegasus is started. It changes the interfaces from the SLP
1003 # provider to match the defined SLP implementation.
1004
1005 # This environment variable superceedes the use of PEGASUS_USE_OPENSLP since
1006 # openslp is considered one of the valid external SLP environments usable by
1007 # pegasus.
1008
1009 # The variable uses the value component to define a name for the external SLP
1010 # environment that must match one of the names defined below.
1011
1012 karl 1.172 # This variable is not allowed if the PEGASUS_ENABLE_SLP flag is not set.
1013
1014 # Allow only predefined string values for the variable corresponding
1015 # to external slp types that pegasus knows.
1016 # Valid types are openslp (1) and solarisslp (2)
1017 EXTERNAL_SLP_TYPES = openslp solarisslp
1018
1019 ifdef PEGASUS_USE_EXTERNAL_SLP
1020 ifeq ($(PEGASUS_ENABLE_SLP),true)
1021 ifeq ($(PEGASUS_USE_EXTERNAL_SLP),openslp)
1022 DEFINES += -DPEGASUS_USE_EXTERNAL_SLP_TYPE=1
1023 else
1024 ifeq ($(PEGASUS_USE_EXTERNAL_SLP),solarisslp)
1025 DEFINES += -DPEGASUS_USE_EXTERNAL_SLP_TYPE=2
1026 else
1027 $(error PEGASUS_USE_EXTERNAL_SLP value ($(PEGASUS_USE_EXTERNAL_SLP)) \
1028 invalid. It must be one of valid SLP external types \
1029 ($(EXTERNAL_SLP_TYPES)) )
1030 endif
1031 endif
1032 endif
1033 karl 1.172 endif
1034
1035 ############################################################################
1036 #
|
1037 jim.wunderlich 1.121 # PEGASUS_OPENSLP_HOME
1038 #
|
1039 karl 1.172 # PEGASUS_OPENSLP_HOME superceeded by PEGASUS_OPEN_EXTERNAL_SLP_HOME. If
1040 # PEGASUS_OPENSLP_HOME is encountered it will create PEGASUS_OPEN_EXTERNAL_SLP_HOME
1041 #
|
1042 jim.wunderlich 1.121 # Environment variable to set home location for OpenSLP include and library
|
1043 kumpf 1.140 # files if they are located somewhere other than /usr/include and /usr/lib.
|
1044 jim.wunderlich 1.121 #
1045 # PEGASUS_USE_OPENSLP must also be defined for this environment variable
1046 # to have any effect.
1047 #
|
1048 kumpf 1.140 # This is the directory level within which both the include and lib
1049 # directories holding the OpenSLP files will be found.
|
1050 jim.wunderlich 1.121 #
|
1051 kumpf 1.140 # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
|
1052 jim.wunderlich 1.121 # then this environment variable should be set to /opt/OpenSLP.
1053 #
1054
|
1055 karl 1.172 ifdef PEGASUS_OPENSLP_HOME
1056 ifdef PEGASUS_OPEN_EXTERNAL_SLP_HOME
1057 $(error Both PEGASUS_OPENSLP_HOME and PEGASUS_OPEN_EXTERNAL_SLP_HOME defined. \
1058 Please use PEGASUS_OPEN_EXTERNAL_SLP_HOME)
1059 else
|
1060 s.kodali 1.190 export PEGASUS_EXTERNAL_SLP_HOME=$(PEGASUS_OPENSLP_HOME)
|
1061 karl 1.172 endif
1062 endif
1063 ############################################################################
1064 #
1065 # PEGASUS_EXTERNAL_SLP_HOME
1066 #
1067 # Environment variable to set home location for External SLP include and library
1068 # files if they are located somewhere other than /usr/include and /usr/lib.
1069 #
1070 # This variable superceeds PEGASUS_OPENSLP_HOME to match the use of
1071 # PEGASUS_USE_EXTERNAL_SLP variable.
1072 #
1073 # PEGASUS_USE_EXTERNAL_SLP must also be defined for this environment variable
1074 # to have any effect.
1075 #
1076 # This is the directory level within which both the include and lib
1077 # directories holding the OpenSLP files will be found.
1078 #
1079 # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
1080 # then this environment variable should be set to /opt/OpenSLP.
1081 #
|
1082 jim.wunderlich 1.121
|
1083 karl 1.172 ############################################################################
|
1084 sushma.fernandes 1.114 #
|
1085 kumpf 1.140 # Enable this flag to allow the handshake to continue regardless of verification result
|
1086 sushma.fernandes 1.114 #
1087 ifdef PEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
1088 DEFINES += -DPEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
1089 endif
1090
|
1091 karl 1.151 ############################################################################
1092 #
1093 # PEGASUS_ENABLE_INTEROP_PROVIDER
1094 # Enables the interop provider AND the server profile.
1095 # initially this was activated by setting either the perfinst or slp enable
1096 # flags. This allows activating this function without any either perfinst or
1097 # slp enabled. Note that if either of these are enabled, this funtion is also
1098 # enabled
1099
1100 ## if either slp or perfinst are enabled and this is false, flag error
1101 ## This gets messy because should account for both postive and negative on
1102 ## interop so we don't get multiples.
1103
1104 ifdef PEGASUS_ENABLE_SLP
1105 ifeq ($(PEGASUS_ENABLE_SLP),true)
1106 ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1107 PEGASUS_ENABLE_INTEROP_PROVIDER = true
1108 else
1109 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1110 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if SLP enabled)
1111 endif
1112 karl 1.151 endif
1113 endif
1114 endif
1115
1116 ## if PERFINST enabled, set to force interop.
1117 ifndef PEGASUS_DISABLE_PERFINST
1118 ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1119 PEGASUS_ENABLE_INTEROP_PROVIDER = true
1120 else
1121 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1122 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if PERFINST enabled)
1123 endif
1124 endif
1125 endif
1126
|
1127 venkat.puvvada 1.165 #
1128 ## PEP 323, DMTF Indications Profile support, stage 1
1129 #
1130 ifdef PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT
1131 ifeq ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT), true)
1132 ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1133 PEGASUS_ENABLE_INTEROP_PROVIDER = true
1134 else
1135 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1136 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if DMTF Indications profile support is enabled)
1137 endif
1138 endif
|
1139 venkat.puvvada 1.198 DEFINES += -DPEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT -DPEGASUS_ENABLE_INDICATION_ORDERING
|
1140 venkat.puvvada 1.165 else
1141 ifneq ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT),false)
1142 $(error PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT)) invalid, must be true or false)
1143 endif
1144 endif
1145 endif
|
1146 karl 1.151
|
1147 venkat.puvvada 1.175 ifdef PEGASUS_ENABLE_INTEROP_PROVIDER
1148 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),true)
1149 DEFINES += -DPEGASUS_ENABLE_INTEROP_PROVIDER
1150 else
1151 ifneq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1152 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true or false)
1153 endif
1154 endif
1155 endif
1156
1157
|
1158 karl 1.151 ############################################################################
|
1159 karl 1.60 # set PEGASUS_DEBUG into the DEFINES if it exists.
1160 # Note that this flag is the general separator between
1161 # debug compiles and non-debug compiles and controls both
1162 # the use of any debug options on compilers and linkers
1163 # and general debug support that we want to be turned on in
|
1164 chip 1.76 # debug mode.
|
1165 karl 1.60 ifdef PEGASUS_DEBUG
|
1166 david.dillard 1.65 DEFINES += -DPEGASUS_DEBUG
|
1167 kumpf 1.88
1168 # Indications debugging options
1169 ifdef PEGASUS_INDICATION_PERFINST
1170 DEFINES += -DPEGASUS_INDICATION_PERFINST
1171 endif
1172
1173 ifdef PEGASUS_INDICATION_HASHTRACE
1174 DEFINES += -DPEGASUS_INDICATION_HASHTRACE
1175 endif
|
1176 kumpf 1.131
|
1177 karl 1.60 endif
1178
|
1179 chuck 1.42 # compile in the experimental APIs
|
1180 david.dillard 1.65 DEFINES += -DPEGASUS_USE_EXPERIMENTAL_INTERFACES
|
1181 chuck 1.42
|
1182 kumpf 1.93 # Ensure that the deprecated interfaces are defined in the Pegasus libraries.
1183 # One may wish to disable these interfaces if binary compatibility with
1184 # previous Pegasus releases is not required.
1185 ifndef PEGASUS_DISABLE_DEPRECATED_INTERFACES
1186 DEFINES += -DPEGASUS_USE_DEPRECATED_INTERFACES
1187 endif
1188
|
1189 w.white 1.57 # Set compile flag to control compilation of CIMOM statistics
|
1190 karl 1.73 ifdef PEGASUS_DISABLE_PERFINST
|
1191 marek 1.136 DEFINES += -DPEGASUS_DISABLE_PERFINST
|
1192 w.white 1.57 endif
|
1193 kumpf 1.56
|
1194 karl 1.96 # Set compile flag to control compilation of SNIA Extensions
1195 ifdef PEGASUS_SNIA_EXTENSIONS
|
1196 marek 1.136 DEFINES += -DPEGASUS_SNIA_EXTENSIONS
|
1197 karl 1.96 endif
1198
|
1199 denise.eckstein 1.119 ifdef PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
1200 ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
|
1201 marek 1.136 DEFINES += -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
|
1202 denise.eckstein 1.119 else
1203 ifneq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), false)
1204 $(error PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER \
1205 ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER)) invalid, \
1206 must be true or false)
1207 endif
1208 endif
1209 endif
1210
|
1211 mark.hamzy 1.124 ifdef PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
1212 ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
|
1213 marek 1.136 DEFINES += -DPEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
|
1214 s.kodali 1.186 ifndef PEGASUS_JAVA_CLASSPATH_DELIMITER
1215 PEGASUS_JAVA_CLASSPATH_DELIMITER = :
1216 endif
1217
1218 ifndef PEGASUS_JVM
1219 PEGASUS_JVM = sun
1220 endif
1221 ifeq ($(PEGASUS_JVM),gcj)
1222 PEGASUS_JAVA_COMPILER = gcj -C
1223 PEGASUS_JAVA_JAR = fastjar
1224 PEGASUS_JAVA_INTERPRETER = gij
1225 else
1226 PEGASUS_JAVA_COMPILER = javac -target 1.4 -source 1.4
1227 PEGASUS_JAVA_JAR = jar
1228 PEGASUS_JAVA_INTERPRETER = java
1229 endif
1230
|
1231 mark.hamzy 1.124 else
1232 ifneq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), false)
1233 $(error PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER \
1234 ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER)) invalid, \
1235 must be true or false)
1236 endif
1237 endif
1238 endif
1239
|
1240 kumpf 1.95 # Allow remote CMPI functionality to be enabled
1241 ifdef PEGASUS_ENABLE_REMOTE_CMPI
|
1242 marek 1.136 DEFINES += -DPEGASUS_ENABLE_REMOTE_CMPI
|
1243 kumpf 1.95 endif
1244
|
1245 chip 1.76
|
1246 karl 1.17 ############################################################
1247 #
1248 # Set up other Make Variables that depend on platform config files
1249 #
1250 ############################################################
1251
1252 # This is temporary until we end up with a better place to
1253 # put this variable
1254 # Makefiles can do directory remove with
1255 # $(RMREPOSITORY) repositoryname
1256 #
1257 RMREPOSITORY = $(RMDIRHIER)
1258
|
1259 s.kodali 1.191 ifndef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
1260 PEGASUS_USE_RELEASE_CONFIG_OPTIONS=false
1261 endif
1262
1263 ifeq ($(PEGASUS_USE_RELEASE_CONFIG_OPTIONS),true)
1264 DEFINES += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
1265 else
1266 ifneq ($(PEGASUS_USE_RELEASE_CONFIG_OPTIONS),false)
1267 $(error PEGASUS_USE_RELEASE_CONFIG_OPTIONS \
1268 ($(PEGASUS_USE_RELEASE_CONFIG_OPTIONS)) invalid, must be true or false)
1269 endif
|
1270 w.otsuka 1.62 endif
1271
1272 ifdef PEGASUS_USE_RELEASE_DIRS
|
1273 marek 1.136 DEFINES += -DPEGASUS_USE_RELEASE_DIRS
|
1274 w.otsuka 1.62 endif
|
1275 mday 1.27
|
1276 denise.eckstein 1.110 ifdef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
|
1277 marek 1.136 DEFINES += -DPEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
|
1278 denise.eckstein 1.110 endif
1279
|
1280 kumpf 1.64 # Unless otherwise specified, Pegasus libraries go in $(PEGASUS_HOME)/lib
1281 ifndef PEGASUS_DEST_LIB_DIR
|
1282 david.dillard 1.65 PEGASUS_DEST_LIB_DIR = lib
|
1283 kumpf 1.64 endif
|
1284 mday 1.28
|
1285 gs.keenan 1.77 ifeq ($(OS),VMS)
1286 DEFINES += -DPEGASUS_DEST_LIB_DIR="""$(PEGASUS_DEST_LIB_DIR)"""
1287 else
1288 DEFINES += -DPEGASUS_DEST_LIB_DIR=\"$(PEGASUS_DEST_LIB_DIR)\"
1289 endif
1290
|
1291 w.otsuka 1.79 ################################################################################
1292 ##
|
1293 mike 1.105 ## PEGASUS_CLASS_CACHE_SIZE
1294 ##
1295 ## This environment variable gives the size of the class cache used by
1296 ## the CIM repository. When it is undefined, the size defaults to something
1297 ## relatively small (see src/Pegasus/Repository/CIMRepository.cpp). If
1298 ## defined, it gives the size of the class cache. If it is 0 , the class
1299 ## cache is not defined compiled in at all.
1300 ##
1301 ################################################################################
1302
1303 ifdef PEGASUS_CLASS_CACHE_SIZE
1304 DEFINES += -DPEGASUS_CLASS_CACHE_SIZE=$(PEGASUS_CLASS_CACHE_SIZE)
1305 endif
1306
1307 ################################################################################
1308 ##
|
1309 w.otsuka 1.79 ## Additional build flags passed in through environment variables.
1310 ## These flags are added to the compile/link commands.
1311 ##
1312 ################################################################################
1313
1314 ifdef PEGASUS_EXTRA_CXX_FLAGS
1315 EXTRA_CXX_FLAGS = $(PEGASUS_EXTRA_CXX_FLAGS)
1316 endif
1317
1318 ifdef PEGASUS_EXTRA_C_FLAGS
1319 EXTRA_C_FLAGS = $(PEGASUS_EXTRA_C_FLAGS)
1320 endif
1321
1322 ifdef PEGASUS_EXTRA_LINK_FLAGS
1323 EXTRA_LINK_FLAGS = $(PEGASUS_EXTRA_LINK_FLAGS)
1324 endif
1325
|
1326 mike 1.126 ##==============================================================================
1327 ##
1328 ## By definining PEGASUS_USE_STATIC_LIBRARIES in the environment and STATIC
1329 ## in the Makefile, a static library is produced rather than a shared one.
1330 ## PEGASUS_USE_STATIC_LIBRARIES should be "true" or "false".
1331 ##
1332 ##==============================================================================
1333
1334 ifdef PEGASUS_USE_STATIC_LIBRARIES
|
1335 kumpf 1.185 ifeq ($(OS_TYPE),windows)
1336 $(error PEGASUS_USE_STATIC_LIBRARIES is not support on windows.)
1337 else
1338 ifneq ($(PEGASUS_USE_STATIC_LIBRARIES),true)
1339 $(error PEGASUS_USE_STATIC_LIBRARIES \
1340 ($(PEGASUS_USE_STATIC_LIBRARIES)) invalid, must be true.)
1341 endif
|
1342 kumpf 1.140 endif
1343 endif
1344
1345 ##==============================================================================
1346 ##
1347 ## PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1348 ##
1349 ## Enables privilege separation support (uses the executor process to
1350 ## perform privileged operations).
1351 ##
1352 ##==============================================================================
1353
1354 ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1355 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1356 DEFINES += -DPEGASUS_ENABLE_PRIVILEGE_SEPARATION
1357 else
1358 ifneq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),false)
1359 $(error PEGASUS_ENABLE_PRIVILEGE_SEPARATION \
1360 ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION)) invalid, must be true or false)
1361 endif
1362 endif
1363 kumpf 1.140
|
1364 kumpf 1.148 ## Defines the user context of the cimservermain process when privilege
|
1365 kumpf 1.140 ## separation is enabled.
|
1366 kumpf 1.148 PEGASUS_CIMSERVERMAIN_USER = cimsrvr
|
1367 kumpf 1.141 DEFINES += -DPEGASUS_CIMSERVERMAIN_USER=\"$(PEGASUS_CIMSERVERMAIN_USER)\"
|
1368 mike 1.126 endif
|
1369 mark.hamzy 1.127
|
1370 kumpf 1.162
1371 ##==============================================================================
1372 ##
1373 ## PEGASUS_ENABLE_PROTOCOL_WSMAN
1374 ##
1375 ## Enables the WS-Management protocol in the CIM Server.
1376 ##
1377 ##==============================================================================
1378
1379 ifndef PEGASUS_ENABLE_PROTOCOL_WSMAN
1380 PEGASUS_ENABLE_PROTOCOL_WSMAN = false
1381 endif
1382
1383 ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
1384 DEFINES += -DPEGASUS_ENABLE_PROTOCOL_WSMAN
1385 else
1386 ifneq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),false)
1387 $(error PEGASUS_ENABLE_PROTOCOL_WSMAN ($(PEGASUS_ENABLE_PROTOCOL_WSMAN)) invalid, must be true or false)
1388 endif
1389 endif
1390
|
1391 kumpf 1.170 ##==============================================================================
1392 ##
|
1393 marek 1.210 ## PEGASUS_PAM_SESSION_SECURITY
1394 ##
1395 ## This is a new method to handle authentication with PAM in case it is required
1396 ## to keep the PAM session established by pam_start() open across an
1397 ## entire CIM request.
1398 ##
1399 ## This feature contradicts PEGASUS_PAM_AUTHENTICATION and
1400 ## PEGASUS_USE_PAM_STANDALONE_PROC
1401 ## Because of the additional process this feature is not compatible with
1402 ## Privilege Separation.
1403 ##
1404 ##==============================================================================
1405
1406 ifeq ($(PEGASUS_PAM_SESSION_SECURITY),true)
1407 ifdef PEGASUS_PAM_AUTHENTICATION
1408 $(error "PEGASUS_PAM_AUTHENTICATION must NOT be defined when PEGASUS_PAM_SESSION_SECURITY is defined")
1409 endif
1410 ifdef PEGASUS_USE_PAM_STANDALONE_PROC
1411 $(error "PEGASUS_USE_PAM_STANDALONE_PROC must NOT be defined when PEGASUS_PAM_SESSION_SECURITY is defined")
1412 endif
1413 ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1414 marek 1.210 $(error "PEGASUS_ENABLE_PRIVILEGE_SEPARATION must NOT be defined when PEGASUS_PAM_SESSION_SECURITY is defined")
1415 endif
1416 # Compile in the code required for PAM
1417 # and compile out the code that uses the password file.
1418 DEFINES += -DPEGASUS_PAM_SESSION_SECURITY -DPEGASUS_NO_PASSWORDFILE
1419 # Link with libpam only where it is needed.
1420 ifeq ($(HAS_PAM_DEPENDENCY),true)
1421 SYS_LIBS += -lpam
1422 endif
1423 endif
1424
1425
1426 ##==============================================================================
1427 ##
|
1428 kumpf 1.170 ## PEGASUS_PAM_AUTHENTICATION
1429 ##
1430 ##==============================================================================
1431
1432 ifdef PEGASUS_PAM_AUTHENTICATION
1433 # Compile in the code required for PAM authentication
1434 # and compile out the code that uses the password file.
1435 DEFINES += -DPEGASUS_PAM_AUTHENTICATION -DPEGASUS_NO_PASSWORDFILE
1436
1437 # Link with libpam only where it is needed.
1438 ifeq ($(HAS_PAM_DEPENDENCY),true)
1439 SYS_LIBS += -lpam
1440 endif
1441 endif
|
1442 kumpf 1.162
|
1443 kumpf 1.140 ##==============================================================================
1444 ##
|
1445 jsafrane 1.217 ## PEGASUS_NEGOTIATE_AUTHENTICATION
1446 ##
1447 ##==============================================================================
1448
1449 ifndef PEGASUS_NEGOTIATE_AUTHENTICATION
1450 PEGASUS_NEGOTIATE_AUTHENTICATION=false
1451 endif
1452
1453 ifeq ($(PEGASUS_NEGOTIATE_AUTHENTICATION),true)
1454 DEFINES += -DPEGASUS_NEGOTIATE_AUTHENTICATION
1455 # Link with MIT Kerberos
1456 SYS_LIBS += -lgssapi_krb5
1457 else
1458 ifneq ($(PEGASUS_NEGOTIATE_AUTHENTICATION),false)
1459 $(error "PEGASUS_NEGOTIATE_AUTHENTICATION must be true or false")
1460 endif
1461 endif
1462
1463 ##==============================================================================
1464 ##
|
1465 kumpf 1.140 ## PEGASUS_USE_PAM_STANDALONE_PROC
1466 ##
1467 ##==============================================================================
1468
1469 ifdef PEGASUS_USE_PAM_STANDALONE_PROC
|
1470 venkat.puvvada 1.199 ifndef PEGASUS_PAM_AUTHENTICATION
1471 $(error "PEGASUS_PAM_AUTHENTICATION must be defined when PEGASUS_USE_PAM_STANDALONE_PROC is defined")
1472 endif
1473 DEFINES += -DPEGASUS_USE_PAM_STANDALONE_PROC
|
1474 kumpf 1.140 endif
1475
1476 ##==============================================================================
|
1477 mark.hamzy 1.127
|
1478 dmitry.mikulin 1.155 # Disable client timeouts when we're doing a valgrind build
|
1479 kumpf 1.157 ifdef PEGASUS_TEST_VALGRIND_LOG_DIR
|
1480 dmitry.mikulin 1.156 DEFINES += -DPEGASUS_DISABLE_CLIENT_TIMEOUT -DPEGASUS_TEST_VALGRIND
|
1481 dmitry.mikulin 1.155 endif
1482
|
1483 s.kodali 1.161 ## ======================================================================
1484 ##
1485 ## PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
|
1486 kumpf 1.183 ## This controls allowing the path specified in the Location property of
|
1487 s.kodali 1.161 ## PG_ProviderModule class.
1488 ##
1489 ## Set to "true", It allows the absolute path specified in the Location property
1490 ## of PG_ProviderModule class. Otherwise it does not allow the absolute path.
1491 ## see bug 7289 for background information concerning this config variable.
1492 ##
1493
1494 ifndef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1495 PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE=false
1496 endif
1497
1498 ifdef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1499 ifeq ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE),true)
1500 DEFINES += -DPEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1501 else
1502 ifneq ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE),false)
1503 $(error PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE \
1504 ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE)) \
1505 invalid, must be true or false)
1506 endif
1507 endif
1508 s.kodali 1.161 endif
1509
|
1510 mike 1.178 ##==============================================================================
1511 ##
|
1512 mike 1.180 ## PEGASUS_ENABLE_PROTOCOL_BINARY
|
1513 mike 1.178 ##
|
1514 mike 1.180 ## Enables the binary protocol between clients and cimserver. With provider
1515 ## agent, both requests and responses are binary. For "ordinary" clients,
1516 ## requests are XML and responses are binary. By default, this only affects
1517 ## the protocol used over local domain sockets.
|
1518 mike 1.178 ##
1519 ##==============================================================================
1520
|
1521 mike 1.180 ifndef PEGASUS_ENABLE_PROTOCOL_BINARY
1522 PEGASUS_ENABLE_PROTOCOL_BINARY=false
|
1523 mike 1.178 endif
1524
|
1525 mike 1.180 ifeq ($(PEGASUS_ENABLE_PROTOCOL_BINARY),true)
1526 DEFINES += -DPEGASUS_ENABLE_PROTOCOL_BINARY
|
1527 mike 1.178 else
|
1528 mike 1.180 ifneq ($(PEGASUS_ENABLE_PROTOCOL_BINARY),false)
1529 $(error "PEGASUS_ENABLE_PROTOCOL_BINARY must be true or false")
|
1530 mike 1.178 endif
1531 endif
|
1532 denise.eckstein 1.179
|
1533 lawrence.luo 1.212
1534 ##==============================================================================
1535 ##
1536 ## PEGASUS_ENABLE_PROTOCOL_WEB
1537 ##
1538 ## Enables the GET-Method for files in order to act as a web-server
1539 ##
1540 ##
1541 ##
1542 ##
1543 ##==============================================================================
1544 ifndef PEGASUS_ENABLE_PROTOCOL_WEB
1545 PEGASUS_ENABLE_PROTOCOL_WEB = true
1546 endif
1547
1548 ifeq ($(PEGASUS_ENABLE_PROTOCOL_WEB),true)
1549 DEFINES += -DPEGASUS_ENABLE_PROTOCOL_WEB
1550 else
1551 ifneq ($(PEGASUS_ENABLE_PROTOCOL_WEB),false)
1552 $(error "PEGASUS_ENABLE_PROTOCOL_WEB must be true or false")
1553 endif
1554 lawrence.luo 1.212 endif
1555
|
1556 denise.eckstein 1.179 ## ======================================================================
1557 ##
1558 ## PLATFORM_CORE_PATTERN
1559 ## This variable describes the pattern used to search for core files.
1560 ## If not defined, this variable will be set to core*.
1561 ## Only wildcard characters supported by the make wildcard function
1562 ## may be used.
1563
1564 ifndef PLATFORM_CORE_PATTERN
1565 PLATFORM_CORE_PATTERN = core*
1566 endif
|
1567 s.kodali 1.188
1568 ifdef PEGASUS_FLAVOR
1569 ifdef PEGASUS_USE_RELEASE_DIRS
1570 ifndef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
1571 $(error "PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS must be defined when both PEGASUS_FLAVOR and PEGASUS_USE_RELEASE_DIRS options are used")
1572 endif
1573 endif
1574 ifneq ($(PEGASUS_FLAVOR), tog)
1575 DEFINES += -DPEGASUS_FLAVOR=\"$(PEGASUS_FLAVOR)\"
1576 endif
1577 endif
|
1578 s.kodali 1.192
1579 ifdef PEGASUS_EXTRA_PROVIDER_LIB_DIR
1580 ifndef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
1581 $(error "PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS must be defined when PEGASUS_EXTRA_PROVIDER_LIB_DIR defined.")
1582 endif
1583 DEFINES += -DPEGASUS_EXTRA_PROVIDER_LIB_DIR=\"$(PEGASUS_EXTRA_PROVIDER_LIB_DIR):\"
1584 else
1585 DEFINES += -DPEGASUS_EXTRA_PROVIDER_LIB_DIR=\"\"
1586 endif
1587
|
1588 marek 1.195 ################################################################################
1589 ##
1590 ## PEGASUS_INITIAL_THREADSTACK_SIZE
1591 ##
1592 ## This environment variable sets the initial size of the stack on new threads.
1593 ## When it is undefined, the size defaults to something relatively small
1594 ## (see src/Pegasus/Common/Config.h or if overridden by platform see
1595 ## src/Pegasus/Common/Platform_$(PEGASUS_PLATFORM).h).
1596 ## Value is specified in number of bytes.
1597 ##
1598 ################################################################################
1599
1600 ifdef PEGASUS_INITIAL_THREADSTACK_SIZE
1601 DEFINES += -DPEGASUS_INITIAL_THREADSTACK_SIZE=$(PEGASUS_INITIAL_THREADSTACK_SIZE)
1602 endif
1603
|
1604 dev.meetei 1.203 ifndef PEGASUS_INTEROP_NAMESPACE
1605 PEGASUS_INTEROP_NAMESPACE=root/PG_InterOp
1606 else
|
1607 anusha.kandepu 1.202 ifeq ($(PEGASUS_INTEROP_NAMESPACE),root/interop)
1608 DEFINES += -DNS_ROOT_INTEROP
|
1609 dev.meetei 1.203 endif
|
1610 anusha.kandepu 1.202 ifeq ($(PEGASUS_INTEROP_NAMESPACE),interop)
1611 DEFINES += -DNS_INTEROP
1612 endif
1613 endif
1614
1615 ##These namespaces will be used in Makefiles.
1616
1617 NAMESPACE_INTEROP = interop
1618
1619 NAMESPACE_ROOT_INTEROP = root/interop
|
1620 jsafrane 1.218
1621
1622 ##==============================================================================
1623 ##
1624 ## PEGASUS_ENABLE_SESSION_COOKIES
1625 ##
1626 ##==============================================================================
1627
1628 # Cookies are enabled by defaut when HAS_SSL is defined _or_ on zOS
1629 ifndef PEGASUS_ENABLE_SESSION_COOKIES
1630 ifdef PEGASUS_HAS_SSL
1631 PEGASUS_ENABLE_SESSION_COOKIES=true
1632 else
1633 ifeq ($(OS),zos)
1634 PEGASUS_ENABLE_SESSION_COOKIES=true
1635 else
1636 PEGASUS_ENABLE_SESSION_COOKIES=false
1637 endif
1638 endif
1639 endif
1640
1641 jsafrane 1.218 ifeq ($(PEGASUS_ENABLE_SESSION_COOKIES),true)
1642 ifndef PEGASUS_HAS_SSL
1643 ifneq ($(OS),zos)
1644 $(error "PEGASUS_ENABLE_SESSION_COOKIES can be set to 'true' only when PEGASUS_HAS_SSL is 'true' or on zOS platform")
1645 endif
1646 endif
1647 DEFINES += -DPEGASUS_ENABLE_SESSION_COOKIES
1648 else
1649 ifneq ($(PEGASUS_ENABLE_SESSION_COOKIES),false)
1650 $(error "PEGASUS_ENABLE_SESSION_COOKIES must be true or false")
1651 endif
1652 endif
|