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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2