1 karl 1.117 #//%2006////////////////////////////////////////////////////////////////////////
|
2 martin 1.92 #//
3 #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
6 #// IBM Corp.; EMC Corporation, The Open Group.
7 #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
9 #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 #// EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.117 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 #// EMC Corporation; Symantec Corporation; The Open Group.
|
13 martin 1.92 #//
14 #// Permission is hereby granted, free of charge, to any person obtaining a copy
15 #// of this software and associated documentation files (the "Software"), to
16 #// deal in the Software without restriction, including without limitation the
17 #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18 #// sell copies of the Software, and to permit persons to whom the Software is
19 #// furnished to do so, subject to the following conditions:
20 #//
21 #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 #//
30 #//==============================================================================
|
31 mike 1.1 ################################################################################
32 ##
33 ## Get external environment variables. Note that all external environment
34 ## variables begin with "PEGASUS_".
35 ##
36 ################################################################################
37
|
38 konrad.r 1.55 ifndef ROOT
39 ROOT = $(subst \,/,$(PEGASUS_ROOT))
40 endif
41
|
42 denise.eckstein 1.61 ifdef PEGASUS_ENVVAR_FILE
|
43 david.dillard 1.65 include $(PEGASUS_ENVVAR_FILE)
|
44 denise.eckstein 1.61 else
|
45 david.dillard 1.65 include $(ROOT)/env_var.status
|
46 denise.eckstein 1.61 endif
|
47 konrad.r 1.55
|
48 mike 1.2 ifdef PEGASUS_HOME
|
49 david.dillard 1.65 HOME_DIR = $(subst \,/,$(PEGASUS_HOME))
|
50 mike 1.1 else
|
51 david.dillard 1.65 $(error PEGASUS_HOME environment variable undefined)
|
52 mike 1.1 endif
53
|
54 karl 1.18 ifdef PEGASUS_ROOT
55 ROOT = $(subst \,/,$(PEGASUS_ROOT))
56 else
|
57 david.dillard 1.65 $(error PEGASUS_ROOT environment variable undefined)
|
58 karl 1.18 endif
59
|
60 denise.eckstein 1.158 ############################################################################
61 # OpenPegasus relies on the existence of an external set of libraries to
62 # support localized messages. Today, the only supported package is
63 # the International Components for Unicode (ICU) OSS project,
64 # http://oss.software.ibm.com/icu. If PEGASUS_HAS_ICU is true,
65 # OpenPegasus will use the ICU library.
66 #
67 # ICU_ROOT points to the root directory of the ICU source tree. If set,
68 # the OpenPegasus build will use this variable to locate the ICU include
69 # files. If not set, the ICU include files are expected to be installed
70 # in directories that are searched by default.
71 #
72 # ICU_INSTALL points to the directory containing the ICU libraries.
73 # If set, the OpenPegasus will use this variable to locate the ICU
74 # libraries. If not set, the ICU libraries are expected to be installed
75 # in a directory that is searched by default.
76 #
77 # If PEGASUS_HAS_ICU is not set and either ICU_ROOT or ICU_INSTALL is
78 # set, the value of PEGASUS_HAS_ICU will be set to true.
79 ############################################################################
80 ifdef PEGASUS_HAS_ICU
81 denise.eckstein 1.158 ifneq ($(PEGASUS_HAS_ICU),true)
82 ifneq ($(PEGASUS_HAS_ICU),false)
83 $(error PEGASUS_HAS_ICU ($(PEGASUS_HAS_ICU)) \
84 invalid, must be true or false)
85 endif
86 endif
87 else
88 ifdef ICU_ROOT
89 PEGASUS_HAS_ICU = true
90 else
91 ifdef ICU_INSTALL
92 PEGASUS_HAS_ICU = true
93 endif
94 endif
95 endif
96
97 ifdef PEGASUS_HAS_MESSAGES
98 ifneq ($(PEGASUS_HAS_ICU),true)
99 $(error Support for localized messages in OpenPegasus \
100 requires PEGASUS_HAS_ICU to be true)
101 endif
102 denise.eckstein 1.158 endif
103
|
104 chuck 1.35 # l10n
105 ifdef ICU_ROOT
106 ICUROOT = $(subst \,/,$(ICU_ROOT))
107 endif
108
|
109 kumpf 1.21 ifdef PEGASUS_TMP
|
110 david.dillard 1.65 TMP_DIR = $(subst \,/,$(PEGASUS_TMP))
|
111 kumpf 1.21 else
|
112 david.dillard 1.65 TMP_DIR = .
|
113 kumpf 1.21 endif
114
|
115 kumpf 1.26 ifdef PEGASUS_DISPLAYCONSUMER_DIR
|
116 david.dillard 1.65 DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_DISPLAYCONSUMER_DIR))
|
117 kumpf 1.26 else
|
118 david.dillard 1.65 DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_HOME))
|
119 kumpf 1.26 endif
120
|
121 aruran.ms 1.102 ifdef PEGASUS_DEBUG
122 PEGASUS_USE_DEBUG_BUILD_OPTIONS = 1
123 endif
124
|
125 david.dillard 1.66 PLATFORM_FILES=$(wildcard $(ROOT)/mak/platform*.mak)
|
126 karl 1.78 PLATFORM_TEMP=$(subst $(ROOT)/mak/platform_,, $(PLATFORM_FILES))
|
127 jim.wunderlich 1.104 VALID_PLATFORMS=$(subst .mak, , $(PLATFORM_TEMP))
|
128 mike 1.8
129 ifndef PEGASUS_PLATFORM
|
130 david.dillard 1.66 $(error PEGASUS_PLATFORM environment variable undefined. Please set to\
131 one of the following:$(VALID_PLATFORMS))
|
132 mike 1.8 endif
133
|
134 mike 1.1 ################################################################################
|
135 denise.eckstein 1.116 ifeq ($(findstring _GNU, $(PEGASUS_PLATFORM)), _GNU)
|
136 mike 1.118 ifdef CXX
137 GCC_VERSION = $(shell $(CXX) -dumpversion)
138 else
139 GCC_VERSION = $(shell g++ -dumpversion)
140 endif
|
141 denise.eckstein 1.116 else
142 GCC_VERSION =
143 endif
|
144 mike 1.1
|
145 denise.eckstein 1.143 #############################################################################
146 ## As a general rule, the directory structure for the object files mirrors
147 ## the directory structure of the source files. E.g.,
148 ## $PEGASUS_HOME/obj/Pegasus/Common contains the object files for the
149 ## source files in $PEGASUS_ROOT/src/Pegasus/Common. Each source-level
150 ## Makefile includes a DIR value that defines this common path (e.g.,
151 ## Pegasus/Common). In a small number of cases, source files are built
152 ## multiple times with difference compile options.
153 ## To handle this situation, the ALT_OBJ_DIR variable can be used to
154 ## specify an alternative object directory for use in building the
155 ## objects defined in the Makefile.
156 ##
157
158 ifndef ALT_OBJ_DIR
159 OBJ_DIR = $(HOME_DIR)/obj/$(DIR)
160 else
161 OBJ_DIR = $(HOME_DIR)/obj/$(ALT_OBJ_DIR)
162 endif
163
164 #############################################################################
165
|
166 kumpf 1.157 ifdef PEGASUS_TEST_VALGRIND_LOG_DIR
|
167 dmitry.mikulin 1.155 BIN_DIR = $(HOME_DIR)/bin_exe
168 VALGRIND_SCRIPT_BIN_DIR = $(HOME_DIR)/bin
169 else
170 BIN_DIR = $(HOME_DIR)/bin
171 endif
|
172 kumpf 1.22 LIB_DIR = $(HOME_DIR)/lib
|
173 chuck 1.35
174 # l10n
175 # define the location for the compiled messages
176 MSG_ROOT = $(HOME_DIR)/msg
|
177 kumpf 1.22
|
178 jim.wunderlich 1.90 #############################################################################
|
179 kumpf 1.140 ## The following REPOSITORY_XXX variables are only used within the
180 ## makefiles for building the repository (cimmofl) and running the tests.
|
181 jim.wunderlich 1.90 ## They have no effect on CIMconfig initial startup configuration.
182
183 #
|
184 kumpf 1.22 # define the location for the repository
|
185 jim.wunderlich 1.90 #
186 # NOTE: There is another variable efined in many of the test makefiles
187 # called REPOSITORYDIR. It is a local variable in each of those Makefiles
|
188 kumpf 1.140 # to localally control where the temporay small repository they
|
189 jim.wunderlich 1.90 # build, use and then delete is located. Most of the time it is set to TMP_DIR.
190 #
|
191 jim.wunderlich 1.91
|
192 kumpf 1.22 REPOSITORY_DIR = $(HOME_DIR)
|
193 jim.wunderlich 1.90
194 #
|
195 kumpf 1.140 # WARNING: The REPOSITORY_NAME varible is not used by all the test,
|
196 jim.wunderlich 1.90 # many of them are still hardcoded to "repository". What this means
|
197 kumpf 1.140 # is that you can change the repository name and build it. But you
|
198 jim.wunderlich 1.90 # cannot run the test without many of them failing
199 #
|
200 jim.wunderlich 1.91
|
201 jim.wunderlich 1.81 REPOSITORY_NAME = repository
|
202 jim.wunderlich 1.91
|
203 jim.wunderlich 1.90
|
204 jim.wunderlich 1.81 REPOSITORY_ROOT = $(REPOSITORY_DIR)/$(REPOSITORY_NAME)
205
|
206 kumpf 1.140 # define the repository mode
|
207 h.sterling 1.89 # XML = XML format
208 # BIN = Binary format
|
209 jim.wunderlich 1.81 #
|
210 jim.wunderlich 1.91 ifndef PEGASUS_REPOSITORY_MODE
211 ## set to default value
212 REPOSITORY_MODE = XML
|
213 kumpf 1.140 else
|
214 jim.wunderlich 1.91 ## validate assigned value
215 ifeq ($(PEGASUS_REPOSITORY_MODE),XML)
216 REPOSITORY_MODE = XML
217 else
218 ifeq ($(PEGASUS_REPOSITORY_MODE),BIN)
219 REPOSITORY_MODE = BIN
220 else
221 $(error PEGASUS_REPOSITORY_MODE ($(PEGASUS_REPOSITORY_MODE)) \
222 is invalid. It must be set to either XML or BIN)
223 endif
224 endif
|
225 jim.wunderlich 1.90 endif
226
|
227 jim.wunderlich 1.91
|
228 jim.wunderlich 1.90 ###########################################################################
|
229 mike 1.1
|
230 kumpf 1.23 # The two variables, CIM_SCHEMA_DIR and CIM_SCHEMA_VER,
|
231 chip 1.76 # are used to control the version of the CIM Schema
|
232 kumpf 1.23 # loaded into the Pegasus Internal, InterOp,
233 # root/cimv2 and various test namespaces.
234 #
|
235 chip 1.76 # Update the following two environment variables to
|
236 kumpf 1.23 # change the version.
237
|
238 kumpf 1.37 # The environment variable PEGASUS_CIM_SCHEMA can be used
|
239 chip 1.76 # to change the values of CIM_SCHEMA_DIR, CIM_SCHEMA_VER
|
240 kumpf 1.37 # and ALLOW_EXPERIMENTAL.
241 #
242 # To use the PEGASUS_CIM_SCHEMA variable the Schema mof
243 # files must be placed in the directory
|
244 denise.eckstein 1.115 # $(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
|
245 chip 1.76 #
|
246 kumpf 1.37 # The value of PEGASUS_CIM_SCHEMA must conform to the
247 # following syntax:
248 #
249 # CIM[Prelim]<CIM_SCHEMA_VER>
250 #
|
251 chip 1.76 # The string "Prelim" should be included if the
|
252 kumpf 1.37 # Schema contains "Experimental" class definitions.
253 #
254 # The value of <CIM_SCHEMA_VER> must be the value
|
255 chip 1.76 # of the version string included by the DMTF as
256 # part of the mof file names (e.g, CIM_Core27.mof).
|
257 kumpf 1.37 # Therefore, for example, the value of <CIM_SCHEMA_VER>
258 # for CIM27 Schema directories MUST be 27.
259 #
|
260 chip 1.76 # Examples of valid values of PEGASUS_CIM_SCHEMA
|
261 kumpf 1.37 # include CIMPrelim27, CIM27, CIMPrelim28, and CIM28.
262 #
263 # Note the CIMPrelim271 would NOT be a valid value
264 # for PEGASUS_CIM_SCHEMA because the version string
265 # portion of the mof files (e.g., CIM_Core27.mof) in
266 # the CIMPrelimin271 directory is 27 not 271.
|
267 kumpf 1.23
|
268 gerarda 1.29 # ***** CIM_SCHEMA_DIR INFO ****
269 # If CIM_SCHEMA_DIR changes to use a preliminary schema which
270 # has experimentals make sure and change the path below to appopriate
271 # directory path. Example: CIMPrelim271 is preliminary and has
272 # experimental classes. Since experimental classes exist the -aE
273 # option of the mof compiler needs to be set.
274 # *****
|
275 kumpf 1.37
|
276 denise.eckstein 1.154 ifndef PEGASUS_CIM_SCHEMA
277 PEGASUS_CIM_SCHEMA=CIM2131
278 endif
279
280 CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
281 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),)
282 CIM_SCHEMA_VER=
|
283 kumpf 1.37 else
|
284 denise.eckstein 1.154 CIM_SCHEMA_VER=$(patsubst CIM%,%,$(patsubst CIMPrelim%,%,$(PEGASUS_CIM_SCHEMA)))
|
285 kumpf 1.37 endif
286
287 ifneq (, $(findstring Prelim, $(CIM_SCHEMA_DIR)))
|
288 david.dillard 1.65 ALLOW_EXPERIMENTAL = -aE
|
289 gerarda 1.29 else
|
290 david.dillard 1.65 ALLOW_EXPERIMENTAL =
|
291 gerarda 1.29 endif
292
|
293 bob 1.5 LEX = flex
294
|
295 jim.wunderlich 1.94 ## ======================================================================
296 ##
|
297 kumpf 1.140 ## PEGASUS_ENABLE_SORTED_DIFF
|
298 jim.wunderlich 1.94 ## This controls if the DIFFSORT function is used rather than a simple DIFF of
299 ## of the test results files to the static results file.
300 ##
301 ## Set to "true" enables the sorted diffs of results to static results files.
302 ## otherwise results in regular diffs of results to static results files.
|
303 kumpf 1.140 ## see bug 2283 for background information concerning this config variable.
|
304 jim.wunderlich 1.94 ##
305 ## Defaults to true.
306 ##
307 ##
308 ifndef PEGASUS_ENABLE_SORTED_DIFF
309 PEGASUS_ENABLE_SORTED_DIFF=true
310 endif
311
|
312 jim.wunderlich 1.86 ## ========================================================================
|
313 kumpf 1.140 ## DIFFSORT function definition
|
314 jim.wunderlich 1.86 ## Here is an example using the DIFFSORT function:
|
315 kumpf 1.140 ##
|
316 jim.wunderlich 1.86 ## difftest: FORCE
|
317 h.sterling 1.89 ## @ test > result
|
318 jim.wunderlich 1.86 ## @ $(call DIFFSORT,result,standard_result)
|
319 h.sterling 1.89 ## @ $(ECHO) +++++ all test passed
|
320 jim.wunderlich 1.86 ##
321
322 define NL
323
324
325 endef
326
|
327 kumpf 1.140 ifndef FORCE_NOCASE
328
|
329 jim.wunderlich 1.86 DIFFSORT = $(SORT) $(1) > $(1).tmp $(NL) \
330 $(SORT) $(2) > $(2).tmp $(NL) \
331 $(DIFF) $(1).tmp $(2).tmp $(NL) \
332 $(RM) -f $(1).tmp $(NL) \
333 $(RM) -f $(2).tmp $(NL)
334
|
335 marek 1.107 else
336
337 DIFFSORT = $(SORT) -f $(1) > $(1).tmp $(NL) \
338 $(SORT) -f $(2) > $(2).tmp $(NL) \
339 $(DIFF) -i $(1).tmp $(2).tmp $(NL) \
340 $(RM) -f $(1).tmp $(NL) \
341 $(RM) -f $(2).tmp $(NL)
342
343 endif
344
345 DIFFSORTNOCASE = $(SORT) $(1) > $(1).tmp $(NL) \
346 $(SORT) $(2) > $(2).tmp $(NL) \
347 $(DIFF) -i $(1).tmp $(2).tmp $(NL) \
348 $(RM) -f $(1).tmp $(NL) \
349 $(RM) -f $(2).tmp $(NL)
350
|
351 jim.wunderlich 1.104 #
352 # The following is used to define the usage message for MakeFile
353 #
354 # See the pegasus/Makfile for an exampleof its usage.
355 #
356 USAGE = @$(ECHO) " $(1)"
357
|
358 mike 1.8 ################################################################################
359 ##
360 ## Attempt to include a platform configuration file:
361 ##
362 ################################################################################
363
|
364 david.dillard 1.66 PLATFORM_FILE = $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
365 ifneq ($(wildcard $(PLATFORM_FILE)), )
366 include $(PLATFORM_FILE)
367 else
|
368 david.dillard 1.65 $(error PEGASUS_PLATFORM environment variable must be set to one of\
|
369 david.dillard 1.66 the following:$(VALID_PLATFORMS))
|
370 mike 1.8 endif
|
371 karl 1.17
|
372 karl 1.36 ################################################################################
373 ##
374 ## Set up any platform independent compile conditionals by adding them to
375 ## precreated FLAGS parameter.
|
376 chip 1.76 ## Assumes that the basic flags have been setup in FLAGS.
|
377 karl 1.36 ## Assumes that compile time flags are controlled with -D CLI option.
378 ##
379 ################################################################################
|
380 karl 1.17
|
381 jim.wunderlich 1.97
382 ################################################################################
383 ##
384 ## PEGASUS_MAX_THREADS_PER_SVC_QUEUE
385 ##
386 ## Controls the maximum number of threads allowed per message service queue.
387 ## It is allowed to range between 1 and MAX_THREADS_PER_SVC_QUEUE_LIMIT
|
388 kumpf 1.103 ## as set in pegasus/src/Pegasus/Common/MessageQueueService.cpp. If the
389 ## specified value is out of range, MAX_THREADS_PER_SVC_QUEUE_LIMIT is
390 ## used. The default value is MAX_THREADS_PER_SVC_QUEUE_DEFAULT, as
391 ## defined in pegasus/src/Pegasus/Common/MessageQueueService.cpp.
|
392 jim.wunderlich 1.98 ##
393 ## Label Current value
394 ## -------------------------------------- -------------
395 ## MAX_THREADS_PER_SVC_QUEUE_LIMIT 5000
396 ## MAX_THREADS_PER_SVC_QUEUE_DEFAULT 5
|
397 jim.wunderlich 1.97 ##
398 ##
399
400 ifdef PEGASUS_MAX_THREADS_PER_SVC_QUEUE
401 DEFINES += -DMAX_THREADS_PER_SVC_QUEUE=$(PEGASUS_MAX_THREADS_PER_SVC_QUEUE)
402 endif
403
|
404 jim.wunderlich 1.99 ##############################################################################
|
405 kumpf 1.140 ##
|
406 jim.wunderlich 1.99 ## PEGASUS_INDICATIONS_Q_THRESHOLD
407 ##
408 ## Controls if indications providers are stalled if the indications
409 ## service queue is too large.
410 ##
|
411 jim.wunderlich 1.100 ## defaults to not set.
|
412 jim.wunderlich 1.99 ##
413 ## It can be set to any positive value.
414 ##
|
415 jim.wunderlich 1.100 ## If not set providers are never stalled. This implies that the
|
416 jim.wunderlich 1.99 ## indications service queue may become as large as neccesary to hold all
417 ## the indicaitons generated.
418 ##
|
419 jim.wunderlich 1.100 ## If set to any value then providers are stalled by forcing them to sleep
|
420 jim.wunderlich 1.99 ## when they try to deliver an indication and the indications service queue
421 ## exceeds this value. They are resumed when the queue count falls 10 percent
|
422 kumpf 1.140 ## below this value.
|
423 jim.wunderlich 1.99 ##
424 ## Stall and resume log entries are made to inform the administrator
425 ## the condition has occured.
426 ##
427 ## WARNING: This also affects the Out of Process Providers (OOP Providers)
428 ## The OOP Providers use two one way pipes for communication.
429 ## By stalling the Provider this prevents the pipe from being read
430 ## which will cause the pipe to fill up and the remote side will block.
431 ## OOP Prividers mix indications and operations on these two pipes.
432 ## This means the operations will also be blocked as a side effect of
433 ## the indications being stalled.
|
434 kumpf 1.140 ##
|
435 jim.wunderlich 1.99 ##
436
437 ifdef PEGASUS_INDICATIONS_Q_THRESHOLD
438 DEFINES += -DPEGASUS_INDICATIONS_Q_THRESHOLD=$(PEGASUS_INDICATIONS_Q_THRESHOLD)
439 endif
440
|
441 jim.wunderlich 1.97
|
442 kumpf 1.87 # Allow PEGASUS_ASSERT statements to be disabled.
443 ifdef PEGASUS_NOASSERTS
444 DEFINES += -DNDEBUG
445 endif
446
|
447 mday 1.40 # do not compile trace code. sometimes it causes problems debugging
448 ifdef PEGASUS_REMOVE_TRACE
|
449 david.dillard 1.65 DEFINES += -DPEGASUS_REMOVE_TRACE
|
450 mday 1.40 endif
451
|
452 chuck 1.47 # PEP 161
453 # Control whether utf-8 filenames are supported by the repository
454 ifdef PEGASUS_SUPPORT_UTF8_FILENAME
|
455 david.dillard 1.65 DEFINES += -DPEGASUS_SUPPORT_UTF8_FILENAME
|
456 chuck 1.47
|
457 david.dillard 1.65 # Control whether utf-8 filenames in the repository are escaped
458 ifdef PEGASUS_REPOSITORY_ESCAPE_UTF8
459 DEFINES += -DPEGASUS_REPOSITORY_ESCAPE_UTF8
460 endif
|
461 chuck 1.47 endif
462
|
463 kumpf 1.49 #
464 # PEP 142
465 # The following flag need to be set to enable
466 # user group authorization functionality.
467 #
468 ifdef PEGASUS_ENABLE_USERGROUP_AUTHORIZATION
|
469 david.dillard 1.65 DEFINES += -DPEGASUS_ENABLE_USERGROUP_AUTHORIZATION
|
470 kumpf 1.49 endif
471
|
472 karl 1.159 ############################################################################
473 #
474 # PEGASUS_ENABLE_CQL and PEGASUS_DISABLE_CQL
475 # Set to enable CQL processor in indication subscriptions and query execution
476 # PEGASUS_DISABLE_CQL (PEP 193) has been depracated. New use model is:
477 #
478 # Use PEGASUS_ENABLE_CQL=true to enable compilation of CQL functions.
|
479 chuck 1.67 #
|
480 karl 1.159 # Use PEGASUS_ENABLE_CQL=false to disable compilation of CQL functions.
|
481 chuck 1.67 #
|
482 karl 1.159 # Default is PEGASUS_ENABLE_CQL=true if not defined external to config.mak
483 #
484
|
485 chuck 1.67 ifdef PEGASUS_DISABLE_CQL
|
486 carson.hovey 1.160 $(error PEGASUS_DISABLE_CQL has been deprecated. Please use PEGASUS_ENABLE_CQL=[true/false])
|
487 karl 1.159 endif
488
489 ifndef PEGASUS_ENABLE_CQL
490 # Default is true. CQL is enabled normally on all platforms unless specifically defined
491 PEGASUS_ENABLE_CQL=true
492 endif
493
494 ifeq ($(PEGASUS_ENABLE_CQL),true)
495 DEFINES += -DPEGASUS_ENABLE_CQL
496 else
497 ifneq ($(PEGASUS_ENABLE_CQL),false)
498 $(error PEGASUS_ENABLE_CQL ($(PEGASUS_ENABLE_CQL)) invalid, must be true or false)
499 endif
|
500 chuck 1.67 endif
501
|
502 karl 1.159 ############################################################################
|
503 kumpf 1.68 #
|
504 karl 1.159 # PEGASUS_OVERRIDE_PRODUCT_ID
|
505 kumpf 1.68 # PEP 186
506 # Allow override of product name/version/status. A file
507 # pegasus/src/Pegasus/Common/ProductVersion.h must exist when this
508 # flag is defined.
509 #
510 ifdef PEGASUS_OVERRIDE_PRODUCT_ID
511 DEFINES += -DPEGASUS_OVERRIDE_PRODUCT_ID
512 endif
513
|
514 kumpf 1.71 #
|
515 kumpf 1.106 # PEP 72
516 # Allow Out-of-Process Providers to be disabled by default
517 #
|
518 jim.wunderlich 1.113 ifdef PEGASUS_DEFAULT_ENABLE_OOP
519 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
520 DEFINES += -DPEGASUS_DEFAULT_ENABLE_OOP
|
521 jim.wunderlich 1.111 else
|
522 jim.wunderlich 1.113 ifneq ($(PEGASUS_DEFAULT_ENABLE_OOP),false)
523 $(error PEGASUS_DEFAULT_ENABLE_OOP ($(PEGASUS_DEFAULT_ENABLE_OOP)) invalid, must be true or false)
|
524 kumpf 1.140 endif
|
525 jim.wunderlich 1.111 endif
|
526 kumpf 1.106 endif
527
528 #
|
529 mateus.baur 1.130 # Allow to define the default value for the Provider User Context
530 # property as REQUESTOR.
531 # If is set and true use REQUESTOR
532 # If is not set or false use PRIVILEGED
533 #
534 ifdef PEGASUS_DEFAULT_USERCTXT_REQUESTOR
535 ifeq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),true)
536 DEFINES += -DPEGASUS_DEFAULT_USERCTXT_REQUESTOR
537 else
538 ifneq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),false)
539 $(error PEGASUS_DEFAULT_USERCTXT_REQUESTOR ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR)) invalid, must be true or false)
|
540 kumpf 1.140 endif
|
541 mateus.baur 1.130 endif
542 endif
543
544 #
|
545 kumpf 1.71 # PEP 197
546 # Allow the Provider User Context feature to be disabled.
547 #
|
548 kumpf 1.74 ifdef PEGASUS_DISABLE_PROV_USERCTXT
|
549 kumpf 1.71 DEFINES += -DPEGASUS_DISABLE_PROV_USERCTXT
|
550 kumpf 1.74 endif
|
551 kumpf 1.71
|
552 h.sterling 1.89 # Bug 2147
553 # Allow local domain socket usage to be disabled.
554 ifdef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
555 DEFINES += -DPEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
556 endif
557
|
558 chip 1.76 # PEP 211
559 # Controls object normalization support.
560 ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
561 DEFINES += -DPEGASUS_ENABLE_OBJECT_NORMALIZATION
562 endif
563
|
564 a.dunfey 1.125 # PEP 233
565 # Controls support for EmbeddedInstance properties
566 # and parameters
|
567 a.dunfey 1.129 ifndef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
568 PEGASUS_EMBEDDED_INSTANCE_SUPPORT = true
569 endif
570
571 ifeq ($(PEGASUS_EMBEDDED_INSTANCE_SUPPORT), true)
572 DEFINES += -DPEGASUS_EMBEDDED_INSTANCE_SUPPORT
573 else
574 ifneq ($(PEGASUS_EMBEDDED_INSTANCE_SUPPORT), false)
575 $(error PEGASUS_EMBEDDED_INSTANCE_SUPPORT ($(PEGASUS_EMBEDDED_INSTANCE_SUPPORT)) invalid, must be true or false)
|
576 a.dunfey 1.125 endif
577 endif
578
|
579 a.dunfey 1.129
|
580 kumpf 1.80 # Allow ExecQuery functionality to be enabled
581 ifndef PEGASUS_ENABLE_EXECQUERY
582 DEFINES += -DPEGASUS_DISABLE_EXECQUERY
583 endif
584
|
585 yi.zhou 1.85 # Allow System Log Handler to be enabled
586 ifdef PEGASUS_ENABLE_SYSTEM_LOG_HANDLER
587 DEFINES += -DPEGASUS_ENABLE_SYSTEM_LOG_HANDLER
588 endif
589
590 # Allow Email Handler to be enabled
591 ifdef PEGASUS_ENABLE_EMAIL_HANDLER
592 DEFINES += -DPEGASUS_ENABLE_EMAIL_HANDLER
593 endif
|
594 kumpf 1.49
|
595 h.sterling 1.109 # Allow qualifiers to be disabled for instance operations
596 ifdef PEGASUS_DISABLE_INSTANCE_QUALIFIERS
597 DEFINES += -DPEGASUS_DISABLE_INSTANCE_QUALIFIERS
598 endif
599
|
600 yi.zhou 1.108 # Controls snmp indication handler to use NET-SNMP to deliver trap
601 ifdef PEGASUS_USE_NET_SNMP
602 DEFINES += -DPEGASUS_USE_NET_SNMP
603 endif
604
|
605 denise.eckstein 1.120 ifdef PEGASUS_HAS_SSL
|
606 sushma.fernandes 1.152 DEFINES += -DPEGASUS_HAS_SSL
607
608 # Enable SSL Random file by default.
609 ifndef PEGASUS_USE_SSL_RANDOMFILE
610 PEGASUS_USE_SSL_RANDOMFILE = true
611 endif
612
613 # Allow SSL Random file functionality to be optionally disabled.
614 ifdef PEGASUS_USE_SSL_RANDOMFILE
615 ifeq ($(PEGASUS_USE_SSL_RANDOMFILE), true)
616 DEFINES += -DPEGASUS_SSL_RANDOMFILE
617 else
618 ifneq ($(PEGASUS_USE_SSL_RANDOMFILE), false)
619 $(error PEGASUS_USE_SSL_RANDOMFILE\
620 ($(PEGASUS_USE_SSL_RANDOMFILE)) invalid, \
621 must be true or false)
622 endif
623 endif
624 endif
|
625 kumpf 1.145
626 ifndef OPENSSL_COMMAND
|
627 denise.eckstein 1.147 ifdef OPENSSL_BIN
628 OPENSSL_COMMAND = $(OPENSSL_BIN)/openssl
629 else
630 OPENSSL_COMMAND = openssl
631 endif
|
632 kumpf 1.145 endif
633 ifndef OPENSSL_SET_SERIAL_SUPPORTED
634 ifneq (, $(findstring 0.9.6, $(shell $(OPENSSL_COMMAND) version)))
635 OPENSSL_SET_SERIAL_SUPPORTED = false
636 else
637 OPENSSL_SET_SERIAL_SUPPORTED = true
638 endif
|
639 denise.eckstein 1.120 endif
|
640 sushma.fernandes 1.123
|
641 kumpf 1.145 # Enable CRL verification
642 ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
643 PEGASUS_ENABLE_SSL_CRL_VERIFICATION = true
644 endif
|
645 sushma.fernandes 1.123
|
646 kumpf 1.145 # Check for Enable SSL CRL verification
647 ifdef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
648 ifeq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), true)
649 DEFINES += -DPEGASUS_ENABLE_SSL_CRL_VERIFICATION
650 else
651 ifneq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), false)
652 $(error PEGASUS_ENABLE_SSL_CRL_VERIFICATION\
653 ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION)) invalid, \
654 must be true or false)
655 endif
|
656 sushma.fernandes 1.123 endif
657 endif
658 endif
|
659 denise.eckstein 1.120
|
660 jim.wunderlich 1.101 #
|
661 yi.zhou 1.134 # PEP 258
|
662 kumpf 1.153 # Allow Audit Logger to be disabled. It is enabled by default.
|
663 yi.zhou 1.134 #
|
664 kumpf 1.153
665 ifndef PEGASUS_ENABLE_AUDIT_LOGGER
666 PEGASUS_ENABLE_AUDIT_LOGGER = true
667 endif
668
669 ifdef PEGASUS_ENABLE_AUDIT_LOGGER
670 ifeq ($(PEGASUS_ENABLE_AUDIT_LOGGER),true)
671 DEFINES += -DPEGASUS_ENABLE_AUDIT_LOGGER
672 else
673 ifneq ($(PEGASUS_ENABLE_AUDIT_LOGGER),false)
674 $(error PEGASUS_ENABLE_AUDIT_LOGGER \
675 ($(PEGASUS_ENABLE_AUDIT_LOGGER)) invalid, must be true or false)
676 endif
677 endif
678 endif
679
680 # Check for use of deprecated variable
|
681 yi.zhou 1.134 ifdef PEGASUS_DISABLE_AUDIT_LOGGER
|
682 kumpf 1.153 $(error The PEGASUS_DISABLE_AUDIT_LOGGER variable is deprecated. \
683 Use PEGASUS_ENABLE_AUDIT_LOGGER=false instead)
|
684 yi.zhou 1.134 endif
685
|
686 dave.sudlik 1.142
687 #
688 # PEP 291
689 # Enable IPv6 support
690 #
|
691 venkat.puvvada 1.149
|
692 dave.sudlik 1.142 ifndef PEGASUS_ENABLE_IPV6
693 PEGASUS_ENABLE_IPV6 = true
694 endif
695
696 # Check for Enable IPv6 support
697 ifdef PEGASUS_ENABLE_IPV6
698 ifeq ($(PEGASUS_ENABLE_IPV6),true)
699 DEFINES += -DPEGASUS_ENABLE_IPV6
700 else
701 ifneq ($(PEGASUS_ENABLE_IPV6),false)
702 $(error PEGASUS_ENABLE_IPV6 ($(PEGASUS_ENABLE_IPV6)) \
703 invalid, must be true or false)
704 endif
705 endif
706 endif
707
|
708 venkat.puvvada 1.149 # Verify Test IPv6 support
709 # If PEGASUS_ENABLE_IPV6 is defined and PEGASUS_TEST_IPV6 is not defined, we set
710 # PEGASUS_TEST_IPV6 to the same value as PEGASUS_ENABLE_IPV6.
711 # You can explicitly set PEGASUS_TEST_IPV6 to false if you don't want to run the
712 # IPv6 tests (for example, on an IPv4 system that is running an IPv6-enabled
713 # version of Pegasus).
714 #
715 ifdef PEGASUS_TEST_IPV6
716 ifneq ($(PEGASUS_TEST_IPV6),true)
717 ifneq ($(PEGASUS_TEST_IPV6),false)
718 $(error PEGASUS_TEST_IPV6 ($(PEGASUS_TEST_IPV6)) \
719 invalid, must be true or false)
720 endif
721 endif
722 else
|
723 venkat.puvvada 1.150 PEGASUS_TEST_IPV6 = $(PEGASUS_ENABLE_IPV6)
|
724 venkat.puvvada 1.149 endif
725
|
726 karl 1.151 ############################################################################
|
727 yi.zhou 1.134 #
|
728 jim.wunderlich 1.101 # PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP
729 #
|
730 jim.wunderlich 1.112 # PEGASUS_DISABLE_SLP has been depracated. New use model is:
|
731 jim.wunderlich 1.101 #
|
732 jim.wunderlich 1.112 # Use PEGASUS_ENABLE_SLP=true to enable compilation of SLP functions.
733 #
|
734 kumpf 1.140 # Use PEGASUS_ENABLE_SLP=false to disable compilation of SLP functions.
|
735 jim.wunderlich 1.101 #
|
736 kumpf 1.140 # Currently (Aug. 12, 2005) Windows is the only platform that enables SLP
|
737 jim.wunderlich 1.101 # by default.
738 #
739 # NOTE. Effective with Bug # 2633 some platforms enable SLP.
|
740 karl 1.75 # To see which platforms look for platform make files that set
|
741 kumpf 1.140 # the variable PEGASUS_ENABLE_SLP.
|
742 jim.wunderlich 1.101 #
743 #
|
744 jim.wunderlich 1.112
|
745 karl 1.39 ifdef PEGASUS_ENABLE_SLP
|
746 jim.wunderlich 1.101 ifdef PEGASUS_DISABLE_SLP
747 $(error Conflicting defines PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP both set)
748 endif
|
749 jim.wunderlich 1.112 endif
750
751 ifdef PEGASUS_DISABLE_SLP
752 $(error PEGASUS_DISABLE_SLP has been deprecated. Please use PEGASUS_ENABLE_SLP=[true/false] )
753
754 PEGASUS_ENABLE_SLP=false
755
756 endif
757
758 ifdef PEGASUS_ENABLE_SLP
759 ifeq ($(PEGASUS_ENABLE_SLP),true)
|
760 david.dillard 1.65 DEFINES += -DPEGASUS_ENABLE_SLP
|
761 jim.wunderlich 1.112 else
762 ifneq ($(PEGASUS_ENABLE_SLP),false)
763 $(error PEGASUS_ENABLE_SLP ($(PEGASUS_ENABLE_SLP)) invalid, must be true or false)
|
764 kumpf 1.140 endif
|
765 jim.wunderlich 1.112 endif
|
766 karl 1.39 endif
|
767 karl 1.36
|
768 jim.wunderlich 1.121
769 ############################################################################
770 #
771 # PEGASUS_USE_OPENSLP
772 #
773 # Environment variable to set openslp as SLP environment to use
774 # for SLP Directory and User Agents.
775 #
776 # Allows enabling use of openslp interfaces for slp instead of the
777 # internal pegasus slp agent. Note that this does not disable the
778 # compilation of the internal agent code, etc. However, it assumes
779 # openslp is installed on the platform and changes the interfaces
780 # to match this. At this moment, this is a change specifically for
781 # adaptec but we expect to generalize it to provide openslp as a
782 # generalized alternative to ldapslp.
|
783 kumpf 1.140 # to use this. To set this function up,
|
784 jim.wunderlich 1.121 #
785 # Use this variable in conjunction with PEGASUS_OPENSLP_HOME
|
786 kumpf 1.140 # to enable OpenSlp as the slp implementation.
|
787 jim.wunderlich 1.121 #
788 # NOTE that it has no affect if the PEGASUS_ENABLE_SLP etc. flags are not set.
789 #
790
791 ifdef PEGASUS_USE_OPENSLP
792 ifeq ($(PEGASUS_ENABLE_SLP),true)
793 DEFINES += -DPEGASUS_USE_OPENSLP
794 else
795 $(error PEGASUS_USE_OPENSLP defined but PEGASUS_ENABLE_SLP is not true. Please correct this inconsistency)
796 endif
797 endif
798
|
799 dave.sudlik 1.135 # PEP 267
800 # SLP reregistration support.
801 # PEGASUS_SLP_REG_TIMEOUT is defined as the SLP registration timeout
802 # interval, in minutes.
803 ifdef PEGASUS_SLP_REG_TIMEOUT
804 ifeq ($(PEGASUS_ENABLE_SLP),true)
805 DEFINES += -DPEGASUS_SLP_REG_TIMEOUT=$(PEGASUS_SLP_REG_TIMEOUT)
806 else
807 $(error PEGASUS_SLP_REG_TIMEOUT defined but PEGASUS_ENABLE_SLP is not true. Please correct this inconsistency)
808 endif
809 endif
|
810 jim.wunderlich 1.121
811 ############################################################################
812 #
813 # PEGASUS_OPENSLP_HOME
814 #
815 # Environment variable to set home location for OpenSLP include and library
|
816 kumpf 1.140 # files if they are located somewhere other than /usr/include and /usr/lib.
|
817 jim.wunderlich 1.121 #
818 # PEGASUS_USE_OPENSLP must also be defined for this environment variable
819 # to have any effect.
820 #
|
821 kumpf 1.140 # This is the directory level within which both the include and lib
822 # directories holding the OpenSLP files will be found.
|
823 jim.wunderlich 1.121 #
|
824 kumpf 1.140 # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
|
825 jim.wunderlich 1.121 # then this environment variable should be set to /opt/OpenSLP.
826 #
827
828
|
829 sushma.fernandes 1.114 #
|
830 kumpf 1.140 # Enable this flag to allow the handshake to continue regardless of verification result
|
831 sushma.fernandes 1.114 #
832 ifdef PEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
833 DEFINES += -DPEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
834 endif
835
|
836 karl 1.151 ############################################################################
837 #
838 # PEGASUS_ENABLE_INTEROP_PROVIDER
839 # Enables the interop provider AND the server profile.
840 # initially this was activated by setting either the perfinst or slp enable
841 # flags. This allows activating this function without any either perfinst or
842 # slp enabled. Note that if either of these are enabled, this funtion is also
843 # enabled
844
845 ## if either slp or perfinst are enabled and this is false, flag error
846 ## This gets messy because should account for both postive and negative on
847 ## interop so we don't get multiples.
848
849 ifdef PEGASUS_ENABLE_SLP
850 ifeq ($(PEGASUS_ENABLE_SLP),true)
851 ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
852 PEGASUS_ENABLE_INTEROP_PROVIDER = true
853 else
854 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
855 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if SLP enabled)
856 endif
857 karl 1.151 endif
858 endif
859 endif
860
861 ## if PERFINST enabled, set to force interop.
862 ifndef PEGASUS_DISABLE_PERFINST
863 ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
864 PEGASUS_ENABLE_INTEROP_PROVIDER = true
865 else
866 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
867 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if PERFINST enabled)
868 endif
869 endif
870 endif
871
872 ifdef PEGASUS_ENABLE_INTEROP_PROVIDER
873 ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),true)
874 DEFINES += -DPEGASUS_ENABLE_INTEROP_PROVIDER
875 else
876 ifneq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
877 $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true or false)
878 karl 1.151 endif
879 endif
880 endif
881
882
883 ############################################################################
|
884 karl 1.60 # set PEGASUS_DEBUG into the DEFINES if it exists.
885 # Note that this flag is the general separator between
886 # debug compiles and non-debug compiles and controls both
887 # the use of any debug options on compilers and linkers
888 # and general debug support that we want to be turned on in
|
889 chip 1.76 # debug mode.
|
890 karl 1.60 ifdef PEGASUS_DEBUG
|
891 david.dillard 1.65 DEFINES += -DPEGASUS_DEBUG
|
892 kumpf 1.88
893 # Indications debugging options
894 ifdef PEGASUS_INDICATION_PERFINST
895 DEFINES += -DPEGASUS_INDICATION_PERFINST
896 endif
897
898 ifdef PEGASUS_INDICATION_HASHTRACE
899 DEFINES += -DPEGASUS_INDICATION_HASHTRACE
900 endif
|
901 kumpf 1.131
902 # Setup the conditional compile for client displays.
903 ifdef PEGASUS_CLIENT_TRACE_ENABLE
904 DEFINES += -DPEGASUS_CLIENT_TRACE_ENABLE
905 endif
|
906 karl 1.60 endif
907
|
908 chuck 1.42 # compile in the experimental APIs
|
909 david.dillard 1.65 DEFINES += -DPEGASUS_USE_EXPERIMENTAL_INTERFACES
|
910 chuck 1.42
|
911 kumpf 1.93 # Ensure that the deprecated interfaces are defined in the Pegasus libraries.
912 # One may wish to disable these interfaces if binary compatibility with
913 # previous Pegasus releases is not required.
914 ifndef PEGASUS_DISABLE_DEPRECATED_INTERFACES
915 DEFINES += -DPEGASUS_USE_DEPRECATED_INTERFACES
916 endif
917
|
918 w.white 1.57 # Set compile flag to control compilation of CIMOM statistics
|
919 karl 1.73 ifdef PEGASUS_DISABLE_PERFINST
|
920 marek 1.136 DEFINES += -DPEGASUS_DISABLE_PERFINST
|
921 w.white 1.57 endif
|
922 kumpf 1.56
|
923 karl 1.96 # Set compile flag to control compilation of SNIA Extensions
924 ifdef PEGASUS_SNIA_EXTENSIONS
|
925 marek 1.136 DEFINES += -DPEGASUS_SNIA_EXTENSIONS
|
926 karl 1.96 endif
927
|
928 denise.eckstein 1.119 ifdef PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
929 ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
|
930 marek 1.136 DEFINES += -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
|
931 denise.eckstein 1.119 else
932 ifneq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), false)
933 $(error PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER \
934 ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER)) invalid, \
935 must be true or false)
936 endif
937 endif
938 endif
939
|
940 mark.hamzy 1.124 ifdef PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
941 ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
|
942 marek 1.136 DEFINES += -DPEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
|
943 mark.hamzy 1.124 else
944 ifneq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), false)
945 $(error PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER \
946 ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER)) invalid, \
947 must be true or false)
948 endif
949 endif
950 endif
951
|
952 kumpf 1.95 # Allow remote CMPI functionality to be enabled
953 ifdef PEGASUS_ENABLE_REMOTE_CMPI
|
954 marek 1.136 DEFINES += -DPEGASUS_ENABLE_REMOTE_CMPI
|
955 kumpf 1.95 endif
956
|
957 kumpf 1.56 ############################################################
958 #
959 # Set any vendor-specific compile flags
960 #
961 ############################################################
962
963 ifdef PEGASUS_VENDOR_HP
|
964 david.dillard 1.65 DEFINES+= -DPEGASUS_VENDOR_HP
|
965 kumpf 1.56 endif
966
|
967 chip 1.76
|
968 karl 1.17 ############################################################
969 #
970 # Set up other Make Variables that depend on platform config files
971 #
972 ############################################################
973
974 # This is temporary until we end up with a better place to
975 # put this variable
976 # Makefiles can do directory remove with
977 # $(RMREPOSITORY) repositoryname
978 #
979 RMREPOSITORY = $(RMDIRHIER)
980
|
981 w.otsuka 1.63 ifdef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
|
982 marek 1.136 DEFINES += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
|
983 w.otsuka 1.62 endif
984
985 ifdef PEGASUS_USE_RELEASE_DIRS
|
986 marek 1.136 DEFINES += -DPEGASUS_USE_RELEASE_DIRS
|
987 w.otsuka 1.62 endif
|
988 mday 1.27
|
989 denise.eckstein 1.110 ifdef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
|
990 marek 1.136 DEFINES += -DPEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
|
991 denise.eckstein 1.110 endif
992
|
993 kumpf 1.64 # Unless otherwise specified, Pegasus libraries go in $(PEGASUS_HOME)/lib
994 ifndef PEGASUS_DEST_LIB_DIR
|
995 david.dillard 1.65 PEGASUS_DEST_LIB_DIR = lib
|
996 kumpf 1.64 endif
|
997 mday 1.28
|
998 gs.keenan 1.77 ifeq ($(OS),VMS)
999 DEFINES += -DPEGASUS_DEST_LIB_DIR="""$(PEGASUS_DEST_LIB_DIR)"""
1000 else
1001 DEFINES += -DPEGASUS_DEST_LIB_DIR=\"$(PEGASUS_DEST_LIB_DIR)\"
1002 endif
1003
|
1004 w.otsuka 1.79 ################################################################################
1005 ##
|
1006 mike 1.105 ## PEGASUS_CLASS_CACHE_SIZE
1007 ##
1008 ## This environment variable gives the size of the class cache used by
1009 ## the CIM repository. When it is undefined, the size defaults to something
1010 ## relatively small (see src/Pegasus/Repository/CIMRepository.cpp). If
1011 ## defined, it gives the size of the class cache. If it is 0 , the class
1012 ## cache is not defined compiled in at all.
1013 ##
1014 ################################################################################
1015
1016 ifdef PEGASUS_CLASS_CACHE_SIZE
1017 DEFINES += -DPEGASUS_CLASS_CACHE_SIZE=$(PEGASUS_CLASS_CACHE_SIZE)
1018 endif
1019
1020 ################################################################################
1021 ##
|
1022 w.otsuka 1.79 ## Additional build flags passed in through environment variables.
1023 ## These flags are added to the compile/link commands.
1024 ##
1025 ################################################################################
1026
1027 ifdef PEGASUS_EXTRA_CXX_FLAGS
1028 EXTRA_CXX_FLAGS = $(PEGASUS_EXTRA_CXX_FLAGS)
1029 endif
1030
1031 ifdef PEGASUS_EXTRA_C_FLAGS
1032 EXTRA_C_FLAGS = $(PEGASUS_EXTRA_C_FLAGS)
1033 endif
1034
1035 ifdef PEGASUS_EXTRA_LINK_FLAGS
1036 EXTRA_LINK_FLAGS = $(PEGASUS_EXTRA_LINK_FLAGS)
1037 endif
1038
|
1039 mike 1.126 ##==============================================================================
1040 ##
1041 ## By definining PEGASUS_USE_STATIC_LIBRARIES in the environment and STATIC
1042 ## in the Makefile, a static library is produced rather than a shared one.
1043 ## PEGASUS_USE_STATIC_LIBRARIES should be "true" or "false".
1044 ##
1045 ##==============================================================================
1046
1047 ifdef PEGASUS_USE_STATIC_LIBRARIES
1048 ifeq ($(PEGASUS_USE_STATIC_LIBRARIES),true)
1049 else
1050 ifneq ($(PEGASUS_USE_STATIC_LIBRARIES),false)
1051 $(error PEGASUS_USE_STATIC_LIBRARIES ($(PEGASUS_USE_STATIC_LIBRARIES)) invalid, must be true or false)
|
1052 kumpf 1.140 endif
1053 endif
1054 endif
1055
1056 ##==============================================================================
1057 ##
1058 ## PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1059 ##
1060 ## Enables privilege separation support (uses the executor process to
1061 ## perform privileged operations).
1062 ##
1063 ##==============================================================================
1064
1065 ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1066 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1067 DEFINES += -DPEGASUS_ENABLE_PRIVILEGE_SEPARATION
1068 else
1069 ifneq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),false)
1070 $(error PEGASUS_ENABLE_PRIVILEGE_SEPARATION \
1071 ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION)) invalid, must be true or false)
1072 endif
1073 kumpf 1.140 endif
1074
|
1075 kumpf 1.148 ## Defines the user context of the cimservermain process when privilege
|
1076 kumpf 1.140 ## separation is enabled.
|
1077 kumpf 1.148 PEGASUS_CIMSERVERMAIN_USER = cimsrvr
|
1078 kumpf 1.141 DEFINES += -DPEGASUS_CIMSERVERMAIN_USER=\"$(PEGASUS_CIMSERVERMAIN_USER)\"
|
1079 mike 1.126 endif
|
1080 mark.hamzy 1.127
|
1081 kumpf 1.140 ##==============================================================================
1082 ##
1083 ## PEGASUS_USE_PAM_STANDALONE_PROC
1084 ##
1085 ##==============================================================================
1086
1087 ifdef PEGASUS_USE_PAM_STANDALONE_PROC
1088 DEFINES += -DPEGASUS_USE_PAM_STANDALONE_PROC
1089 endif
1090
1091 ##==============================================================================
|
1092 mark.hamzy 1.127
1093 ifndef PEGASUS_JAVA_CLASSPATH_DELIMITER
1094 PEGASUS_JAVA_CLASSPATH_DELIMITER = :
1095 endif
|
1096 mark.hamzy 1.132
1097 ifndef PEGASUS_JVM
1098 PEGASUS_JVM = sun
1099 endif
1100 ifeq ($(PEGASUS_JVM),gcj)
1101 PEGASUS_JAVA_COMPILER = gcj -C
1102 PEGASUS_JAVA_JAR = fastjar
1103 PEGASUS_JAVA_INTERPRETER = gij
1104 else
1105 PEGASUS_JAVA_COMPILER = javac -target 1.4 -source 1.4
1106 PEGASUS_JAVA_JAR = jar
1107 PEGASUS_JAVA_INTERPRETER = java
1108 endif
|
1109 dmitry.mikulin 1.155
1110 # Disable client timeouts when we're doing a valgrind build
|
1111 kumpf 1.157 ifdef PEGASUS_TEST_VALGRIND_LOG_DIR
|
1112 dmitry.mikulin 1.156 DEFINES += -DPEGASUS_DISABLE_CLIENT_TIMEOUT -DPEGASUS_TEST_VALGRIND
|
1113 dmitry.mikulin 1.155 endif
1114
|