(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 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 yi.zhou          1.161.4.1 #
 727                            # PEP 322
 728 kumpf            1.161.4.2 # Allow tracking generated indications data to be disabled.  It is enabled
 729 yi.zhou          1.161.4.1 # by default.
 730                            #
 731                            
 732                            ifndef PEGASUS_ENABLE_INDICATION_COUNT
 733                                PEGASUS_ENABLE_INDICATION_COUNT = true
 734                            endif
 735                            
 736                            ifdef PEGASUS_ENABLE_INDICATION_COUNT
 737                                ifeq ($(PEGASUS_ENABLE_INDICATION_COUNT),true)
 738                                    DEFINES += -DPEGASUS_ENABLE_INDICATION_COUNT
 739                                else
 740                                    ifneq ($(PEGASUS_ENABLE_INDICATION_COUNT),false)
 741                                        $(error PEGASUS_ENABLE_INDICATION_COUNT \
 742                                          ($(PEGASUS_ENABLE_INDICATION_COUNT)) invalid, must be true or false)
 743                                    endif
 744                                endif
 745                            endif
 746                            
 747 karl             1.151     ############################################################################
 748 yi.zhou          1.134     #
 749 jim.wunderlich   1.101     # PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP
 750                            #
 751 jim.wunderlich   1.112     # PEGASUS_DISABLE_SLP has been depracated. New use model is:
 752 jim.wunderlich   1.101     #
 753 jim.wunderlich   1.112     # Use PEGASUS_ENABLE_SLP=true  to enable  compilation of SLP functions.
 754                            #
 755 kumpf            1.140     # Use PEGASUS_ENABLE_SLP=false to disable compilation of SLP functions.
 756 jim.wunderlich   1.101     #
 757 kumpf            1.140     # Currently (Aug. 12, 2005) Windows is the only platform that enables SLP
 758 jim.wunderlich   1.101     # by default.
 759                            #
 760                            # NOTE. Effective with Bug # 2633 some platforms enable SLP.
 761 karl             1.75      # To see which platforms look for platform make files that set
 762 kumpf            1.140     # the variable PEGASUS_ENABLE_SLP.
 763 jim.wunderlich   1.101     #
 764                            #
 765 jim.wunderlich   1.112     
 766 karl             1.39      ifdef PEGASUS_ENABLE_SLP
 767 jim.wunderlich   1.101       ifdef PEGASUS_DISABLE_SLP
 768                                $(error Conflicting defines PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP both set)
 769                              endif
 770 jim.wunderlich   1.112     endif
 771                            
 772                            ifdef PEGASUS_DISABLE_SLP
 773                                $(error PEGASUS_DISABLE_SLP has been deprecated. Please use PEGASUS_ENABLE_SLP=[true/false] )
 774                            
 775                            PEGASUS_ENABLE_SLP=false
 776                            
 777                            endif
 778                            
 779                            ifdef PEGASUS_ENABLE_SLP
 780                              ifeq ($(PEGASUS_ENABLE_SLP),true)
 781 david.dillard    1.65          DEFINES += -DPEGASUS_ENABLE_SLP
 782 jim.wunderlich   1.112       else
 783                                ifneq ($(PEGASUS_ENABLE_SLP),false)
 784                                  $(error PEGASUS_ENABLE_SLP ($(PEGASUS_ENABLE_SLP)) invalid, must be true or false)
 785 kumpf            1.140         endif
 786 jim.wunderlich   1.112       endif
 787 karl             1.39      endif
 788 karl             1.36      
 789 jim.wunderlich   1.121     
 790                            ############################################################################
 791                            #
 792                            # PEGASUS_USE_OPENSLP
 793                            #
 794                            # Environment variable to set openslp as SLP environment to use
 795                            # for SLP Directory and User Agents.
 796                            #
 797                            # Allows enabling use of openslp interfaces for slp instead of the
 798                            # internal pegasus slp agent.  Note that this does not disable the
 799                            # compilation of the internal agent code, etc.  However, it assumes
 800                            # openslp is installed on the platform and changes the interfaces
 801                            # to match this.  At this moment, this is a change specifically for
 802                            # adaptec but we expect to generalize it to provide openslp as a
 803                            # generalized alternative to ldapslp.
 804 kumpf            1.140     # to use this. To set this function up,
 805 jim.wunderlich   1.121     #
 806                            # Use this variable in conjunction with PEGASUS_OPENSLP_HOME
 807 kumpf            1.140     # to enable OpenSlp as the slp implementation.
 808 jim.wunderlich   1.121     #
 809                            # NOTE that it has no affect if the PEGASUS_ENABLE_SLP etc. flags are not set.
 810                            #
 811                            
 812                            ifdef PEGASUS_USE_OPENSLP
 813                               ifeq ($(PEGASUS_ENABLE_SLP),true)
 814                                  DEFINES += -DPEGASUS_USE_OPENSLP
 815                                else
 816                                  $(error PEGASUS_USE_OPENSLP defined but PEGASUS_ENABLE_SLP is not true. Please correct this inconsistency)
 817                                endif
 818                            endif
 819                            
 820 dave.sudlik      1.135     # PEP 267
 821                            # SLP reregistration support.
 822                            # PEGASUS_SLP_REG_TIMEOUT is defined as the SLP registration timeout
 823                            # interval, in minutes.
 824                            ifdef PEGASUS_SLP_REG_TIMEOUT
 825                                ifeq ($(PEGASUS_ENABLE_SLP),true)
 826                                   DEFINES += -DPEGASUS_SLP_REG_TIMEOUT=$(PEGASUS_SLP_REG_TIMEOUT)
 827                                 else
 828                                   $(error PEGASUS_SLP_REG_TIMEOUT defined but PEGASUS_ENABLE_SLP is not true. Please correct this inconsistency)
 829                                 endif
 830                             endif
 831 jim.wunderlich   1.121     
 832                            ############################################################################
 833                            #
 834                            # PEGASUS_OPENSLP_HOME
 835                            #
 836                            # Environment variable to set home location for OpenSLP include and library
 837 kumpf            1.140     # files if they are located somewhere other than /usr/include and /usr/lib.
 838 jim.wunderlich   1.121     #
 839                            # PEGASUS_USE_OPENSLP must also be defined for this environment variable
 840                            # to have any effect.
 841                            #
 842 kumpf            1.140     # This is the directory level within which both the include and lib
 843                            # directories holding the OpenSLP files will be found.
 844 jim.wunderlich   1.121     #
 845 kumpf            1.140     # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
 846 jim.wunderlich   1.121     #     then this environment variable should be set to /opt/OpenSLP.
 847                            #
 848                            
 849                            
 850 sushma.fernandes 1.114     #
 851 kumpf            1.140     # Enable this flag to allow the handshake to continue regardless of verification result
 852 sushma.fernandes 1.114     #
 853                            ifdef PEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
 854                              DEFINES += -DPEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
 855                            endif
 856                            
 857 karl             1.151     ############################################################################
 858                            #
 859                            # PEGASUS_ENABLE_INTEROP_PROVIDER
 860                            # Enables the interop provider AND the server profile.
 861                            # initially this was activated by setting either the perfinst or slp enable
 862                            # flags.  This allows activating this function without any either perfinst or
 863                            # slp enabled.  Note that if either of these are enabled, this funtion is also
 864                            # enabled
 865                            
 866                            ## if either slp or perfinst are enabled and this is false, flag error
 867                            ## This gets messy because should account for both postive and negative on
 868                            ## interop so we don't get multiples.
 869                            
 870                            ifdef PEGASUS_ENABLE_SLP
 871                                ifeq ($(PEGASUS_ENABLE_SLP),true)
 872                                    ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
 873                                        PEGASUS_ENABLE_INTEROP_PROVIDER = true
 874                                    else
 875                                        ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
 876                                            $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if SLP enabled)
 877                                        endif
 878 karl             1.151             endif
 879                                endif
 880                            endif
 881                            
 882                            ## if PERFINST enabled, set to force interop.
 883                            ifndef PEGASUS_DISABLE_PERFINST
 884                                ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
 885                                    PEGASUS_ENABLE_INTEROP_PROVIDER = true
 886                                else
 887                                    ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
 888                                        $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if PERFINST enabled)
 889                                    endif
 890                                endif
 891                            endif
 892                            
 893                            ifdef PEGASUS_ENABLE_INTEROP_PROVIDER
 894                                ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),true)
 895                                    DEFINES += -DPEGASUS_ENABLE_INTEROP_PROVIDER
 896                                else
 897                                    ifneq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
 898                                        $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true or false)
 899 karl             1.151             endif
 900                                endif
 901                            endif
 902                            
 903                            
 904                            ############################################################################
 905 karl             1.60      # set PEGASUS_DEBUG into the DEFINES if it exists.
 906                            # Note that this flag is the general separator between
 907                            # debug compiles and non-debug compiles and controls both
 908                            # the use of any debug options on compilers and linkers
 909                            # and general debug support that we want to be turned on in
 910 chip             1.76      # debug mode.
 911 karl             1.60      ifdef PEGASUS_DEBUG
 912 david.dillard    1.65          DEFINES += -DPEGASUS_DEBUG
 913 kumpf            1.88      
 914                                # Indications debugging options
 915                                ifdef PEGASUS_INDICATION_PERFINST
 916                                    DEFINES += -DPEGASUS_INDICATION_PERFINST
 917                                endif
 918                            
 919                                ifdef PEGASUS_INDICATION_HASHTRACE
 920                                    DEFINES += -DPEGASUS_INDICATION_HASHTRACE
 921                                endif
 922 kumpf            1.131     
 923                                # Setup the conditional compile for client displays.
 924                                ifdef PEGASUS_CLIENT_TRACE_ENABLE
 925                                    DEFINES += -DPEGASUS_CLIENT_TRACE_ENABLE
 926                                endif
 927 karl             1.60      endif
 928                            
 929 chuck            1.42      # compile in the experimental APIs
 930 david.dillard    1.65      DEFINES += -DPEGASUS_USE_EXPERIMENTAL_INTERFACES
 931 chuck            1.42      
 932 kumpf            1.93      # Ensure that the deprecated interfaces are defined in the Pegasus libraries.
 933                            # One may wish to disable these interfaces if binary compatibility with
 934                            # previous Pegasus releases is not required.
 935                            ifndef PEGASUS_DISABLE_DEPRECATED_INTERFACES
 936                                DEFINES += -DPEGASUS_USE_DEPRECATED_INTERFACES
 937                            endif
 938                            
 939 w.white          1.57      # Set compile flag to control compilation of CIMOM statistics
 940 karl             1.73      ifdef PEGASUS_DISABLE_PERFINST
 941 marek            1.136         DEFINES += -DPEGASUS_DISABLE_PERFINST
 942 w.white          1.57      endif
 943 kumpf            1.56      
 944 karl             1.96      # Set compile flag to control compilation of SNIA Extensions
 945                            ifdef PEGASUS_SNIA_EXTENSIONS
 946 marek            1.136         DEFINES += -DPEGASUS_SNIA_EXTENSIONS
 947 karl             1.96      endif
 948                            
 949 denise.eckstein  1.119     ifdef PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
 950                                ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
 951 marek            1.136             DEFINES += -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
 952 denise.eckstein  1.119         else
 953                                    ifneq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), false)
 954                                        $(error PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER \
 955                                             ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER)) invalid, \
 956                                              must be true or false)
 957                                    endif
 958                                endif
 959                            endif
 960                            
 961 mark.hamzy       1.124     ifdef PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
 962                                ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
 963 marek            1.136             DEFINES += -DPEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
 964 mark.hamzy       1.124         else
 965                                    ifneq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), false)
 966                                        $(error PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER \
 967                                             ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER)) invalid, \
 968                                              must be true or false)
 969                                    endif
 970                                endif
 971                            endif
 972                            
 973 kumpf            1.95      # Allow remote CMPI functionality to be enabled
 974                            ifdef PEGASUS_ENABLE_REMOTE_CMPI
 975 marek            1.136         DEFINES += -DPEGASUS_ENABLE_REMOTE_CMPI
 976 kumpf            1.95      endif
 977                            
 978 kumpf            1.56      ############################################################
 979                            #
 980                            # Set any vendor-specific compile flags
 981                            #
 982                            ############################################################
 983                            
 984                            ifdef PEGASUS_VENDOR_HP
 985 david.dillard    1.65          DEFINES+= -DPEGASUS_VENDOR_HP
 986 kumpf            1.56      endif
 987                            
 988 chip             1.76      
 989 karl             1.17      ############################################################
 990                            #
 991                            # Set up other Make Variables that depend on platform config files
 992                            #
 993                            ############################################################
 994                            
 995                            # This is temporary until we end up with a better place to
 996                            # put this variable
 997                            # Makefiles can do directory remove with
 998                            # $(RMREPOSITORY) repositoryname
 999                            #
