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