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