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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2