(file) Return to config.mak CVS log (file) (dir) Up to [Pegasus] / pegasus / mak

  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 chuck           1.35  # l10n
 61                       ifdef ICU_ROOT
 62                           ICUROOT =  $(subst \,/,$(ICU_ROOT))
 63                       endif
 64                       
 65 kumpf           1.21  ifdef PEGASUS_TMP
 66 david.dillard   1.65      TMP_DIR = $(subst \,/,$(PEGASUS_TMP))
 67 kumpf           1.21  else
 68 david.dillard   1.65      TMP_DIR = .
 69 kumpf           1.21  endif
 70                       
 71 kumpf           1.26  ifdef PEGASUS_DISPLAYCONSUMER_DIR
 72 david.dillard   1.65      DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_DISPLAYCONSUMER_DIR))
 73 kumpf           1.26  else
 74 david.dillard   1.65      DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_HOME))
 75 kumpf           1.26  endif
 76                       
 77 aruran.ms       1.102 ifdef PEGASUS_DEBUG
 78                            PEGASUS_USE_DEBUG_BUILD_OPTIONS = 1
 79                       endif
 80                       
 81 david.dillard   1.66  PLATFORM_FILES=$(wildcard $(ROOT)/mak/platform*.mak)
 82 karl            1.78  PLATFORM_TEMP=$(subst $(ROOT)/mak/platform_,, $(PLATFORM_FILES))
 83 jim.wunderlich  1.104 VALID_PLATFORMS=$(subst .mak,  , $(PLATFORM_TEMP))
 84 mike            1.8   
 85                       ifndef PEGASUS_PLATFORM
 86 david.dillard   1.66      $(error PEGASUS_PLATFORM environment variable undefined. Please set to\
 87                               one of the following:$(VALID_PLATFORMS))
 88 mike            1.8   endif
 89                       
 90 mike            1.1   ################################################################################
 91 denise.eckstein 1.116 ifeq ($(findstring _GNU, $(PEGASUS_PLATFORM)), _GNU)
 92 mike            1.118     ifdef CXX
 93                             GCC_VERSION = $(shell $(CXX) -dumpversion)
 94                           else
 95                             GCC_VERSION = $(shell g++ -dumpversion)
 96                           endif
 97 denise.eckstein 1.116 else
 98                           GCC_VERSION =
 99                       endif
