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