1000                            RMREPOSITORY = $(RMDIRHIER)
1001                            
1002 w.otsuka         1.63      ifdef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
1003 marek            1.136         DEFINES += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
1004 w.otsuka         1.62      endif
1005                            
1006                            ifdef PEGASUS_USE_RELEASE_DIRS
1007 marek            1.136         DEFINES += -DPEGASUS_USE_RELEASE_DIRS
1008 w.otsuka         1.62      endif
1009 mday             1.27      
1010 denise.eckstein  1.110     ifdef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
1011 marek            1.136         DEFINES += -DPEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
1012 denise.eckstein  1.110     endif
1013                            
1014 kumpf            1.64      # Unless otherwise specified, Pegasus libraries go in $(PEGASUS_HOME)/lib
1015                            ifndef PEGASUS_DEST_LIB_DIR
1016 david.dillard    1.65          PEGASUS_DEST_LIB_DIR = lib
1017 kumpf            1.64      endif
1018 mday             1.28      
1019 gs.keenan        1.77      ifeq ($(OS),VMS)
1020                             DEFINES += -DPEGASUS_DEST_LIB_DIR="""$(PEGASUS_DEST_LIB_DIR)"""
1021                            else
1022                             DEFINES += -DPEGASUS_DEST_LIB_DIR=\"$(PEGASUS_DEST_LIB_DIR)\"
1023                            endif
1024                            
1025 w.otsuka         1.79      ################################################################################
1026                            ##
1027 mike             1.105     ## PEGASUS_CLASS_CACHE_SIZE
1028                            ##
1029                            ##     This environment variable gives the size of the class cache used by
1030                            ##     the CIM repository. When it is undefined, the size defaults to something
1031                            ##     relatively small (see src/Pegasus/Repository/CIMRepository.cpp). If
1032                            ##     defined, it gives the size of the class cache. If it is 0 , the class
1033                            ##     cache is not defined compiled in at all.
1034                            ##
1035                            ################################################################################
1036                            
1037                            ifdef PEGASUS_CLASS_CACHE_SIZE
1038                            DEFINES += -DPEGASUS_CLASS_CACHE_SIZE=$(PEGASUS_CLASS_CACHE_SIZE)
1039                            endif
1040                            
1041                            ################################################################################
1042                            ##
1043 w.otsuka         1.79      ## Additional build flags passed in through environment variables.
1044                            ## These flags are added to the compile/link commands.
1045                            ##
1046                            ################################################################################
1047                            
1048                            ifdef PEGASUS_EXTRA_CXX_FLAGS
1049                                EXTRA_CXX_FLAGS = $(PEGASUS_EXTRA_CXX_FLAGS)
1050                            endif
1051                            
1052                            ifdef PEGASUS_EXTRA_C_FLAGS
1053                                EXTRA_C_FLAGS = $(PEGASUS_EXTRA_C_FLAGS)
1054                            endif
1055                            
1056                            ifdef PEGASUS_EXTRA_LINK_FLAGS
1057                                EXTRA_LINK_FLAGS = $(PEGASUS_EXTRA_LINK_FLAGS)
1058                            endif
1059                            
1060 mike             1.126     ##==============================================================================
1061                            ##
1062                            ## By definining PEGASUS_USE_STATIC_LIBRARIES in the environment and STATIC
1063                            ## in the Makefile, a static library is produced rather than a shared one.
1064                            ## PEGASUS_USE_STATIC_LIBRARIES should be "true" or "false".
1065                            ##
1066                            ##==============================================================================
1067                            
1068                            ifdef PEGASUS_USE_STATIC_LIBRARIES
1069                              ifeq ($(PEGASUS_USE_STATIC_LIBRARIES),true)
1070                              else
1071                                ifneq ($(PEGASUS_USE_STATIC_LIBRARIES),false)
1072                                  $(error PEGASUS_USE_STATIC_LIBRARIES ($(PEGASUS_USE_STATIC_LIBRARIES)) invalid, must be true or false)
1073 kumpf            1.140         endif
1074                              endif
1075                            endif
1076                            
1077                            ##==============================================================================
1078                            ##
1079                            ## PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1080                            ##
1081                            ##     Enables privilege separation support (uses the executor process to
1082                            ##     perform privileged operations).
1083                            ##
1084                            ##==============================================================================
1085                            
1086                            ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1087                              ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1088                                DEFINES += -DPEGASUS_ENABLE_PRIVILEGE_SEPARATION
1089                              else
1090                                ifneq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),false)
1091                                  $(error PEGASUS_ENABLE_PRIVILEGE_SEPARATION \
1092                                    ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION)) invalid, must be true or false)
1093                                endif
1094 kumpf            1.140       endif
1095                            
1096 kumpf            1.148       ## Defines the user context of the cimservermain process when privilege
1097 kumpf            1.140       ## separation is enabled.
1098 kumpf            1.148       PEGASUS_CIMSERVERMAIN_USER = cimsrvr
1099 kumpf            1.141       DEFINES += -DPEGASUS_CIMSERVERMAIN_USER=\"$(PEGASUS_CIMSERVERMAIN_USER)\"
1100 mike             1.126     endif
1101 mark.hamzy       1.127     
1102 kumpf            1.140     ##==============================================================================
1103                            ##
1104                            ## PEGASUS_USE_PAM_STANDALONE_PROC
1105                            ##
1106                            ##==============================================================================
1107                            
1108                            ifdef PEGASUS_USE_PAM_STANDALONE_PROC
1109                              DEFINES += -DPEGASUS_USE_PAM_STANDALONE_PROC
1110                            endif
1111                            
1112                            ##==============================================================================
1113 mark.hamzy       1.127     
1114                            ifndef PEGASUS_JAVA_CLASSPATH_DELIMITER
1115                                PEGASUS_JAVA_CLASSPATH_DELIMITER = :
1116                            endif
1117 mark.hamzy       1.132     
1118                            ifndef PEGASUS_JVM
1119                            	PEGASUS_JVM = sun
1120                            endif
1121                            ifeq ($(PEGASUS_JVM),gcj)
1122                            	PEGASUS_JAVA_COMPILER		= gcj -C
1123                            	PEGASUS_JAVA_JAR		= fastjar
1124                            	PEGASUS_JAVA_INTERPRETER	= gij
1125                            else
1126                            	PEGASUS_JAVA_COMPILER		= javac -target 1.4 -source 1.4
1127                            	PEGASUS_JAVA_JAR		= jar
1128                            	PEGASUS_JAVA_INTERPRETER	= java
1129                            endif
1130 dmitry.mikulin   1.155     
1131                            # Disable client timeouts when we're doing a valgrind build
1132 kumpf            1.157     ifdef PEGASUS_TEST_VALGRIND_LOG_DIR
1133 dmitry.mikulin   1.156         DEFINES += -DPEGASUS_DISABLE_CLIENT_TIMEOUT -DPEGASUS_TEST_VALGRIND
1134 dmitry.mikulin   1.155     endif
1135                            
1136 s.kodali         1.161     ## ======================================================================
1137                            ##
1138                            ## PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1139                            ## This controls allowing the path specified in the Location property of 
1140                            ## PG_ProviderModule class.
1141                            ##
1142                            ##   Set to "true", It allows the absolute path specified in the Location property
1143                            ##   of PG_ProviderModule class. Otherwise it does not allow the absolute path.
1144                            ##   see bug 7289 for background information concerning this config variable.
1145                            ##
1146                            
1147                            ifndef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1148                                PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE=false
1149                            endif
1150                            
1151                            ifdef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1152                              ifeq ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE),true)
1153                                DEFINES += -DPEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1154                              else
1155                                ifneq ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE),false)
1156                                  $(error PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE \
1157 s.kodali         1.161                 ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE)) \
1158                                        invalid, must be true or false)
1159                                endif
1160                              endif
1161                            endif
1162                            

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2