100 mike            1.1   
101 kumpf           1.22  OBJ_DIR = $(HOME_DIR)/obj/$(DIR)
102                       BIN_DIR = $(HOME_DIR)/bin
103                       LIB_DIR = $(HOME_DIR)/lib
104 chuck           1.35  
105                       # l10n
106                       # define the location for the compiled messages
107                       MSG_ROOT = $(HOME_DIR)/msg
108 kumpf           1.22  
109 jim.wunderlich  1.90  #############################################################################
110 kumpf           1.140 ##  The following REPOSITORY_XXX variables are only used within the
111                       ## makefiles for building the repository (cimmofl) and running the tests.
112 jim.wunderlich  1.90  ## They have no effect on CIMconfig initial startup configuration.
113                       
114                       #
115 kumpf           1.22  # define the location for the repository
116 jim.wunderlich  1.90  #
117                       # NOTE: There is another variable efined in many of the test makefiles
118                       # called REPOSITORYDIR. It is a local variable in each of those Makefiles
119 kumpf           1.140 # to localally control where the temporay small repository they
120 jim.wunderlich  1.90  # build, use and then delete is located. Most of the time it is set to TMP_DIR.
121                       #
122 jim.wunderlich  1.91  
123 kumpf           1.22  REPOSITORY_DIR = $(HOME_DIR)
124 jim.wunderlich  1.90  
125                       #
126 kumpf           1.140 # WARNING: The REPOSITORY_NAME varible is not used by all the test,
127 jim.wunderlich  1.90  # many of them are still hardcoded to "repository".  What this means
128 kumpf           1.140 # is that you can change the repository name and build it. But you
129 jim.wunderlich  1.90  # cannot run the test without many of them failing
130                       #
131 jim.wunderlich  1.91  
132 jim.wunderlich  1.81  REPOSITORY_NAME = repository
133 jim.wunderlich  1.91  
134 jim.wunderlich  1.90  
135 jim.wunderlich  1.81  REPOSITORY_ROOT = $(REPOSITORY_DIR)/$(REPOSITORY_NAME)
136                       
137 kumpf           1.140 # define the repository mode
138 h.sterling      1.89  #       XML = XML format
139                       #       BIN = Binary format
140 jim.wunderlich  1.81  #
141 jim.wunderlich  1.91  ifndef PEGASUS_REPOSITORY_MODE
142                          ## set to default value
143                          REPOSITORY_MODE = XML
144 kumpf           1.140 else
145 jim.wunderlich  1.91     ## validate assigned value
146                          ifeq ($(PEGASUS_REPOSITORY_MODE),XML)
147                              REPOSITORY_MODE = XML
148                          else
149                            ifeq ($(PEGASUS_REPOSITORY_MODE),BIN)
150                             REPOSITORY_MODE = BIN
151                            else
152                             $(error PEGASUS_REPOSITORY_MODE ($(PEGASUS_REPOSITORY_MODE)) \
153                       		 is invalid. It must be set to either XML or BIN)
154                            endif
155                          endif
156 jim.wunderlich  1.90  endif
157                       
158 jim.wunderlich  1.91  
159 jim.wunderlich  1.90  ###########################################################################
160 mike            1.1   
161 kumpf           1.23  # The two variables, CIM_SCHEMA_DIR and CIM_SCHEMA_VER,
162 chip            1.76  # are used to control the version of the CIM Schema
163 kumpf           1.23  # loaded into the Pegasus Internal, InterOp,
164                       # root/cimv2 and various test namespaces.
165                       #
166 chip            1.76  # Update the following two environment variables to
167 kumpf           1.23  # change the version.
168                       
169 kumpf           1.37  # The environment variable PEGASUS_CIM_SCHEMA can be used
170 chip            1.76  # to change the values of CIM_SCHEMA_DIR, CIM_SCHEMA_VER
171 kumpf           1.37  # and ALLOW_EXPERIMENTAL.
172                       #
173                       # To use the PEGASUS_CIM_SCHEMA variable the Schema mof
174                       # files must be placed in the directory
175 denise.eckstein 1.115 # $(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
176 chip            1.76  #
177 kumpf           1.37  # The value of PEGASUS_CIM_SCHEMA must conform to the
178                       # following syntax:
179                       #
180                       #        CIM[Prelim]<CIM_SCHEMA_VER>
181                       #
182 chip            1.76  # The string "Prelim" should be included if the
183 kumpf           1.37  # Schema contains "Experimental" class definitions.
184                       #
185                       # The value of <CIM_SCHEMA_VER> must be the value
186 chip            1.76  # of the version string included by the DMTF as
187                       # part of the mof file names (e.g, CIM_Core27.mof).
188 kumpf           1.37  # Therefore, for example, the value of <CIM_SCHEMA_VER>
189                       # for CIM27 Schema directories MUST be 27.
190                       #
191 chip            1.76  # Examples of valid values of PEGASUS_CIM_SCHEMA
192 kumpf           1.37  # include CIMPrelim27, CIM27, CIMPrelim28, and CIM28.
193                       #
194                       # Note the CIMPrelim271 would NOT be a valid value
195                       # for PEGASUS_CIM_SCHEMA because the version string
196                       # portion of the mof files (e.g., CIM_Core27.mof) in
197                       # the CIMPrelimin271 directory is 27 not 271.
198 kumpf           1.23  
199 gerarda         1.29  # ***** CIM_SCHEMA_DIR INFO ****
200                       # If CIM_SCHEMA_DIR changes to use a preliminary schema which
201                       # has experimentals make sure and change the path below to appopriate
202                       # directory path.  Example:  CIMPrelim271 is preliminary and has
203                       # experimental classes.  Since experimental classes exist the -aE
204                       # option of the mof compiler needs to be set.
205                       # *****
206 kumpf           1.37  
207                       ifdef PEGASUS_CIM_SCHEMA
208 david.dillard   1.65      CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
209 chip            1.76      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),)
210 david.dillard   1.65         CIM_SCHEMA_VER=
211                           else
212                              CIM_SCHEMA_VER=$(patsubst CIM%,%,$(patsubst CIMPrelim%,%,$(PEGASUS_CIM_SCHEMA)))
213                           endif
214 kumpf           1.37  else
215 s.manicka       1.139     CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/CIM2131
216 a.dunfey        1.82      CIM_SCHEMA_VER=
217 kumpf           1.37  endif
218                       
219                       ifneq (, $(findstring Prelim, $(CIM_SCHEMA_DIR)))
220 david.dillard   1.65      ALLOW_EXPERIMENTAL = -aE
221 gerarda         1.29  else
222 david.dillard   1.65      ALLOW_EXPERIMENTAL =
223 gerarda         1.29  endif
224                       
225 bob             1.5   LEX = flex
226                       
227 jim.wunderlich  1.94  ## ======================================================================
228                       ##
229 kumpf           1.140 ## PEGASUS_ENABLE_SORTED_DIFF
230 jim.wunderlich  1.94  ## This controls if the DIFFSORT function is used rather than a simple DIFF of
231                       ##  of the test results files to the static results file.
232                       ##
233                       ##   Set to "true" enables the sorted diffs of results to static results files.
234                       ##   otherwise results in regular diffs of results to static results files.
235 kumpf           1.140 ##   see bug 2283 for background information concerning this config variable.
236 jim.wunderlich  1.94  ##
237                       ##  Defaults to true.
238                       ##
239                       ##
240                       ifndef PEGASUS_ENABLE_SORTED_DIFF
241                       PEGASUS_ENABLE_SORTED_DIFF=true
242                       endif
243                       
244 jim.wunderlich  1.86  ## ========================================================================
245 kumpf           1.140 ## DIFFSORT function definition
246 jim.wunderlich  1.86  ## Here is an example using the DIFFSORT function:
247 kumpf           1.140 ##
248 jim.wunderlich  1.86  ## difftest: FORCE
249 h.sterling      1.89  ##      @ test > result
250 jim.wunderlich  1.86  ##      @ $(call DIFFSORT,result,standard_result)
251 h.sterling      1.89  ##      @ $(ECHO) +++++ all test passed
252 jim.wunderlich  1.86  ##
253                       
254                       define NL
255                       
256                       
257                       endef
258                       
259 kumpf           1.140 ifndef FORCE_NOCASE
260                       
261 jim.wunderlich  1.86  DIFFSORT = $(SORT) $(1) > $(1).tmp $(NL) \
262                       $(SORT) $(2) > $(2).tmp $(NL) \
263                       $(DIFF) $(1).tmp $(2).tmp $(NL) \
264                       $(RM) -f $(1).tmp $(NL) \
265                       $(RM) -f $(2).tmp $(NL)
266                       
267 marek           1.107 else
268                       
269                       DIFFSORT = $(SORT) -f $(1) > $(1).tmp $(NL) \
270                       $(SORT) -f $(2) > $(2).tmp $(NL) \
271                       $(DIFF) -i $(1).tmp $(2).tmp $(NL) \
272                       $(RM) -f $(1).tmp $(NL) \
273                       $(RM) -f $(2).tmp $(NL)
274                       
275                       endif
276                       
277                       DIFFSORTNOCASE = $(SORT) $(1) > $(1).tmp $(NL) \
278                       $(SORT) $(2) > $(2).tmp $(NL) \
279                       $(DIFF) -i $(1).tmp $(2).tmp $(NL) \
280                       $(RM) -f $(1).tmp $(NL) \
281                       $(RM) -f $(2).tmp $(NL)
282                       
283 jim.wunderlich  1.104 #
284                       # The following is used to define the usage message for MakeFile
285                       #
286                       # See the pegasus/Makfile for an exampleof its usage.
287                       #
288                       USAGE = @$(ECHO) " $(1)"
289                       
290 mike            1.8   ################################################################################
291                       ##
292                       ## Attempt to include a platform configuration file:
293                       ##
294                       ################################################################################
295                       
296 david.dillard   1.66  PLATFORM_FILE = $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
297                       ifneq ($(wildcard $(PLATFORM_FILE)), )
298                           include $(PLATFORM_FILE)
299                       else
300 david.dillard   1.65    $(error  PEGASUS_PLATFORM environment variable must be set to one of\
301 david.dillard   1.66          the following:$(VALID_PLATFORMS))
302 mike            1.8   endif
303 karl            1.17  
304 karl            1.36  ################################################################################
305                       ##
306                       ##  Set up any platform independent compile conditionals by adding them to
307                       ##  precreated FLAGS parameter.
308 chip            1.76  ##  Assumes that the basic flags have been setup in FLAGS.
309 karl            1.36  ##  Assumes that compile time flags are controlled with -D CLI option.
310                       ##
311                       ################################################################################
312 karl            1.17  
313 jim.wunderlich  1.97  
314                       ################################################################################
315                       ##
316                       ## PEGASUS_MAX_THREADS_PER_SVC_QUEUE
317                       ##
318                       ## Controls the maximum number of threads allowed per message service queue.
319                       ##     It is allowed to range between 1 and MAX_THREADS_PER_SVC_QUEUE_LIMIT
320 kumpf           1.103 ##     as set in pegasus/src/Pegasus/Common/MessageQueueService.cpp.  If the
321                       ##     specified value is out of range, MAX_THREADS_PER_SVC_QUEUE_LIMIT is
322                       ##     used.  The default value is MAX_THREADS_PER_SVC_QUEUE_DEFAULT, as
323                       ##     defined in pegasus/src/Pegasus/Common/MessageQueueService.cpp.
324 jim.wunderlich  1.98  ##
325                       ##	Label					Current value
326                       ##	--------------------------------------  -------------
327                       ##      MAX_THREADS_PER_SVC_QUEUE_LIMIT	        5000
328                       ##      MAX_THREADS_PER_SVC_QUEUE_DEFAULT       5
329 jim.wunderlich  1.97  ##
330                       ##
331                       
332                       ifdef PEGASUS_MAX_THREADS_PER_SVC_QUEUE
333                         DEFINES += -DMAX_THREADS_PER_SVC_QUEUE=$(PEGASUS_MAX_THREADS_PER_SVC_QUEUE)
334                       endif
335                       
336 jim.wunderlich  1.99  ##############################################################################
337 kumpf           1.140 ##
338 jim.wunderlich  1.99  ## PEGASUS_INDICATIONS_Q_THRESHOLD
339                       ##
340                       ## Controls if indications providers are stalled if the indications
341                       ## service queue is too large.
342                       ##
343 jim.wunderlich  1.100 ##      defaults to not set.
344 jim.wunderlich  1.99  ##
345                       ## 	It can be set to any positive value.
346                       ##
347 jim.wunderlich  1.100 ## If not set providers are never stalled. This implies that the
348 jim.wunderlich  1.99  ## indications service queue may become as large as neccesary to hold all
349                       ## the indicaitons generated.
350                       ##
351 jim.wunderlich  1.100 ## If set to any value then providers are stalled by forcing them to sleep
352 jim.wunderlich  1.99  ## when they try to deliver an indication and the indications service queue
353                       ## exceeds this value. They are resumed when the queue count falls 10 percent
354 kumpf           1.140 ## below this value.
355 jim.wunderlich  1.99  ##
356                       ## Stall and resume log entries are made to inform the administrator
357                       ## the condition has occured.
358                       ##
359                       ## WARNING: This also affects the Out of Process Providers (OOP Providers)
360                       ##    The OOP Providers use two one way pipes for communication.
361                       ##    By stalling the Provider this prevents the pipe from being read
362                       ##    which will cause the pipe to fill up and the remote side will block.
363                       ##    OOP Prividers mix indications and operations on these two pipes.
364                       ##    This means the operations will also be blocked as a side effect of
365                       ##    the indications being stalled.
366 kumpf           1.140 ##
367 jim.wunderlich  1.99  ##
368                       
369                       ifdef PEGASUS_INDICATIONS_Q_THRESHOLD
370                         DEFINES += -DPEGASUS_INDICATIONS_Q_THRESHOLD=$(PEGASUS_INDICATIONS_Q_THRESHOLD)
371                       endif
372                       
373 jim.wunderlich  1.97  
374 kumpf           1.87  # Allow PEGASUS_ASSERT statements to be disabled.
375                       ifdef PEGASUS_NOASSERTS
376                           DEFINES += -DNDEBUG
377                       endif
378                       
379 mday            1.40  # do not compile trace code. sometimes it causes problems debugging
380                       ifdef PEGASUS_REMOVE_TRACE
381 david.dillard   1.65      DEFINES += -DPEGASUS_REMOVE_TRACE
382 mday            1.40  endif
383                       
384 chuck           1.47  # PEP 161
385                       # Control whether utf-8 filenames are supported by the repository
386                       ifdef PEGASUS_SUPPORT_UTF8_FILENAME
387 david.dillard   1.65      DEFINES += -DPEGASUS_SUPPORT_UTF8_FILENAME
388 chuck           1.47  
389 david.dillard   1.65      # Control whether utf-8 filenames in the repository are escaped
390                           ifdef PEGASUS_REPOSITORY_ESCAPE_UTF8
391                               DEFINES += -DPEGASUS_REPOSITORY_ESCAPE_UTF8
392                           endif
393 chuck           1.47  endif
394                       
395 kumpf           1.49  #
396                       # PEP 142
397                       # The following flag need to be set to enable
398                       # user group authorization functionality.
399                       #
400                       ifdef PEGASUS_ENABLE_USERGROUP_AUTHORIZATION
401 david.dillard   1.65      DEFINES += -DPEGASUS_ENABLE_USERGROUP_AUTHORIZATION
402 kumpf           1.49  endif
403                       
404 chuck           1.67  #
405                       # PEP 193
406                       # The following flag need to be set to disable
407                       # CQL in indication subscriptions
408                       #
409                       ifdef PEGASUS_DISABLE_CQL
410                           DEFINES += -DPEGASUS_DISABLE_CQL
411                       endif
412                       
413 kumpf           1.68  #
414                       # PEP 186
415                       # Allow override of product name/version/status.  A file
416                       # pegasus/src/Pegasus/Common/ProductVersion.h must exist when this
417                       # flag is defined.
418                       #
419                       ifdef PEGASUS_OVERRIDE_PRODUCT_ID
420                           DEFINES += -DPEGASUS_OVERRIDE_PRODUCT_ID
421                       endif
422                       
423 kumpf           1.71  #
424 kumpf           1.106 # PEP 72
425                       # Allow Out-of-Process Providers to be disabled by default
426                       #
427 jim.wunderlich  1.113 ifdef PEGASUS_DEFAULT_ENABLE_OOP
428                         ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
429                           DEFINES += -DPEGASUS_DEFAULT_ENABLE_OOP
430 jim.wunderlich  1.111   else
431 jim.wunderlich  1.113     ifneq ($(PEGASUS_DEFAULT_ENABLE_OOP),false)
432                             $(error PEGASUS_DEFAULT_ENABLE_OOP ($(PEGASUS_DEFAULT_ENABLE_OOP)) invalid, must be true or false)
433 kumpf           1.140     endif
434 jim.wunderlich  1.111   endif
435 kumpf           1.106 endif
436                       
437                       #
438 mateus.baur     1.130 # Allow to define the default value for the Provider User Context
439                       # property as REQUESTOR.
440                       # If is set and true use REQUESTOR
441                       # If is not set or false use PRIVILEGED
442                       #
443                       ifdef PEGASUS_DEFAULT_USERCTXT_REQUESTOR
444                         ifeq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),true)
445                           DEFINES += -DPEGASUS_DEFAULT_USERCTXT_REQUESTOR
446                         else
447                           ifneq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),false)
448                             $(error PEGASUS_DEFAULT_USERCTXT_REQUESTOR ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR)) invalid, must be true or false)
449 kumpf           1.140     endif
450 mateus.baur     1.130   endif
451                       endif
452                       
453                       #
454 kumpf           1.71  # PEP 197
455                       # Allow the Provider User Context feature to be disabled.
456                       #
457 kumpf           1.74  ifdef PEGASUS_DISABLE_PROV_USERCTXT
458 kumpf           1.71      DEFINES += -DPEGASUS_DISABLE_PROV_USERCTXT
459 kumpf           1.74  endif
460 kumpf           1.71  
461 h.sterling      1.89  # Bug 2147
462                       # Allow local domain socket usage to be disabled.
463                       ifdef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
464                           DEFINES += -DPEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
465                       endif
466                       
467 chip            1.76  # PEP 211
468                       # Controls object normalization support.
469                       ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
470                           DEFINES += -DPEGASUS_ENABLE_OBJECT_NORMALIZATION
471                       endif
472                       
473 a.dunfey        1.125 # PEP 233
474                       # Controls support for EmbeddedInstance properties
475                       # and parameters
476 a.dunfey        1.129 ifndef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
477                           PEGASUS_EMBEDDED_INSTANCE_SUPPORT = true
478                       endif
479                       
480                       ifeq ($(PEGASUS_EMBEDDED_INSTANCE_SUPPORT), true)
481                           DEFINES += -DPEGASUS_EMBEDDED_INSTANCE_SUPPORT
482                       else
483                           ifneq ($(PEGASUS_EMBEDDED_INSTANCE_SUPPORT), false)
484                               $(error PEGASUS_EMBEDDED_INSTANCE_SUPPORT ($(PEGASUS_EMBEDDED_INSTANCE_SUPPORT)) invalid, must be true or false)
485 a.dunfey        1.125     endif
486                       endif
487                       
488 a.dunfey        1.129 
489 kumpf           1.80  # Allow ExecQuery functionality to be enabled
490                       ifndef PEGASUS_ENABLE_EXECQUERY
491                           DEFINES += -DPEGASUS_DISABLE_EXECQUERY
492                       endif
493                       
494 yi.zhou         1.85  # Allow System Log Handler to be enabled
495                       ifdef PEGASUS_ENABLE_SYSTEM_LOG_HANDLER
496                         DEFINES += -DPEGASUS_ENABLE_SYSTEM_LOG_HANDLER
497                       endif
498                       
499                       # Allow Email Handler to be enabled
500                       ifdef PEGASUS_ENABLE_EMAIL_HANDLER
501                         DEFINES += -DPEGASUS_ENABLE_EMAIL_HANDLER
502                       endif
503 kumpf           1.49  
504 h.sterling      1.109 # Allow qualifiers to be disabled for instance operations
505                       ifdef PEGASUS_DISABLE_INSTANCE_QUALIFIERS
506                         DEFINES += -DPEGASUS_DISABLE_INSTANCE_QUALIFIERS
507                       endif
508                       
509 yi.zhou         1.108 # Controls snmp indication handler to use NET-SNMP to deliver trap
510                       ifdef PEGASUS_USE_NET_SNMP
511                         DEFINES += -DPEGASUS_USE_NET_SNMP
512                       endif
513                       
514 denise.eckstein 1.120 ifdef PEGASUS_HAS_SSL
515                        ifndef OPENSSL_BIN
516                           OPENSSL_BIN = $(OPENSSL_HOME)/bin
517                        endif
518 denise.eckstein 1.122  ifndef OPENSSL_COMMAND
519                           OPENSSL_COMMAND = $(OPENSSL_BIN)/openssl
520                        endif
521 denise.eckstein 1.120  ifndef OPENSSL_SET_SERIAL_SUPPORTED
522                           ifneq (, $(findstring 0.9.6, $(shell $(OPENSSL_COMMAND) version)))
523                               OPENSSL_SET_SERIAL_SUPPORTED = false
524                           else
525                               OPENSSL_SET_SERIAL_SUPPORTED = true
526                           endif
527 denise.eckstein 1.122  endif
528 sushma.fernandes 1.123 
529 kumpf            1.140 # Enable CRL verification
530 sushma.fernandes 1.123 ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
531                            PEGASUS_ENABLE_SSL_CRL_VERIFICATION = true
532                        endif
533                        
534                        # Check for Enable SSL CRL verification
535                        ifdef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
536                            ifeq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), true)
537 marek            1.136         DEFINES += -DPEGASUS_ENABLE_SSL_CRL_VERIFICATION
538 sushma.fernandes 1.123     else
539                                ifneq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), false)
540                                    $(error PEGASUS_ENABLE_SSL_CRL_VERIFICATION\
541                                         ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION)) invalid, \
542                                          must be true or false)
543                                endif
544                            endif
545                        endif
546 denise.eckstein  1.120 endif
547                        
548 jim.wunderlich   1.101 #
549 yi.zhou          1.134 # PEP 258
550                        # Allow Audit Logger to be disabled
551                        #
552                        ifdef PEGASUS_DISABLE_AUDIT_LOGGER
553                          ifeq ($(PEGASUS_DISABLE_AUDIT_LOGGER),true)
554 kumpf            1.140     DEFINES += -DPEGASUS_DISABLE_AUDIT_LOGGER
555 yi.zhou          1.134   else
556                            ifneq ($(PEGASUS_DISABLE_AUDIT_LOGGER),false)
557                              $(error PEGASUS_DISABLE_AUDIT_LOGGER ($(PEGASUS_DISABLE_AUDIT_LOGGER)) \
558                               invalid, must be true or false)
559 kumpf            1.140     endif
560                          endif
561 yi.zhou          1.134 endif
562                        
563                        #
564 jim.wunderlich   1.101 # PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP
565                        #
566 jim.wunderlich   1.112 # PEGASUS_DISABLE_SLP has been depracated. New use model is:
567 jim.wunderlich   1.101 #
568 jim.wunderlich   1.112 # Use PEGASUS_ENABLE_SLP=true  to enable  compilation of SLP functions.
569                        #
570 kumpf            1.140 # Use PEGASUS_ENABLE_SLP=false to disable compilation of SLP functions.
571 jim.wunderlich   1.101 #
572 kumpf            1.140 # Currently (Aug. 12, 2005) Windows is the only platform that enables SLP
573 jim.wunderlich   1.101 # by default.
574                        #
575                        # NOTE. Effective with Bug # 2633 some platforms enable SLP.
576 karl             1.75  # To see which platforms look for platform make files that set
577 kumpf            1.140 # the variable PEGASUS_ENABLE_SLP.
578 jim.wunderlich   1.101 #
579                        #
580 jim.wunderlich   1.112 
581 karl             1.39  ifdef PEGASUS_ENABLE_SLP
582 jim.wunderlich   1.101   ifdef PEGASUS_DISABLE_SLP
583                            $(error Conflicting defines PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP both set)
584                          endif
585 jim.wunderlich   1.112 endif
586                        
587                        ifdef PEGASUS_DISABLE_SLP
588                            $(error PEGASUS_DISABLE_SLP has been deprecated. Please use PEGASUS_ENABLE_SLP=[true/false] )
589                        
590                        PEGASUS_ENABLE_SLP=false
591                        
592                        endif
593                        
594                        ifdef PEGASUS_ENABLE_SLP
595                          ifeq ($(PEGASUS_ENABLE_SLP),true)
596 david.dillard    1.65      DEFINES += -DPEGASUS_ENABLE_SLP
597 jim.wunderlich   1.112   else
598                            ifneq ($(PEGASUS_ENABLE_SLP),false)
599                              $(error PEGASUS_ENABLE_SLP ($(PEGASUS_ENABLE_SLP)) invalid, must be true or false)
600 kumpf            1.140     endif
601 jim.wunderlich   1.112   endif
602 karl             1.39  endif
603 karl             1.36  
604 jim.wunderlich   1.121 
605                        ############################################################################
606                        #
607                        # PEGASUS_USE_OPENSLP
608                        #
609                        # Environment variable to set openslp as SLP environment to use
610                        # for SLP Directory and User Agents.
611                        #
612                        # Allows enabling use of openslp interfaces for slp instead of the
613                        # internal pegasus slp agent.  Note that this does not disable the
614                        # compilation of the internal agent code, etc.  However, it assumes
615                        # openslp is installed on the platform and changes the interfaces
616                        # to match this.  At this moment, this is a change specifically for
617                        # adaptec but we expect to generalize it to provide openslp as a
618                        # generalized alternative to ldapslp.
619 kumpf            1.140 # to use this. To set this function up,
620 jim.wunderlich   1.121 #
621                        # Use this variable in conjunction with PEGASUS_OPENSLP_HOME
622 kumpf            1.140 # to enable OpenSlp as the slp implementation.
623 jim.wunderlich   1.121 #
624                        # NOTE that it has no affect if the PEGASUS_ENABLE_SLP etc. flags are not set.
625                        #
626                        
627                        ifdef PEGASUS_USE_OPENSLP
628                           ifeq ($(PEGASUS_ENABLE_SLP),true)
629                              DEFINES += -DPEGASUS_USE_OPENSLP
630                            else
631                              $(error PEGASUS_USE_OPENSLP defined but PEGASUS_ENABLE_SLP is not true. Please correct this inconsistency)
632                            endif
633                        endif
634                        
635 dave.sudlik      1.135 # PEP 267
636                        # SLP reregistration support.
637                        # PEGASUS_SLP_REG_TIMEOUT is defined as the SLP registration timeout
638                        # interval, in minutes.
639                        ifdef PEGASUS_SLP_REG_TIMEOUT
640                            ifeq ($(PEGASUS_ENABLE_SLP),true)
641                               DEFINES += -DPEGASUS_SLP_REG_TIMEOUT=$(PEGASUS_SLP_REG_TIMEOUT)
642                             else
643                               $(error PEGASUS_SLP_REG_TIMEOUT defined but PEGASUS_ENABLE_SLP is not true. Please correct this inconsistency)
644                             endif
645                         endif
646 jim.wunderlich   1.121 
647                        ############################################################################
648                        #
649                        # PEGASUS_OPENSLP_HOME
650                        #
651                        # Environment variable to set home location for OpenSLP include and library
652 kumpf            1.140 # files if they are located somewhere other than /usr/include and /usr/lib.
653 jim.wunderlich   1.121 #
654                        # PEGASUS_USE_OPENSLP must also be defined for this environment variable
655                        # to have any effect.
656                        #
657 kumpf            1.140 # This is the directory level within which both the include and lib
658                        # directories holding the OpenSLP files will be found.
659 jim.wunderlich   1.121 #
660 kumpf            1.140 # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
661 jim.wunderlich   1.121 #     then this environment variable should be set to /opt/OpenSLP.
662                        #
663                        
664                        
665 sushma.fernandes 1.114 #
666 kumpf            1.140 # Enable this flag to allow the handshake to continue regardless of verification result
667 sushma.fernandes 1.114 #
668                        ifdef PEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
669                          DEFINES += -DPEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
670                        endif
671                        
672 karl             1.60  # set PEGASUS_DEBUG into the DEFINES if it exists.
673                        # Note that this flag is the general separator between
674                        # debug compiles and non-debug compiles and controls both
675                        # the use of any debug options on compilers and linkers
676                        # and general debug support that we want to be turned on in
677 chip             1.76  # debug mode.
678 karl             1.60  ifdef PEGASUS_DEBUG
679 david.dillard    1.65      DEFINES += -DPEGASUS_DEBUG
680 kumpf            1.88  
681                            # Indications debugging options
682                            ifdef PEGASUS_INDICATION_PERFINST
683                                DEFINES += -DPEGASUS_INDICATION_PERFINST
684                            endif
685                        
686                            ifdef PEGASUS_INDICATION_HASHTRACE
687                                DEFINES += -DPEGASUS_INDICATION_HASHTRACE
688                            endif
689 kumpf            1.131 
690                            # Setup the conditional compile for client displays.
691                            ifdef PEGASUS_CLIENT_TRACE_ENABLE
692                                DEFINES += -DPEGASUS_CLIENT_TRACE_ENABLE
693                            endif
694 karl             1.60  endif
695                        
696 chuck            1.42  # compile in the experimental APIs
697 david.dillard    1.65  DEFINES += -DPEGASUS_USE_EXPERIMENTAL_INTERFACES
698 chuck            1.42  
699 kumpf            1.93  # Ensure that the deprecated interfaces are defined in the Pegasus libraries.
700                        # One may wish to disable these interfaces if binary compatibility with
701                        # previous Pegasus releases is not required.
702                        ifndef PEGASUS_DISABLE_DEPRECATED_INTERFACES
703                            DEFINES += -DPEGASUS_USE_DEPRECATED_INTERFACES
704                        endif
705                        
706 w.white          1.57  # Set compile flag to control compilation of CIMOM statistics
707 karl             1.73  ifdef PEGASUS_DISABLE_PERFINST
708 marek            1.136     DEFINES += -DPEGASUS_DISABLE_PERFINST
709 w.white          1.57  endif
710 kumpf            1.56  
711 karl             1.96  # Set compile flag to control compilation of SNIA Extensions
712                        ifdef PEGASUS_SNIA_EXTENSIONS
713 marek            1.136     DEFINES += -DPEGASUS_SNIA_EXTENSIONS
714 karl             1.96  endif
715                        
716 denise.eckstein  1.119 ifdef PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
717                            ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
718 marek            1.136         DEFINES += -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
719 denise.eckstein  1.119     else
720                                ifneq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), false)
721                                    $(error PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER \
722                                         ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER)) invalid, \
723                                          must be true or false)
724                                endif
725                            endif
726                        endif
727                        
728 mark.hamzy       1.124 ifdef PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
729                            ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
730 marek            1.136         DEFINES += -DPEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
731 mark.hamzy       1.124     else
732                                ifneq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), false)
733                                    $(error PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER \
734                                         ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER)) invalid, \
735                                          must be true or false)
736                                endif
737                            endif
738                        endif
739                        
740 kumpf            1.95  # Allow remote CMPI functionality to be enabled
741                        ifdef PEGASUS_ENABLE_REMOTE_CMPI
742 marek            1.136     DEFINES += -DPEGASUS_ENABLE_REMOTE_CMPI
743 kumpf            1.95  endif
744                        
745 kumpf            1.56  ############################################################
746                        #
747                        # Set any vendor-specific compile flags
748                        #
749                        ############################################################
750                        
751                        ifdef PEGASUS_VENDOR_HP
752 david.dillard    1.65      DEFINES+= -DPEGASUS_VENDOR_HP
753 kumpf            1.56  endif
754                        
755 chip             1.76  
756 karl             1.17  ############################################################
757                        #
758                        # Set up other Make Variables that depend on platform config files
759                        #
760                        ############################################################
761                        
762                        # This is temporary until we end up with a better place to
763                        # put this variable
764                        # Makefiles can do directory remove with
765                        # $(RMREPOSITORY) repositoryname
766                        #
767                        RMREPOSITORY = $(RMDIRHIER)
768                        
769 w.otsuka         1.63  ifdef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
770 marek            1.136     DEFINES += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
771 w.otsuka         1.62  endif
772                        
773                        ifdef PEGASUS_USE_RELEASE_DIRS
774 marek            1.136     DEFINES += -DPEGASUS_USE_RELEASE_DIRS
775 w.otsuka         1.62  endif
776 mday             1.27  
777 denise.eckstein  1.110 ifdef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
778 marek            1.136     DEFINES += -DPEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
779 denise.eckstein  1.110 endif
780                        
781 kumpf            1.64  # Unless otherwise specified, Pegasus libraries go in $(PEGASUS_HOME)/lib
782                        ifndef PEGASUS_DEST_LIB_DIR
783 david.dillard    1.65      PEGASUS_DEST_LIB_DIR = lib
784 kumpf            1.64  endif
785 mday             1.28  
786 gs.keenan        1.77  ifeq ($(OS),VMS)
787                         DEFINES += -DPEGASUS_DEST_LIB_DIR="""$(PEGASUS_DEST_LIB_DIR)"""
788                        else
789                         DEFINES += -DPEGASUS_DEST_LIB_DIR=\"$(PEGASUS_DEST_LIB_DIR)\"
790                        endif
791                        
792 w.otsuka         1.79  ################################################################################
793                        ##
794 mike             1.105 ## PEGASUS_CLASS_CACHE_SIZE
795                        ##
796                        ##     This environment variable gives the size of the class cache used by
797                        ##     the CIM repository. When it is undefined, the size defaults to something
798                        ##     relatively small (see src/Pegasus/Repository/CIMRepository.cpp). If
799                        ##     defined, it gives the size of the class cache. If it is 0 , the class
800                        ##     cache is not defined compiled in at all.
801                        ##
802                        ################################################################################
803                        
804                        ifdef PEGASUS_CLASS_CACHE_SIZE
805                        DEFINES += -DPEGASUS_CLASS_CACHE_SIZE=$(PEGASUS_CLASS_CACHE_SIZE)
806                        endif
807                        
808                        ################################################################################
809                        ##
810 w.otsuka         1.79  ## Additional build flags passed in through environment variables.
811                        ## These flags are added to the compile/link commands.
812                        ##
813                        ################################################################################
814                        
815                        ifdef PEGASUS_EXTRA_CXX_FLAGS
816                            EXTRA_CXX_FLAGS = $(PEGASUS_EXTRA_CXX_FLAGS)
817                        endif
818                        
819                        ifdef PEGASUS_EXTRA_C_FLAGS
820                            EXTRA_C_FLAGS = $(PEGASUS_EXTRA_C_FLAGS)
821                        endif
822                        
823                        ifdef PEGASUS_EXTRA_LINK_FLAGS
824                            EXTRA_LINK_FLAGS = $(PEGASUS_EXTRA_LINK_FLAGS)
825                        endif
826                        
827 mike             1.126 ##==============================================================================
828                        ##
829                        ## By definining PEGASUS_USE_STATIC_LIBRARIES in the environment and STATIC
830                        ## in the Makefile, a static library is produced rather than a shared one.
831                        ## PEGASUS_USE_STATIC_LIBRARIES should be "true" or "false".
832                        ##
833                        ##==============================================================================
834                        
835                        ifdef PEGASUS_USE_STATIC_LIBRARIES
836                          ifeq ($(PEGASUS_USE_STATIC_LIBRARIES),true)
837                          else
838                            ifneq ($(PEGASUS_USE_STATIC_LIBRARIES),false)
839                              $(error PEGASUS_USE_STATIC_LIBRARIES ($(PEGASUS_USE_STATIC_LIBRARIES)) invalid, must be true or false)
840 kumpf            1.140     endif
841                          endif
842                        endif
843                        
844                        ##==============================================================================
845                        ##
846                        ## PEGASUS_ENABLE_PRIVILEGE_SEPARATION
847                        ##
848                        ##     Enables privilege separation support (uses the executor process to
849                        ##     perform privileged operations).
850                        ##
851                        ##==============================================================================
852                        
853                        ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
854                          ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
855                            DEFINES += -DPEGASUS_ENABLE_PRIVILEGE_SEPARATION
856                          else
857                            ifneq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),false)
858                              $(error PEGASUS_ENABLE_PRIVILEGE_SEPARATION \
859                                ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION)) invalid, must be true or false)
860                            endif
861 kumpf            1.140   endif
862                        
863                          ## Specifies the user context of the cimservermain process when privilege
864                          ## separation is enabled.
865 kumpf            1.141   ifndef PEGASUS_CIMSERVERMAIN_USER
866                            PEGASUS_CIMSERVERMAIN_USER = pegasus
867 mike             1.126   endif
868 kumpf            1.141   DEFINES += -DPEGASUS_CIMSERVERMAIN_USER=\"$(PEGASUS_CIMSERVERMAIN_USER)\"
869 mike             1.126 endif
870 mark.hamzy       1.127 
871 kumpf            1.140 ##==============================================================================
872                        ##
873                        ## PEGASUS_USE_PAM_STANDALONE_PROC
874                        ##
875                        ##==============================================================================
876                        
877                        ifdef PEGASUS_USE_PAM_STANDALONE_PROC
878                          DEFINES += -DPEGASUS_USE_PAM_STANDALONE_PROC
879                        endif
880                        
881                        ##==============================================================================
882 mark.hamzy       1.127 
883                        ifndef PEGASUS_JAVA_CLASSPATH_DELIMITER
884                            PEGASUS_JAVA_CLASSPATH_DELIMITER = :
885                        endif
886 mark.hamzy       1.132 
887                        ifndef PEGASUS_JVM
888                        	PEGASUS_JVM = sun
889                        endif
890                        ifeq ($(PEGASUS_JVM),gcj)
891                        	PEGASUS_JAVA_COMPILER		= gcj -C
892                        	PEGASUS_JAVA_JAR		= fastjar
893                        	PEGASUS_JAVA_INTERPRETER	= gij
894                        else
895                        	PEGASUS_JAVA_COMPILER		= javac -target 1.4 -source 1.4
896                        	PEGASUS_JAVA_JAR		= jar
897                        	PEGASUS_JAVA_INTERPRETER	= java
898                        endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2