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