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 karl 1.195.2.6 #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 karl 1.195.2.6
|
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 david.dillard 1.66 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.195.2.2 ## 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.195.2.3 PEGASUS_CIM_SCHEMA=CIM236
|
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 karl 1.195.2.3 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 kumpf 1.183 # PEGASUS_OVERRIDE_PRODUCT_ID
|
608 kumpf 1.68 # PEP 186
609 # Allow override of product name/version/status. A file
610 # pegasus/src/Pegasus/Common/ProductVersion.h must exist when this
611 # flag is defined.
612 #
613 ifdef PEGASUS_OVERRIDE_PRODUCT_ID
614 DEFINES += -DPEGASUS_OVERRIDE_PRODUCT_ID
615 endif
616
|
617 kumpf 1.71 #
|
618 kumpf 1.106 # PEP 72
619 # Allow Out-of-Process Providers to be disabled by default
620 #
|
621 jim.wunderlich 1.113 ifdef PEGASUS_DEFAULT_ENABLE_OOP
622 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
623 DEFINES += -DPEGASUS_DEFAULT_ENABLE_OOP
|
624 jim.wunderlich 1.111 else
|
625 jim.wunderlich 1.113 ifneq ($(PEGASUS_DEFAULT_ENABLE_OOP),false)
626 $(error PEGASUS_DEFAULT_ENABLE_OOP ($(PEGASUS_DEFAULT_ENABLE_OOP)) invalid, must be true or false)
|
627 kumpf 1.140 endif
|
628 jim.wunderlich 1.111 endif
|
629 kumpf 1.106 endif
630
631 #
|
632 mateus.baur 1.130 # Allow to define the default value for the Provider User Context
633 # property as REQUESTOR.
634 # If is set and true use REQUESTOR
635 # If is not set or false use PRIVILEGED
636 #
637 ifdef PEGASUS_DEFAULT_USERCTXT_REQUESTOR
638 ifeq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),true)
639 DEFINES += -DPEGASUS_DEFAULT_USERCTXT_REQUESTOR
640 else
641 ifneq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),false)
642 $(error PEGASUS_DEFAULT_USERCTXT_REQUESTOR ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR)) invalid, must be true or false)
|
643 kumpf 1.140 endif
|
644 mateus.baur 1.130 endif
645 endif
646
647 #
|
648 kumpf 1.71 # PEP 197
649 # Allow the Provider User Context feature to be disabled.
650 #
|
651 kumpf 1.74 ifdef PEGASUS_DISABLE_PROV_USERCTXT
|
652 kumpf 1.71 DEFINES += -DPEGASUS_DISABLE_PROV_USERCTXT
|
653 kumpf 1.74 endif
|
654 kumpf 1.71
|
655 h.sterling 1.89 # Bug 2147
656 # Allow local domain socket usage to be disabled.
657 ifdef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
658 DEFINES += -DPEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
659 endif
660
|
661 chip 1.76 # PEP 211
662 # Controls object normalization support.
663 ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
664 DEFINES += -DPEGASUS_ENABLE_OBJECT_NORMALIZATION
665 endif
666
|
667 kumpf 1.80 # Allow ExecQuery functionality to be enabled
668 ifndef PEGASUS_ENABLE_EXECQUERY
669 DEFINES += -DPEGASUS_DISABLE_EXECQUERY
670 endif
671
|
672 yi.zhou 1.85 # Allow System Log Handler to be enabled
673 ifdef PEGASUS_ENABLE_SYSTEM_LOG_HANDLER
674 DEFINES += -DPEGASUS_ENABLE_SYSTEM_LOG_HANDLER
675 endif
676
677 # Allow Email Handler to be enabled
678 ifdef PEGASUS_ENABLE_EMAIL_HANDLER
679 DEFINES += -DPEGASUS_ENABLE_EMAIL_HANDLER
680 endif
|
681 kumpf 1.49
|
682 h.sterling 1.109 # Allow qualifiers to be disabled for instance operations
683 ifdef PEGASUS_DISABLE_INSTANCE_QUALIFIERS
684 DEFINES += -DPEGASUS_DISABLE_INSTANCE_QUALIFIERS
685 endif
686
|
687 yi.zhou 1.108 # Controls snmp indication handler to use NET-SNMP to deliver trap
|
688 karl 1.195.2.4 ifdef PEGASUS_USE_NET_SNMP
689 ifeq ($(PEGASUS_USE_NET_SNMP),true)
690 DEFINES += -DPEGASUS_USE_NET_SNMP
691 else
692 ifneq ($(PEGASUS_USE_NET_SNMP),false)
693 $(error PEGASUS_USE_NET_SNMP ($(PEGASUS_USE_NET_SNMP)) invalid, must be true or false)
694 endif
695 endif
|
696 sahana.prabhakar 1.194 endif
697 # Controls snmp indication handler to use NET-SNMP V3 features.
698 ifndef PEGASUS_ENABLE_NET_SNMPV3
|
699 karl 1.195.2.4 ifeq ($(PEGASUS_USE_NET_SNMP),true)
700 PEGASUS_ENABLE_NET_SNMPV3=true
|
701 sahana.prabhakar 1.194 else
702 PEGASUS_ENABLE_NET_SNMPV3=false
703 endif
704 endif
705
706 ifeq ($(PEGASUS_ENABLE_NET_SNMPV3),true)
|
707 karl 1.195.2.4 ifneq ($(PEGASUS_USE_NET_SNMP),true)
708 $(error PEGASUS_USE_NET_SNMP should be set to true when PEGASUS_ENABLE_NET_SNMPV3 is true)
|
709 sahana.prabhakar 1.194 endif
710 DEFINES += -DPEGASUS_ENABLE_NET_SNMPV3
711 else
712 ifneq ($(PEGASUS_ENABLE_NET_SNMPV3),false)
713 $(error PEGASUS_ENABLE_NET_SNMPV3 ($(PEGASUS_ENABLE_NET_SNMPV3)) invalid, must be true or false)
714 endif
|
715 yi.zhou 1.108 endif
716
|
717 denise.eckstein 1.120 ifdef PEGASUS_HAS_SSL
|
718 kumpf 1.183 DEFINES += -DPEGASUS_HAS_SSL
|
719 sushma.fernandes 1.152
720 # Enable SSL Random file by default.
721 ifndef PEGASUS_USE_SSL_RANDOMFILE
722 PEGASUS_USE_SSL_RANDOMFILE = true
723 endif
724
725 # Allow SSL Random file functionality to be optionally disabled.
726 ifdef PEGASUS_USE_SSL_RANDOMFILE
727 ifeq ($(PEGASUS_USE_SSL_RANDOMFILE), true)
728 DEFINES += -DPEGASUS_SSL_RANDOMFILE
729 else
730 ifneq ($(PEGASUS_USE_SSL_RANDOMFILE), false)
731 $(error PEGASUS_USE_SSL_RANDOMFILE\
732 ($(PEGASUS_USE_SSL_RANDOMFILE)) invalid, \
733 must be true or false)
734 endif
735 endif
736 endif
|
737 kumpf 1.145
738 ifndef OPENSSL_COMMAND
|
739 denise.eckstein 1.147 ifdef OPENSSL_BIN
740 OPENSSL_COMMAND = $(OPENSSL_BIN)/openssl
741 else
742 OPENSSL_COMMAND = openssl
743 endif
|
744 kumpf 1.145 endif
745 ifndef OPENSSL_SET_SERIAL_SUPPORTED
746 ifneq (, $(findstring 0.9.6, $(shell $(OPENSSL_COMMAND) version)))
747 OPENSSL_SET_SERIAL_SUPPORTED = false
748 else
749 OPENSSL_SET_SERIAL_SUPPORTED = true
750 endif
|
751 denise.eckstein 1.120 endif
|
752 sushma.fernandes 1.123
|
753 kumpf 1.145 # Enable CRL verification
754 ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
755 PEGASUS_ENABLE_SSL_CRL_VERIFICATION = true
756 endif
|
757 sushma.fernandes 1.123
|
758 kumpf 1.145 # Check for Enable SSL CRL verification
759 ifdef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
760 ifeq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), true)
761 DEFINES += -DPEGASUS_ENABLE_SSL_CRL_VERIFICATION
762 else
763 ifneq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), false)
764 $(error PEGASUS_ENABLE_SSL_CRL_VERIFICATION\
765 ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION)) invalid, \
766 must be true or false)
767 endif
|
768 sushma.fernandes 1.123 endif
769 endif
770 endif
|
771 denise.eckstein 1.120
|
772 jim.wunderlich 1.101 #
|
773 yi.zhou 1.134 # PEP 258
|
774 kumpf 1.153 # Allow Audit Logger to be disabled. It is enabled by default.
|
775 yi.zhou 1.134 #
|
776 kumpf 1.153
777 ifndef PEGASUS_ENABLE_AUDIT_LOGGER
778 PEGASUS_ENABLE_AUDIT_LOGGER = true
779 endif
780
781 ifdef PEGASUS_ENABLE_AUDIT_LOGGER
782 ifeq ($(PEGASUS_ENABLE_AUDIT_LOGGER),true)
783 DEFINES += -DPEGASUS_ENABLE_AUDIT_LOGGER
784 else
785 ifneq ($(PEGASUS_ENABLE_AUDIT_LOGGER),false)
786 $(error PEGASUS_ENABLE_AUDIT_LOGGER \
787 ($(PEGASUS_ENABLE_AUDIT_LOGGER)) invalid, must be true or false)
788 endif
789 endif
790 endif
791
792 # Check for use of deprecated variable
|
793 yi.zhou 1.134 ifdef PEGASUS_DISABLE_AUDIT_LOGGER
|
794 kumpf 1.153 $(error The PEGASUS_DISABLE_AUDIT_LOGGER variable is deprecated. \
795 Use PEGASUS_ENABLE_AUDIT_LOGGER=false instead)
|
796 yi.zhou 1.134 endif
797
|
798 dave.sudlik 1.142
799 #
800 # PEP 291
801 # Enable IPv6 support
802 #
|
803 venkat.puvvada 1.149
|
804 dave.sudlik 1.142 ifndef PEGASUS_ENABLE_IPV6
805 PEGASUS_ENABLE_IPV6 = true
806 endif
807
808 # Check for Enable IPv6 support
809 ifdef PEGASUS_ENABLE_IPV6
810 ifeq ($(PEGASUS_ENABLE_IPV6),true)
811 DEFINES += -DPEGASUS_ENABLE_IPV6
812 else
813 ifneq ($(PEGASUS_ENABLE_IPV6),false)
814 $(error PEGASUS_ENABLE_IPV6 ($(PEGASUS_ENABLE_IPV6)) \
815 invalid, must be true or false)
816 endif
817 endif
818 endif
819
|
820 venkat.puvvada 1.149 # Verify Test IPv6 support
821 # If PEGASUS_ENABLE_IPV6 is defined and PEGASUS_TEST_IPV6 is not defined, we set
822 # PEGASUS_TEST_IPV6 to the same value as PEGASUS_ENABLE_IPV6.
823 # You can explicitly set PEGASUS_TEST_IPV6 to false if you don't want to run the
824 # IPv6 tests (for example, on an IPv4 system that is running an IPv6-enabled
825 # version of Pegasus).
826 #
827 ifdef PEGASUS_TEST_IPV6
828 ifneq ($(PEGASUS_TEST_IPV6),true)
829 ifneq ($(PEGASUS_TEST_IPV6),false)
830 $(error PEGASUS_TEST_IPV6 ($(PEGASUS_TEST_IPV6)) \
831 invalid, must be true or false)
832 endif
833 endif
|
834 kumpf 1.183 else
|
835 venkat.puvvada 1.150 PEGASUS_TEST_IPV6 = $(PEGASUS_ENABLE_IPV6)
|
836 venkat.puvvada 1.149 endif
837
|
838 yi.zhou 1.163 #
839 # PEP 322
840 # Allow tracking generated indications data to be disabled. It is enabled
841 # by default.
842 #
843
844 ifndef PEGASUS_ENABLE_INDICATION_COUNT
845 PEGASUS_ENABLE_INDICATION_COUNT = true
846 endif
847
848 ifdef PEGASUS_ENABLE_INDICATION_COUNT
849 ifeq ($(PEGASUS_ENABLE_INDICATION_COUNT),true)
850 DEFINES += -DPEGASUS_ENABLE_INDICATION_COUNT
851 else
852 ifneq ($(PEGASUS_ENABLE_INDICATION_COUNT),false)
853 $(error PEGASUS_ENABLE_INDICATION_COUNT \
854 ($(PEGASUS_ENABLE_INDICATION_COUNT)) invalid, must be true or false)
855 endif
856 endif
857 endif
858
|
859 karl 1.151 ############################################################################
|
860 yi.zhou 1.134 #
|
861 jim.wunderlich 1.101 # PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP
862 #
|
863 karl 1.172 # PEGASUS_DISABLE_SLP has been deprecated. New use model is:
|
864 jim.wunderlich 1.101 #
|
865 jim.wunderlich 1.112 # Use PEGASUS_ENABLE_SLP=true to enable compilation of SLP functions.
866 #
|
867 kumpf 1.140 # Use PEGASUS_ENABLE_SLP=false to disable compilation of SLP functions.
|
868 jim.wunderlich 1.101 #
869 # NOTE. Effective with Bug # 2633 some platforms enable SLP.
|
870 karl 1.75 # To see which platforms look for platform make files that set
|
871 kumpf 1.140 # the variable PEGASUS_ENABLE_SLP.
|
872 jim.wunderlich 1.101 #
873 #
|
874 jim.wunderlich 1.112
|
875 karl 1.39 ifdef PEGASUS_ENABLE_SLP
|
876 jim.wunderlich 1.101 ifdef PEGASUS_DISABLE_SLP
877 $(error Conflicting defines PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP both set)
878 endif
|
879 jim.wunderlich 1.112 endif
880
881 ifdef PEGASUS_DISABLE_SLP
882 $(error PEGASUS_DISABLE_SLP has been deprecated. Please use PEGASUS_ENABLE_SLP=[true/false] )
883
884 PEGASUS_ENABLE_SLP=false
885
886 endif
887
888 ifdef PEGASUS_ENABLE_SLP
889 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
890 david.dillard 1.65 DEFINES += -DPEGASUS_ENABLE_SLP
|
891 jim.wunderlich 1.112 else
892 ifneq ($(PEGASUS_ENABLE_SLP),false)
893 $(error PEGASUS_ENABLE_SLP ($(PEGASUS_ENABLE_SLP)) invalid, must be true or false)
|
894 kumpf 1.140 endif
|
895 jim.wunderlich 1.112 endif
|
896 karl 1.39 endif
|
897 karl 1.36
|
898 jim.wunderlich 1.121
899 ############################################################################
900 #
901 # PEGASUS_USE_OPENSLP
|
902 karl 1.172
903 ## NOTE: This variable has been deprecated and superceeded by the use of
|
904 kumpf 1.183 ## PEGASUS_USE_EXTERNAL_SLP. The use of this variable may be
|
905 karl 1.172 ## removed from Pegasus in future releases. It is converted to the
906 ## PEGASUS_USE_EXTERNAL_SLP variable in the following function.
907 ## Do not allow PEGASUS_USE_EXTERNAL_SLP if PEGASUS_ENABLE_SLP not set and
908 ## insure that PEGASUS_USE_OPENSLP and PEGASUS_USE_EXTERNAL_SLP are not used
909 ## simultaneously
|
910 jim.wunderlich 1.121 #
911 # Environment variable to set openslp as SLP environment to use
912 # for SLP Directory and User Agents.
913 #
914 # Allows enabling use of openslp interfaces for slp instead of the
915 # internal pegasus slp agent. Note that this does not disable the
916 # compilation of the internal agent code, etc. However, it assumes
917 # openslp is installed on the platform and changes the interfaces
|
918 kumpf 1.183 # to match this.
|
919 jim.wunderlich 1.121 #
920 # Use this variable in conjunction with PEGASUS_OPENSLP_HOME
|
921 kumpf 1.140 # to enable OpenSlp as the slp implementation.
|
922 jim.wunderlich 1.121 #
923 # NOTE that it has no affect if the PEGASUS_ENABLE_SLP etc. flags are not set.
924 #
925
926 ifdef PEGASUS_USE_OPENSLP
|
927 karl 1.172 ifdef PEGASUS_USE_EXTERNAL_SLP
928 $(error Both PEGASUS_USE_OPENSLP and PEGASUS_USE_EXTERNAL_SLP defined. \
929 Please use PEGASUS_USE_EXTERNAL_SLP)
930 endif
931 ## if PEGASUS_USE_OPENSLP used, convert to EXTERNAL_SLP variables
932 ## as defined for openslp
|
933 s.kodali 1.171 ifeq ($(PEGASUS_USE_OPENSLP),true)
934 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
935 s.kodali 1.190 export PEGASUS_USE_EXTERNAL_SLP=openslp
|
936 karl 1.172 PEGASUS_USE_OPENSLP=
|
937 jim.wunderlich 1.121 else
|
938 karl 1.172 $(error PEGASUS_USE_OPENSLP defined but PEGASUS_ENABLE_SLP is not true. \
939 Please correct this inconsistency)
|
940 jim.wunderlich 1.121 endif
|
941 s.kodali 1.171 else
942 ifneq ($(PEGASUS_USE_OPENSLP), false)
943 $(error PEGASUS_USE_OPENSLP \
944 ($(PEGASUS_USE_OPENSLP)) \
945 invalid, must be true or false)
946 endif
947 endif
|
948 jim.wunderlich 1.121 endif
949
|
950 karl 1.172 #########################################################################
|
951 dave.sudlik 1.135 # PEP 267
952 # SLP reregistration support.
953 # PEGASUS_SLP_REG_TIMEOUT is defined as the SLP registration timeout
954 # interval, in minutes.
955 ifdef PEGASUS_SLP_REG_TIMEOUT
956 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
957 karl 1.172 DEFINES += -DPEGASUS_SLP_REG_TIMEOUT=$(PEGASUS_SLP_REG_TIMEOUT)
|
958 dave.sudlik 1.135 else
|
959 karl 1.172 $(error PEGASUS_SLP_REG_TIMEOUT defined but PEGASUS_ENABLE_SLP is not true. \
960 Please correct this inconsistency)
|
961 dave.sudlik 1.135 endif
962 endif
|
963 jim.wunderlich 1.121
964 ############################################################################
965 #
|
966 karl 1.172 # PEGASUS_USE_EXTERNAL_SLP
967
968 # Environment variable to set an external slp implementation as the SLP
969 # environment to use for SLP Directory Agents.
970
971 # This allows setting any one of several possible external SLP SAs as the
972 # interface for the SLP provider to communicate with in managing SLP templates
973 # in place of the internal SLP agent provided with Pegasus.
974 # Note: This does not disable the compilation of the internal agent code since
975 # this is used for the SLP UA defined with the pegasus client.
976 # Pegasus assumes that the external SLP defined is installed on the platform
977 # and running when pegasus is started. It changes the interfaces from the SLP
978 # provider to match the defined SLP implementation.
979
980 # This environment variable superceedes the use of PEGASUS_USE_OPENSLP since
981 # openslp is considered one of the valid external SLP environments usable by
982 # pegasus.
983
984 # The variable uses the value component to define a name for the external SLP
985 # environment that must match one of the names defined below.
986
987 karl 1.172 # This variable is not allowed if the PEGASUS_ENABLE_SLP flag is not set.
988
989 # Allow only predefined string values for the variable corresponding
990 # to external slp types that pegasus knows.
991 # Valid types are openslp (1) and solarisslp (2)
992 EXTERNAL_SLP_TYPES = openslp solarisslp
993
994 ifdef PEGASUS_USE_EXTERNAL_SLP
995 ifeq ($(PEGASUS_ENABLE_SLP),true)
996 ifeq ($(PEGASUS_USE_EXTERNAL_SLP),openslp)
997 DEFINES += -DPEGASUS_USE_EXTERNAL_SLP_TYPE=1
998 else
999 ifeq ($(PEGASUS_USE_EXTERNAL_SLP),solarisslp)
1000 DEFINES += -DPEGASUS_USE_EXTERNAL_SLP_TYPE=2
1001 else
1002 $(error PEGASUS_USE_EXTERNAL_SLP value ($(PEGASUS_USE_EXTERNAL_SLP)) \
1003 invalid. It must be one of valid SLP external types \
1004 ($(EXTERNAL_SLP_TYPES)) )
1005 endif
1006 endif
1007 endif
1008 karl 1.172 endif
1009
1010 ############################################################################
1011 #
|
1012 jim.wunderlich 1.121 # PEGASUS_OPENSLP_HOME
1013 #
|
1014 karl 1.172 # PEGASUS_OPENSLP_HOME superceeded by PEGASUS_OPEN_EXTERNAL_SLP_HOME. If
1015 # PEGASUS_OPENSLP_HOME is encountered it will create PEGASUS_OPEN_EXTERNAL_SLP_HOME
1016 #
|
1017 jim.wunderlich 1.121 # Environment variable to set home location for OpenSLP include and library
|
1018 kumpf 1.140 # files if they are located somewhere other than /usr/include and /usr/lib.
|
1019 jim.wunderlich 1.121 #
1020 # PEGASUS_USE_OPENSLP must also be defined for this environment variable
1021 # to have any effect.
1022 #
|
1023 kumpf 1.140 # This is the directory level within which both the include and lib
1024 # directories holding the OpenSLP files will be found.
|
1025 jim.wunderlich 1.121 #
|
1026 kumpf 1.140 # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
|
1027 jim.wunderlich 1.121 # then this environment variable should be set to /opt/OpenSLP.
1028 #
1029
|
1030 karl 1.172 ifdef PEGASUS_OPENSLP_HOME
1031 ifdef PEGASUS_OPEN_EXTERNAL_SLP_HOME
1032 $(error Both PEGASUS_OPENSLP_HOME and PEGASUS_OPEN_EXTERNAL_SLP_HOME defined. \
1033 Please use PEGASUS_OPEN_EXTERNAL_SLP_HOME)
1034 else
|
1035 s.kodali 1.190 export PEGASUS_EXTERNAL_SLP_HOME=$(PEGASUS_OPENSLP_HOME)
|
1036 karl 1.172 endif
1037 endif
1038 ############################################################################
1039 #
1040 # PEGASUS_EXTERNAL_SLP_HOME
1041 #
1042 # Environment variable to set home location for External SLP include and library
1043 # files if they are located somewhere other than /usr/include and /usr/lib.
1044 #
1045 # This variable superceeds PEGASUS_OPENSLP_HOME to match the use of
1046 # PEGASUS_USE_EXTERNAL_SLP variable.
1047 #
1048 # PEGASUS_USE_EXTERNAL_SLP must also be defined for this environment variable
1049 # to have any effect.
1050 #
1051 # This is the directory level within which both the include and lib
1052 # directories holding the OpenSLP files will be found.
1053 #
1054 # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
1055 # then this environment variable should be set to /opt/OpenSLP.
1056 #
|
1057 jim.wunderlich 1.121
|
1058 karl 1.172 ############################################################################
|
1059 sushma.fernandes 1.114 #
|
1060 kumpf 1.140 # Enable this flag to allow the handshake to continue regardless of verification result
|
1061 sushma.fernandes 1.114 #
1062 ifdef PEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
1063 DEFINES += -DPEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
1064 endif
1065
|
1066 karl 1.151 ############################################################################
1067 #
1068 # PEGASUS_ENABLE_INTEROP_PROVIDER
1069 # Enables the interop provider AND the server profile.
1070 # initially this was activated by setting either the perfinst or slp enable
1071 # flags. This allows activating this function without any either perfinst or
1072 # slp enabled. Note that if either of these are enabled, this funtion is also
1073 # enabled
1074
1075 ## if either slp or perfinst are enabled and this is false, flag error
1076 ## This gets messy because should account for both postive and negative on
1077 ## interop so we don't get multiples.
1078
1079 ifdef PEGASUS_ENABLE_SLP
1080 ifeq ($(PEGASUS_ENABLE_SLP),true)
1081 ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1082 PEGASUS_ENABLE_INTEROP_PROVIDER = true
1083 else
1084 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1085 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if SLP enabled)
1086 endif
1087 karl 1.151 endif
1088 endif
1089 endif
1090
1091 ## if PERFINST enabled, set to force interop.
1092 ifndef PEGASUS_DISABLE_PERFINST
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 PERFINST enabled)
1098 endif
1099 endif
1100 endif
1101
|
1102 venkat.puvvada 1.165 #
1103 ## PEP 323, DMTF Indications Profile support, stage 1
1104 #
1105 ifdef PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT
1106 ifeq ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT), true)
1107 ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1108 PEGASUS_ENABLE_INTEROP_PROVIDER = true
1109 else
1110 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1111 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if DMTF Indications profile support is enabled)
1112 endif
1113 endif
|
1114 karl 1.195.2.1 DEFINES += -DPEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT -DPEGASUS_ENABLE_INDICATION_ORDERING
|
1115 venkat.puvvada 1.165 else
1116 ifneq ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT),false)
1117 $(error PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT)) invalid, must be true or false)
1118 endif
1119 endif
1120 endif
|
1121 karl 1.151
|
1122 venkat.puvvada 1.175 ifdef PEGASUS_ENABLE_INTEROP_PROVIDER
1123 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),true)
1124 DEFINES += -DPEGASUS_ENABLE_INTEROP_PROVIDER
1125 else
1126 ifneq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1127 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true or false)
1128 endif
1129 endif
1130 endif
1131
1132
|
1133 karl 1.151 ############################################################################
|
1134 karl 1.60 # set PEGASUS_DEBUG into the DEFINES if it exists.
1135 # Note that this flag is the general separator between
1136 # debug compiles and non-debug compiles and controls both
1137 # the use of any debug options on compilers and linkers
1138 # and general debug support that we want to be turned on in
|
1139 chip 1.76 # debug mode.
|
1140 karl 1.60 ifdef PEGASUS_DEBUG
|
1141 david.dillard 1.65 DEFINES += -DPEGASUS_DEBUG
|
1142 kumpf 1.88
1143 # Indications debugging options
1144 ifdef PEGASUS_INDICATION_PERFINST
1145 DEFINES += -DPEGASUS_INDICATION_PERFINST
1146 endif
1147
1148 ifdef PEGASUS_INDICATION_HASHTRACE
1149 DEFINES += -DPEGASUS_INDICATION_HASHTRACE
1150 endif
|
1151 kumpf 1.131
|
1152 karl 1.60 endif
1153
|
1154 chuck 1.42 # compile in the experimental APIs
|
1155 david.dillard 1.65 DEFINES += -DPEGASUS_USE_EXPERIMENTAL_INTERFACES
|
1156 chuck 1.42
|
1157 kumpf 1.93 # Ensure that the deprecated interfaces are defined in the Pegasus libraries.
1158 # One may wish to disable these interfaces if binary compatibility with
1159 # previous Pegasus releases is not required.
1160 ifndef PEGASUS_DISABLE_DEPRECATED_INTERFACES
1161 DEFINES += -DPEGASUS_USE_DEPRECATED_INTERFACES
1162 endif
1163
|
1164 w.white 1.57 # Set compile flag to control compilation of CIMOM statistics
|
1165 karl 1.73 ifdef PEGASUS_DISABLE_PERFINST
|
1166 marek 1.136 DEFINES += -DPEGASUS_DISABLE_PERFINST
|
1167 w.white 1.57 endif
|
1168 kumpf 1.56
|
1169 karl 1.96 # Set compile flag to control compilation of SNIA Extensions
1170 ifdef PEGASUS_SNIA_EXTENSIONS
|
1171 marek 1.136 DEFINES += -DPEGASUS_SNIA_EXTENSIONS
|
1172 karl 1.96 endif
1173
|
1174 denise.eckstein 1.119 ifdef PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
1175 ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
|
1176 marek 1.136 DEFINES += -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
|
1177 denise.eckstein 1.119 else
1178 ifneq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), false)
1179 $(error PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER \
1180 ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER)) invalid, \
1181 must be true or false)
1182 endif
1183 endif
1184 endif
1185
|
1186 mark.hamzy 1.124 ifdef PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
1187 ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
|
1188 marek 1.136 DEFINES += -DPEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
|
1189 s.kodali 1.186 ifndef PEGASUS_JAVA_CLASSPATH_DELIMITER
1190 PEGASUS_JAVA_CLASSPATH_DELIMITER = :
1191 endif
1192
1193 ifndef PEGASUS_JVM
1194 PEGASUS_JVM = sun
1195 endif
1196 ifeq ($(PEGASUS_JVM),gcj)
1197 PEGASUS_JAVA_COMPILER = gcj -C
1198 PEGASUS_JAVA_JAR = fastjar
1199 PEGASUS_JAVA_INTERPRETER = gij
1200 else
1201 PEGASUS_JAVA_COMPILER = javac -target 1.4 -source 1.4
1202 PEGASUS_JAVA_JAR = jar
1203 PEGASUS_JAVA_INTERPRETER = java
1204 endif
1205
|
1206 mark.hamzy 1.124 else
1207 ifneq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), false)
1208 $(error PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER \
1209 ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER)) invalid, \
1210 must be true or false)
1211 endif
1212 endif
1213 endif
1214
|
1215 kumpf 1.95 # Allow remote CMPI functionality to be enabled
1216 ifdef PEGASUS_ENABLE_REMOTE_CMPI
|
1217 marek 1.136 DEFINES += -DPEGASUS_ENABLE_REMOTE_CMPI
|
1218 kumpf 1.95 endif
1219
|
1220 chip 1.76
|
1221 karl 1.17 ############################################################
1222 #
1223 # Set up other Make Variables that depend on platform config files
1224 #
1225 ############################################################
1226
1227 # This is temporary until we end up with a better place to
1228 # put this variable
1229 # Makefiles can do directory remove with
1230 # $(RMREPOSITORY) repositoryname
1231 #
1232 RMREPOSITORY = $(RMDIRHIER)
1233
|
1234 s.kodali 1.191 ifndef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
1235 PEGASUS_USE_RELEASE_CONFIG_OPTIONS=false
1236 endif
1237
1238 ifeq ($(PEGASUS_USE_RELEASE_CONFIG_OPTIONS),true)
1239 DEFINES += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
1240 else
1241 ifneq ($(PEGASUS_USE_RELEASE_CONFIG_OPTIONS),false)
1242 $(error PEGASUS_USE_RELEASE_CONFIG_OPTIONS \
1243 ($(PEGASUS_USE_RELEASE_CONFIG_OPTIONS)) invalid, must be true or false)
1244 endif
|
1245 w.otsuka 1.62 endif
1246
1247 ifdef PEGASUS_USE_RELEASE_DIRS
|
1248 marek 1.136 DEFINES += -DPEGASUS_USE_RELEASE_DIRS
|
1249 w.otsuka 1.62 endif
|
1250 mday 1.27
|
1251 denise.eckstein 1.110 ifdef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
|
1252 marek 1.136 DEFINES += -DPEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
|
1253 denise.eckstein 1.110 endif
1254
|
1255 kumpf 1.64 # Unless otherwise specified, Pegasus libraries go in $(PEGASUS_HOME)/lib
1256 ifndef PEGASUS_DEST_LIB_DIR
|
1257 david.dillard 1.65 PEGASUS_DEST_LIB_DIR = lib
|
1258 kumpf 1.64 endif
|
1259 mday 1.28
|
1260 gs.keenan 1.77 ifeq ($(OS),VMS)
1261 DEFINES += -DPEGASUS_DEST_LIB_DIR="""$(PEGASUS_DEST_LIB_DIR)"""
1262 else
1263 DEFINES += -DPEGASUS_DEST_LIB_DIR=\"$(PEGASUS_DEST_LIB_DIR)\"
1264 endif
1265
|
1266 w.otsuka 1.79 ################################################################################
1267 ##
|
1268 mike 1.105 ## PEGASUS_CLASS_CACHE_SIZE
1269 ##
1270 ## This environment variable gives the size of the class cache used by
1271 ## the CIM repository. When it is undefined, the size defaults to something
1272 ## relatively small (see src/Pegasus/Repository/CIMRepository.cpp). If
1273 ## defined, it gives the size of the class cache. If it is 0 , the class
1274 ## cache is not defined compiled in at all.
1275 ##
1276 ################################################################################
1277
1278 ifdef PEGASUS_CLASS_CACHE_SIZE
1279 DEFINES += -DPEGASUS_CLASS_CACHE_SIZE=$(PEGASUS_CLASS_CACHE_SIZE)
1280 endif
1281
1282 ################################################################################
1283 ##
|
1284 w.otsuka 1.79 ## Additional build flags passed in through environment variables.
1285 ## These flags are added to the compile/link commands.
1286 ##
1287 ################################################################################
1288
1289 ifdef PEGASUS_EXTRA_CXX_FLAGS
1290 EXTRA_CXX_FLAGS = $(PEGASUS_EXTRA_CXX_FLAGS)
1291 endif
1292
1293 ifdef PEGASUS_EXTRA_C_FLAGS
1294 EXTRA_C_FLAGS = $(PEGASUS_EXTRA_C_FLAGS)
1295 endif
1296
1297 ifdef PEGASUS_EXTRA_LINK_FLAGS
1298 EXTRA_LINK_FLAGS = $(PEGASUS_EXTRA_LINK_FLAGS)
1299 endif
1300
|
1301 mike 1.126 ##==============================================================================
1302 ##
1303 ## By definining PEGASUS_USE_STATIC_LIBRARIES in the environment and STATIC
1304 ## in the Makefile, a static library is produced rather than a shared one.
1305 ## PEGASUS_USE_STATIC_LIBRARIES should be "true" or "false".
1306 ##
1307 ##==============================================================================
1308
1309 ifdef PEGASUS_USE_STATIC_LIBRARIES
|
1310 kumpf 1.185 ifeq ($(OS_TYPE),windows)
1311 $(error PEGASUS_USE_STATIC_LIBRARIES is not support on windows.)
1312 else
1313 ifneq ($(PEGASUS_USE_STATIC_LIBRARIES),true)
1314 $(error PEGASUS_USE_STATIC_LIBRARIES \
1315 ($(PEGASUS_USE_STATIC_LIBRARIES)) invalid, must be true.)
1316 endif
|
1317 kumpf 1.140 endif
1318 endif
1319
1320 ##==============================================================================
1321 ##
1322 ## PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1323 ##
1324 ## Enables privilege separation support (uses the executor process to
1325 ## perform privileged operations).
1326 ##
1327 ##==============================================================================
1328
1329 ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1330 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1331 DEFINES += -DPEGASUS_ENABLE_PRIVILEGE_SEPARATION
1332 else
1333 ifneq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),false)
1334 $(error PEGASUS_ENABLE_PRIVILEGE_SEPARATION \
1335 ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION)) invalid, must be true or false)
1336 endif
1337 endif
1338 kumpf 1.140
|
1339 kumpf 1.148 ## Defines the user context of the cimservermain process when privilege
|
1340 kumpf 1.140 ## separation is enabled.
|
1341 kumpf 1.148 PEGASUS_CIMSERVERMAIN_USER = cimsrvr
|
1342 kumpf 1.141 DEFINES += -DPEGASUS_CIMSERVERMAIN_USER=\"$(PEGASUS_CIMSERVERMAIN_USER)\"
|
1343 mike 1.126 endif
|
1344 mark.hamzy 1.127
|
1345 kumpf 1.162
1346 ##==============================================================================
1347 ##
1348 ## PEGASUS_ENABLE_PROTOCOL_WSMAN
1349 ##
1350 ## Enables the WS-Management protocol in the CIM Server.
1351 ##
1352 ##==============================================================================
1353
1354 ifndef PEGASUS_ENABLE_PROTOCOL_WSMAN
1355 PEGASUS_ENABLE_PROTOCOL_WSMAN = false
1356 endif
1357
1358 ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
1359 DEFINES += -DPEGASUS_ENABLE_PROTOCOL_WSMAN
1360 else
1361 ifneq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),false)
1362 $(error PEGASUS_ENABLE_PROTOCOL_WSMAN ($(PEGASUS_ENABLE_PROTOCOL_WSMAN)) invalid, must be true or false)
1363 endif
1364 endif
1365
|
1366 kumpf 1.170 ##==============================================================================
1367 ##
|
1368 karl 1.195.2.3 ## PEGASUS_PAM_SESSION_SECURITY
1369 ##
1370 ## This is a new method to handle authentication with PAM in case it is required
1371 ## to keep the PAM session established by pam_start() open across an
1372 ## entire CIM request.
1373 ##
1374 ## This feature contradicts PEGASUS_PAM_AUTHENTICATION and
1375 ## PEGASUS_USE_PAM_STANDALONE_PROC
1376 ## Because of the additional process this feature is not compatible with
1377 ## Privilege Separation.
1378 ##
1379 ##==============================================================================
1380
1381 ifeq ($(PEGASUS_PAM_SESSION_SECURITY),true)
1382 ifdef PEGASUS_PAM_AUTHENTICATION
1383 $(error "PEGASUS_PAM_AUTHENTICATION must NOT be defined when PEGASUS_PAM_SESSION_SECURITY is defined")
1384 endif
1385 ifdef PEGASUS_USE_PAM_STANDALONE_PROC
1386 $(error "PEGASUS_USE_PAM_STANDALONE_PROC must NOT be defined when PEGASUS_PAM_SESSION_SECURITY is defined")
1387 endif
1388 ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1389 karl 1.195.2.3 $(error "PEGASUS_ENABLE_PRIVILEGE_SEPARATION must NOT be defined when PEGASUS_PAM_SESSION_SECURITY is defined")
1390 endif
1391 # Compile in the code required for PAM
1392 # and compile out the code that uses the password file.
1393 DEFINES += -DPEGASUS_PAM_SESSION_SECURITY -DPEGASUS_NO_PASSWORDFILE
1394 # Link with libpam only where it is needed.
1395 ifeq ($(HAS_PAM_DEPENDENCY),true)
1396 SYS_LIBS += -lpam
1397 endif
1398 endif
1399
1400
1401 ##==============================================================================
1402 ##
|
1403 kumpf 1.170 ## PEGASUS_PAM_AUTHENTICATION
1404 ##
1405 ##==============================================================================
1406
1407 ifdef PEGASUS_PAM_AUTHENTICATION
1408 # Compile in the code required for PAM authentication
1409 # and compile out the code that uses the password file.
1410 DEFINES += -DPEGASUS_PAM_AUTHENTICATION -DPEGASUS_NO_PASSWORDFILE
1411
1412 # Link with libpam only where it is needed.
1413 ifeq ($(HAS_PAM_DEPENDENCY),true)
1414 SYS_LIBS += -lpam
1415 endif
1416 endif
|
1417 kumpf 1.162
|
1418 kumpf 1.140 ##==============================================================================
1419 ##
1420 ## PEGASUS_USE_PAM_STANDALONE_PROC
1421 ##
1422 ##==============================================================================
1423
1424 ifdef PEGASUS_USE_PAM_STANDALONE_PROC
|
1425 karl 1.195.2.2 ifndef PEGASUS_PAM_AUTHENTICATION
1426 $(error "PEGASUS_PAM_AUTHENTICATION must be defined when PEGASUS_USE_PAM_STANDALONE_PROC is defined")
1427 endif
1428 DEFINES += -DPEGASUS_USE_PAM_STANDALONE_PROC
|
1429 kumpf 1.140 endif
1430
1431 ##==============================================================================
|
1432 mark.hamzy 1.127
|
1433 dmitry.mikulin 1.155 # Disable client timeouts when we're doing a valgrind build
|
1434 kumpf 1.157 ifdef PEGASUS_TEST_VALGRIND_LOG_DIR
|
1435 dmitry.mikulin 1.156 DEFINES += -DPEGASUS_DISABLE_CLIENT_TIMEOUT -DPEGASUS_TEST_VALGRIND
|
1436 dmitry.mikulin 1.155 endif
1437
|
1438 s.kodali 1.161 ## ======================================================================
1439 ##
1440 ## PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
|
1441 kumpf 1.183 ## This controls allowing the path specified in the Location property of
|
1442 s.kodali 1.161 ## PG_ProviderModule class.
1443 ##
1444 ## Set to "true", It allows the absolute path specified in the Location property
1445 ## of PG_ProviderModule class. Otherwise it does not allow the absolute path.
1446 ## see bug 7289 for background information concerning this config variable.
1447 ##
1448
1449 ifndef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1450 PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE=false
1451 endif
1452
1453 ifdef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1454 ifeq ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE),true)
1455 DEFINES += -DPEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1456 else
1457 ifneq ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE),false)
1458 $(error PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE \
1459 ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE)) \
1460 invalid, must be true or false)
1461 endif
1462 endif
1463 s.kodali 1.161 endif
1464
|
1465 mike 1.178 ##==============================================================================
1466 ##
|
1467 mike 1.180 ## PEGASUS_ENABLE_PROTOCOL_BINARY
|
1468 mike 1.178 ##
|
1469 mike 1.180 ## Enables the binary protocol between clients and cimserver. With provider
1470 ## agent, both requests and responses are binary. For "ordinary" clients,
1471 ## requests are XML and responses are binary. By default, this only affects
1472 ## the protocol used over local domain sockets.
|
1473 mike 1.178 ##
1474 ##==============================================================================
1475
|
1476 mike 1.180 ifndef PEGASUS_ENABLE_PROTOCOL_BINARY
1477 PEGASUS_ENABLE_PROTOCOL_BINARY=false
|
1478 mike 1.178 endif
1479
|
1480 mike 1.180 ifeq ($(PEGASUS_ENABLE_PROTOCOL_BINARY),true)
1481 DEFINES += -DPEGASUS_ENABLE_PROTOCOL_BINARY
|
1482 mike 1.178 else
|
1483 mike 1.180 ifneq ($(PEGASUS_ENABLE_PROTOCOL_BINARY),false)
1484 $(error "PEGASUS_ENABLE_PROTOCOL_BINARY must be true or false")
|
1485 mike 1.178 endif
1486 endif
|
1487 denise.eckstein 1.179
|
1488 karl 1.195.2.5
1489 ##==============================================================================
1490 ##
1491 ## PEGASUS_ENABLE_PROTOCOL_WEB
1492 ##
1493 ## Enables the GET-Method for files in order to act as a web-server
1494 ##
1495 ##
1496 ##
1497 ##
1498 ##==============================================================================
1499 ifndef PEGASUS_ENABLE_PROTOCOL_WEB
1500 PEGASUS_ENABLE_PROTOCOL_WEB = true
1501 endif
1502
1503 ifeq ($(PEGASUS_ENABLE_PROTOCOL_WEB),true)
1504 DEFINES += -DPEGASUS_ENABLE_PROTOCOL_WEB
1505 else
1506 ifneq ($(PEGASUS_ENABLE_PROTOCOL_WEB),false)
1507 $(error "PEGASUS_ENABLE_PROTOCOL_WEB must be true or false")
1508 endif
1509 karl 1.195.2.5 endif
1510
|
1511 denise.eckstein 1.179 ## ======================================================================
1512 ##
1513 ## PLATFORM_CORE_PATTERN
1514 ## This variable describes the pattern used to search for core files.
1515 ## If not defined, this variable will be set to core*.
1516 ## Only wildcard characters supported by the make wildcard function
1517 ## may be used.
1518
1519 ifndef PLATFORM_CORE_PATTERN
1520 PLATFORM_CORE_PATTERN = core*
1521 endif
|
1522 s.kodali 1.188
1523 ifdef PEGASUS_FLAVOR
1524 ifdef PEGASUS_USE_RELEASE_DIRS
1525 ifndef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
1526 $(error "PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS must be defined when both PEGASUS_FLAVOR and PEGASUS_USE_RELEASE_DIRS options are used")
1527 endif
1528 endif
1529 ifneq ($(PEGASUS_FLAVOR), tog)
1530 DEFINES += -DPEGASUS_FLAVOR=\"$(PEGASUS_FLAVOR)\"
1531 endif
1532 endif
|
1533 s.kodali 1.192
1534 ifdef PEGASUS_EXTRA_PROVIDER_LIB_DIR
1535 ifndef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
1536 $(error "PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS must be defined when PEGASUS_EXTRA_PROVIDER_LIB_DIR defined.")
1537 endif
1538 DEFINES += -DPEGASUS_EXTRA_PROVIDER_LIB_DIR=\"$(PEGASUS_EXTRA_PROVIDER_LIB_DIR):\"
1539 else
1540 DEFINES += -DPEGASUS_EXTRA_PROVIDER_LIB_DIR=\"\"
1541 endif
1542
|
1543 marek 1.195 ################################################################################
1544 ##
1545 ## PEGASUS_INITIAL_THREADSTACK_SIZE
1546 ##
1547 ## This environment variable sets the initial size of the stack on new threads.
1548 ## When it is undefined, the size defaults to something relatively small
1549 ## (see src/Pegasus/Common/Config.h or if overridden by platform see
1550 ## src/Pegasus/Common/Platform_$(PEGASUS_PLATFORM).h).
1551 ## Value is specified in number of bytes.
1552 ##
1553 ################################################################################
1554
1555 ifdef PEGASUS_INITIAL_THREADSTACK_SIZE
1556 DEFINES += -DPEGASUS_INITIAL_THREADSTACK_SIZE=$(PEGASUS_INITIAL_THREADSTACK_SIZE)
1557 endif
1558
|
1559 karl 1.195.2.3 ifndef PEGASUS_INTEROP_NAMESPACE
1560 PEGASUS_INTEROP_NAMESPACE=root/PG_InterOp
1561 else
1562 ifeq ($(PEGASUS_INTEROP_NAMESPACE),root/interop)
1563 DEFINES += -DNS_ROOT_INTEROP
1564 endif
1565 ifeq ($(PEGASUS_INTEROP_NAMESPACE),interop)
1566 DEFINES += -DNS_INTEROP
1567 endif
1568 endif
1569
1570 ##These namespaces will be used in Makefiles.
1571
1572 NAMESPACE_INTEROP = interop
1573
1574 NAMESPACE_ROOT_INTEROP = root/interop
|