(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.195.2.2 ## 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 karl            1.195.2.3     PEGASUS_CIM_SCHEMA=CIM236
 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_ROOT_BUNDLE_LANG if set, specifies the language that the root
 391                               ## resource bundle will be generated from.  Defaults to _en if not set.
 392                               ## If set, for any directory containing resource bundles, there must
 393                               ## exist a file name:  package($ICU_ROOT_BUNDLE_LANG).txt or the make
 394                               ## messages target will fail.
 395                               ##
 396                               ####################################
 397                           
 398                               ifdef ICU_ROOT_BUNDLE_LANG
 399                                   MSG_ROOT_SOURCE = $(ICU_ROOT_BUNDLE_LANG)
 400                               else
 401                                   MSG_ROOT_SOURCE = _en
 402                               endif
 403 kumpf           1.168     
 404                               ifdef ICU_INSTALL
 405                                   MSG_COMPILE = $(ICU_INSTALL)/bin/genrb
 406                               else
 407                                   MSG_COMPILE = genrb
 408                               endif
 409                           
 410                               MSG_FLAGS =
 411                               MSG_SOURCE_EXT = .txt
 412                               MSG_COMPILE_EXT = .res
 413                           
 414                               ifeq ($(OS),linux)
 415                                   CNV_ROOT_CMD = $(BIN_DIR)/cnv2rootbundle
 416                               else
 417                                   CNV_ROOT_CMD = cnv2rootbundle
 418                               endif
 419                           
 420 kumpf           1.169         # The library path option is needed on all link commands with some ICU
 421                               # builds, because internal ICU library dependencies are resolved
 422                               # dynamically.
 423 kumpf           1.168         ifdef ICU_INSTALL
 424                                   ifeq ($(OS),zos)
 425                                       # On z/OS, the -L option must appear before the -o option and
 426                                       # the object (.o) and sidedeck (.x) files in the link command.
 427                                       FLAGS += -L$(ICU_INSTALL)/lib
 428                                       PR_FLAGS += -L$(ICU_INSTALL)/lib
 429 kumpf           1.169             else
 430                                       EXTRA_LIBRARIES += -L$(ICU_INSTALL)/lib
 431                                   endif
 432                               endif
 433                           
 434                               # The ICU include path and library dependencies are restricted to
 435                               # where they are specifically needed.
 436                               ifeq ($(HAS_ICU_DEPENDENCY),true)
 437                                   ifdef ICU_INSTALL
 438                                       SYS_INCLUDES += -I$(ICU_INSTALL)/include
 439                                   endif
 440                           
 441                                   ifeq ($(OS),windows)
 442 kumpf           1.168                 EXTRA_LIBRARIES += \
 443 kumpf           1.169                     $(ICU_INSTALL)/lib/icuuc.lib \
 444                                           $(ICU_INSTALL)/lib/icuin.lib \
 445                                           $(ICU_INSTALL)/lib/icudt.lib
 446 kumpf           1.168             else
 447 kumpf           1.169                 ifeq ($(OS),zos)
 448                                           EXTRA_LIBRARIES += \
 449 r.kieninger     1.176                         $(ICU_INSTALL)/lib/libicui18n$(DYNLIB_SUFFIX) \
 450                                               $(ICU_INSTALL)/lib/libicuuc$(DYNLIB_SUFFIX)
 451 kumpf           1.169                 else
 452                                           EXTRA_LIBRARIES += -licuuc -licui18n
 453                                           ifeq ($(OS),linux)
 454                                               EXTRA_LIBRARIES += -licudata
 455                                           endif
 456 kumpf           1.168                 endif
 457                                   endif
 458                               endif
 459 kumpf           1.166     endif
 460 jim.wunderlich  1.97      
 461                           ################################################################################
 462                           ##
 463                           ## PEGASUS_MAX_THREADS_PER_SVC_QUEUE
 464                           ##
 465                           ## Controls the maximum number of threads allowed per message service queue.
 466                           ##     It is allowed to range between 1 and MAX_THREADS_PER_SVC_QUEUE_LIMIT
 467 kumpf           1.103     ##     as set in pegasus/src/Pegasus/Common/MessageQueueService.cpp.  If the
 468                           ##     specified value is out of range, MAX_THREADS_PER_SVC_QUEUE_LIMIT is
 469                           ##     used.  The default value is MAX_THREADS_PER_SVC_QUEUE_DEFAULT, as
 470                           ##     defined in pegasus/src/Pegasus/Common/MessageQueueService.cpp.
 471 jim.wunderlich  1.98      ##
 472                           ##	Label					Current value
 473                           ##	--------------------------------------  -------------
 474                           ##      MAX_THREADS_PER_SVC_QUEUE_LIMIT	        5000
 475                           ##      MAX_THREADS_PER_SVC_QUEUE_DEFAULT       5
 476 jim.wunderlich  1.97      ##
 477                           ##
 478                           
 479                           ifdef PEGASUS_MAX_THREADS_PER_SVC_QUEUE
 480                             DEFINES += -DMAX_THREADS_PER_SVC_QUEUE=$(PEGASUS_MAX_THREADS_PER_SVC_QUEUE)
 481                           endif
 482                           
 483 kumpf           1.87      # Allow PEGASUS_ASSERT statements to be disabled.
 484                           ifdef PEGASUS_NOASSERTS
 485 karl            1.195.2.3     DEFINES += -DNDEBUG -DPEGASUS_NOASSERTS
 486 kumpf           1.87      endif
 487                           
 488 mday            1.40      # do not compile trace code. sometimes it causes problems debugging
 489                           ifdef PEGASUS_REMOVE_TRACE
 490 david.dillard   1.65          DEFINES += -DPEGASUS_REMOVE_TRACE
 491 mday            1.40      endif
 492                           
 493 s.kodali        1.193     
 494                           ifdef PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT
 495                              PLATFORM_FILE_32 = $(ROOT)/mak/platform_$(PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT).mak
 496                              ifeq ($(wildcard $(PLATFORM_FILE_32)), )
 497                                 $(error  PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT  environment variable must be set to one of\
 498                                   the following:$(VALID_PLATFORMS))
 499                              endif
 500                                DEFINES += -DPEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT
 501                              ifdef PEGASUS_PROVIDER_MANAGER_32BIT_LIB_DIR
 502                                  DEFINES += -DPEGASUS_PROVIDER_MANAGER_32BIT_LIB_DIR=\"$(PEGASUS_PROVIDER_MANAGER_32BIT_LIB_DIR)\"
 503                              endif
 504                           endif
 505                             
 506 marek           1.167     # PEP 315
 507                           # Control whether compile with or without method entertexit trace code.
 508                           # A value other than 'true' or 'false' will cause a make error.
 509                           ifdef PEGASUS_REMOVE_METHODTRACE
 510                             ifeq ($(PEGASUS_REMOVE_METHODTRACE),true)
 511                               DEFINES += -DPEGASUS_REMOVE_METHODTRACE
 512                             else
 513                               ifneq ($(PEGASUS_REMOVE_METHODTRACE),false)
 514                                 $(error PEGASUS_REMOVE_METHODTRACE ($(PEGASUS_REMOVE_METHODTRACE)) invalid, must be true or false)
 515                               endif
 516                             endif
 517                           endif
 518                           
 519 kumpf           1.173     # Control whether the class definitions in the repository contain elements
 520                           # propagated from superclass definitions.
 521                           
 522                           ifndef PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES
 523                               PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES = false
 524                           endif
 525                           
 526                           ifeq ($(PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES),true)
 527                               DEFINES += -DPEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES
 528                           else
 529                               ifneq ($(PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES),false)
 530                                   $(error PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES ($(PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES)) invalid, must be true or false)
 531                               endif
 532                           endif
 533                           
 534 kumpf           1.177     # SQLite repository support
 535                           
 536                           ifndef PEGASUS_USE_SQLITE_REPOSITORY
 537                               PEGASUS_USE_SQLITE_REPOSITORY = false
 538                           endif
 539                           
 540                           ifeq ($(PEGASUS_USE_SQLITE_REPOSITORY),true)
 541                               ifeq ($(PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES),true)
 542                                   $(error PEGASUS_REPOSITORY_STORE_COMPLETE_CLASSES may not be set to true when PEGASUS_USE_SQLITE_REPOSITORY is true)
 543                               endif
 544                               DEFINES += -DPEGASUS_USE_SQLITE_REPOSITORY
 545                           else
 546                               ifneq ($(PEGASUS_USE_SQLITE_REPOSITORY),false)
 547                                   $(error PEGASUS_USE_SQLITE_REPOSITORY ($(PEGASUS_USE_SQLITE_REPOSITORY)) invalid, must be true or false)
 548                               endif
 549                           endif
 550                           
 551 chuck           1.47      # PEP 161
 552 kumpf           1.177     # Control whether utf-8 filenames are supported by the repository.
 553                           # Note: These options only apply to the file-based repository, not SQLite.
 554 chuck           1.47      ifdef PEGASUS_SUPPORT_UTF8_FILENAME
 555 david.dillard   1.65          DEFINES += -DPEGASUS_SUPPORT_UTF8_FILENAME
 556 chuck           1.47      
 557 david.dillard   1.65          # Control whether utf-8 filenames in the repository are escaped
 558                               ifdef PEGASUS_REPOSITORY_ESCAPE_UTF8
 559                                   DEFINES += -DPEGASUS_REPOSITORY_ESCAPE_UTF8
 560                               endif
 561 chuck           1.47      endif
 562                           
 563 kumpf           1.49      #
 564                           # PEP 142
 565                           # The following flag need to be set to enable
 566                           # user group authorization functionality.
 567                           #
 568                           ifdef PEGASUS_ENABLE_USERGROUP_AUTHORIZATION
 569 david.dillard   1.65          DEFINES += -DPEGASUS_ENABLE_USERGROUP_AUTHORIZATION
 570 kumpf           1.49      endif
 571                           
 572 karl            1.159     ############################################################################
 573                           #
 574                           # PEGASUS_ENABLE_CQL and PEGASUS_DISABLE_CQL
 575                           # Set to enable CQL processor in indication subscriptions and query execution
 576                           # PEGASUS_DISABLE_CQL (PEP 193) has been depracated. New use model is:
 577                           #
 578                           # Use PEGASUS_ENABLE_CQL=true  to enable  compilation of CQL functions.
 579 chuck           1.67      #
 580 karl            1.159     # Use PEGASUS_ENABLE_CQL=false to disable compilation of CQL functions.
 581 chuck           1.67      #
 582 karl            1.159     # Default is PEGASUS_ENABLE_CQL=true if not defined external to config.mak
 583                           #
 584                           
 585 chuck           1.67      ifdef PEGASUS_DISABLE_CQL
 586 carson.hovey    1.160         $(error PEGASUS_DISABLE_CQL has been deprecated. Please use PEGASUS_ENABLE_CQL=[true/false])
 587 karl            1.159     endif
 588                           
 589                           ifndef PEGASUS_ENABLE_CQL
 590 kumpf           1.183         # Default is true. CQL is enabled normally on all platforms unless specifically defined
 591 karl            1.159         PEGASUS_ENABLE_CQL=true
 592                           endif
 593                           
 594                           ifeq ($(PEGASUS_ENABLE_CQL),true)
 595                               DEFINES += -DPEGASUS_ENABLE_CQL
 596                           else
 597                               ifneq ($(PEGASUS_ENABLE_CQL),false)
 598                                   $(error PEGASUS_ENABLE_CQL ($(PEGASUS_ENABLE_CQL)) invalid, must be true or false)
 599                               endif
 600 chuck           1.67      endif
 601                           
 602 karl            1.159     ############################################################################
 603 kumpf           1.68      #
 604 kumpf           1.183     # PEGASUS_OVERRIDE_PRODUCT_ID
 605 kumpf           1.68      # PEP 186
 606                           # Allow override of product name/version/status.  A file
 607                           # pegasus/src/Pegasus/Common/ProductVersion.h must exist when this
 608                           # flag is defined.
 609                           #
 610                           ifdef PEGASUS_OVERRIDE_PRODUCT_ID
 611                               DEFINES += -DPEGASUS_OVERRIDE_PRODUCT_ID
 612                           endif
 613                           
 614 kumpf           1.71      #
 615 kumpf           1.106     # PEP 72
 616                           # Allow Out-of-Process Providers to be disabled by default
 617                           #
 618 jim.wunderlich  1.113     ifdef PEGASUS_DEFAULT_ENABLE_OOP
 619                             ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
 620                               DEFINES += -DPEGASUS_DEFAULT_ENABLE_OOP
 621 jim.wunderlich  1.111       else
 622 jim.wunderlich  1.113         ifneq ($(PEGASUS_DEFAULT_ENABLE_OOP),false)
 623                                 $(error PEGASUS_DEFAULT_ENABLE_OOP ($(PEGASUS_DEFAULT_ENABLE_OOP)) invalid, must be true or false)
 624 kumpf           1.140         endif
 625 jim.wunderlich  1.111       endif
 626 kumpf           1.106     endif
 627                           
 628                           #
 629 mateus.baur     1.130     # Allow to define the default value for the Provider User Context
 630                           # property as REQUESTOR.
 631                           # If is set and true use REQUESTOR
 632                           # If is not set or false use PRIVILEGED
 633                           #
 634                           ifdef PEGASUS_DEFAULT_USERCTXT_REQUESTOR
 635                             ifeq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),true)
 636                               DEFINES += -DPEGASUS_DEFAULT_USERCTXT_REQUESTOR
 637                             else
 638                               ifneq ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR),false)
 639                                 $(error PEGASUS_DEFAULT_USERCTXT_REQUESTOR ($(PEGASUS_DEFAULT_USERCTXT_REQUESTOR)) invalid, must be true or false)
 640 kumpf           1.140         endif
 641 mateus.baur     1.130       endif
 642                           endif
 643                           
 644                           #
 645 kumpf           1.71      # PEP 197
 646                           # Allow the Provider User Context feature to be disabled.
 647                           #
 648 kumpf           1.74      ifdef PEGASUS_DISABLE_PROV_USERCTXT
 649 kumpf           1.71          DEFINES += -DPEGASUS_DISABLE_PROV_USERCTXT
 650 kumpf           1.74      endif
 651 kumpf           1.71      
 652 h.sterling      1.89      # Bug 2147
 653                           # Allow local domain socket usage to be disabled.
 654                           ifdef PEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
 655                               DEFINES += -DPEGASUS_DISABLE_LOCAL_DOMAIN_SOCKET
 656                           endif
 657                           
 658 chip            1.76      # PEP 211
 659                           # Controls object normalization support.
 660                           ifdef PEGASUS_ENABLE_OBJECT_NORMALIZATION
 661                               DEFINES += -DPEGASUS_ENABLE_OBJECT_NORMALIZATION
 662                           endif
 663                           
 664 kumpf           1.80      # Allow ExecQuery functionality to be enabled
 665                           ifndef PEGASUS_ENABLE_EXECQUERY
 666                               DEFINES += -DPEGASUS_DISABLE_EXECQUERY
 667                           endif
 668                           
 669 yi.zhou         1.85      # Allow System Log Handler to be enabled
 670                           ifdef PEGASUS_ENABLE_SYSTEM_LOG_HANDLER
 671                             DEFINES += -DPEGASUS_ENABLE_SYSTEM_LOG_HANDLER
 672                           endif
 673                           
 674                           # Allow Email Handler to be enabled
 675                           ifdef PEGASUS_ENABLE_EMAIL_HANDLER
 676                             DEFINES += -DPEGASUS_ENABLE_EMAIL_HANDLER
 677                           endif
 678 kumpf           1.49      
 679 h.sterling      1.109     # Allow qualifiers to be disabled for instance operations
 680                           ifdef PEGASUS_DISABLE_INSTANCE_QUALIFIERS
 681                             DEFINES += -DPEGASUS_DISABLE_INSTANCE_QUALIFIERS
 682                           endif
 683                           
 684 yi.zhou         1.108     # Controls snmp indication handler to use NET-SNMP to deliver trap
 685                           ifdef PEGASUS_USE_NET_SNMP
 686 sahana.prabhakar 1.194         DEFINES += -DPEGASUS_USE_NET_SNMP
 687                            endif
 688                            
 689                            # Controls snmp indication handler to use NET-SNMP V3 features. 
 690                            ifndef PEGASUS_ENABLE_NET_SNMPV3
 691                                ifdef PEGASUS_USE_NET_SNMP
 692                                    PEGASUS_ENABLE_NET_SNMPV3=true
 693                                else
 694                                    PEGASUS_ENABLE_NET_SNMPV3=false
 695                                endif
 696                            endif
 697                            
 698                            ifeq ($(PEGASUS_ENABLE_NET_SNMPV3),true)
 699                                ifndef PEGASUS_USE_NET_SNMP
 700                                    $(error PEGASUS_USE_NET_SNMP should be set when PEGASUS_ENABLE_NET_SNMPV3 is true)
 701                                endif
 702                                DEFINES += -DPEGASUS_ENABLE_NET_SNMPV3
 703                            else
 704                                ifneq ($(PEGASUS_ENABLE_NET_SNMPV3),false)
 705                                    $(error PEGASUS_ENABLE_NET_SNMPV3 ($(PEGASUS_ENABLE_NET_SNMPV3)) invalid, must be true or false)
 706                                endif
 707 yi.zhou          1.108     endif
 708                            
 709 denise.eckstein  1.120     ifdef PEGASUS_HAS_SSL
 710 kumpf            1.183         DEFINES += -DPEGASUS_HAS_SSL
 711 sushma.fernandes 1.152     
 712                                # Enable SSL Random file by default.
 713                                ifndef PEGASUS_USE_SSL_RANDOMFILE
 714                                    PEGASUS_USE_SSL_RANDOMFILE = true
 715                                endif
 716                            
 717                                # Allow SSL Random file functionality to be optionally disabled.
 718                                ifdef PEGASUS_USE_SSL_RANDOMFILE
 719                                    ifeq ($(PEGASUS_USE_SSL_RANDOMFILE), true)
 720                                        DEFINES += -DPEGASUS_SSL_RANDOMFILE
 721                                    else
 722                                        ifneq ($(PEGASUS_USE_SSL_RANDOMFILE), false)
 723                                            $(error PEGASUS_USE_SSL_RANDOMFILE\
 724                                                 ($(PEGASUS_USE_SSL_RANDOMFILE)) invalid, \
 725                                                  must be true or false)
 726                                        endif
 727                                    endif
 728                                endif
 729 kumpf            1.145     
 730                                ifndef OPENSSL_COMMAND
 731 denise.eckstein  1.147             ifdef OPENSSL_BIN
 732                                        OPENSSL_COMMAND = $(OPENSSL_BIN)/openssl
 733                                    else
 734                                        OPENSSL_COMMAND = openssl
 735                                    endif
 736 kumpf            1.145         endif
 737                                ifndef OPENSSL_SET_SERIAL_SUPPORTED
 738                                    ifneq (, $(findstring 0.9.6, $(shell $(OPENSSL_COMMAND) version)))
 739                                        OPENSSL_SET_SERIAL_SUPPORTED = false
 740                                    else
 741                                        OPENSSL_SET_SERIAL_SUPPORTED = true
 742                                    endif
 743 denise.eckstein  1.120         endif
 744 sushma.fernandes 1.123     
 745 kumpf            1.145         # Enable CRL verification
 746                                ifndef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
 747                                    PEGASUS_ENABLE_SSL_CRL_VERIFICATION = true
 748                                endif
 749 sushma.fernandes 1.123     
 750 kumpf            1.145         # Check for Enable SSL CRL verification
 751                                ifdef PEGASUS_ENABLE_SSL_CRL_VERIFICATION
 752                                    ifeq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), true)
 753                                        DEFINES += -DPEGASUS_ENABLE_SSL_CRL_VERIFICATION
 754                                    else
 755                                        ifneq ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION), false)
 756                                            $(error PEGASUS_ENABLE_SSL_CRL_VERIFICATION\
 757                                                 ($(PEGASUS_ENABLE_SSL_CRL_VERIFICATION)) invalid, \
 758                                                  must be true or false)
 759                                        endif
 760 sushma.fernandes 1.123             endif
 761                                endif
 762                            endif
 763 denise.eckstein  1.120     
 764 jim.wunderlich   1.101     #
 765 yi.zhou          1.134     # PEP 258
 766 kumpf            1.153     # Allow Audit Logger to be disabled.  It is enabled by default.
 767 yi.zhou          1.134     #
 768 kumpf            1.153     
 769                            ifndef PEGASUS_ENABLE_AUDIT_LOGGER
 770                                PEGASUS_ENABLE_AUDIT_LOGGER = true
 771                            endif
 772                            
 773                            ifdef PEGASUS_ENABLE_AUDIT_LOGGER
 774                                ifeq ($(PEGASUS_ENABLE_AUDIT_LOGGER),true)
 775                                    DEFINES += -DPEGASUS_ENABLE_AUDIT_LOGGER
 776                                else
 777                                    ifneq ($(PEGASUS_ENABLE_AUDIT_LOGGER),false)
 778                                        $(error PEGASUS_ENABLE_AUDIT_LOGGER \
 779                                          ($(PEGASUS_ENABLE_AUDIT_LOGGER)) invalid, must be true or false)
 780                                    endif
 781                                endif
 782                            endif
 783                            
 784                            # Check for use of deprecated variable
 785 yi.zhou          1.134     ifdef PEGASUS_DISABLE_AUDIT_LOGGER
 786 kumpf            1.153         $(error The PEGASUS_DISABLE_AUDIT_LOGGER variable is deprecated. \
 787                                    Use PEGASUS_ENABLE_AUDIT_LOGGER=false instead)
 788 yi.zhou          1.134     endif
 789                            
 790 dave.sudlik      1.142     
 791                            #
 792                            # PEP 291
 793                            # Enable IPv6 support
 794                            #
 795 venkat.puvvada   1.149     
 796 dave.sudlik      1.142     ifndef PEGASUS_ENABLE_IPV6
 797                                PEGASUS_ENABLE_IPV6 = true
 798                            endif
 799                            
 800                            # Check for Enable IPv6 support
 801                            ifdef PEGASUS_ENABLE_IPV6
 802                              ifeq ($(PEGASUS_ENABLE_IPV6),true)
 803                                DEFINES += -DPEGASUS_ENABLE_IPV6
 804                              else
 805                                ifneq ($(PEGASUS_ENABLE_IPV6),false)
 806                                  $(error PEGASUS_ENABLE_IPV6 ($(PEGASUS_ENABLE_IPV6)) \
 807                                   invalid, must be true or false)
 808                                endif
 809                              endif
 810                            endif
 811                            
 812 venkat.puvvada   1.149     # Verify Test IPv6 support
 813                            # If PEGASUS_ENABLE_IPV6 is defined and PEGASUS_TEST_IPV6 is not defined, we set
 814                            # PEGASUS_TEST_IPV6 to the same value as PEGASUS_ENABLE_IPV6.
 815                            # You can explicitly set PEGASUS_TEST_IPV6 to false if you don't want to run the
 816                            # IPv6 tests (for example, on an IPv4 system that is running an IPv6-enabled
 817                            # version of Pegasus).
 818                            #
 819                            ifdef PEGASUS_TEST_IPV6
 820                              ifneq ($(PEGASUS_TEST_IPV6),true)
 821                                ifneq ($(PEGASUS_TEST_IPV6),false)
 822                                  $(error PEGASUS_TEST_IPV6 ($(PEGASUS_TEST_IPV6)) \
 823                                   invalid, must be true or false)
 824                                endif
 825                              endif
 826 kumpf            1.183     else
 827 venkat.puvvada   1.150       PEGASUS_TEST_IPV6 = $(PEGASUS_ENABLE_IPV6)
 828 venkat.puvvada   1.149     endif
 829                            
 830 yi.zhou          1.163     #
 831                            # PEP 322
 832                            # Allow tracking generated indications data to be disabled.  It is enabled
 833                            # by default.
 834                            #
 835                            
 836                            ifndef PEGASUS_ENABLE_INDICATION_COUNT
 837                                PEGASUS_ENABLE_INDICATION_COUNT = true
 838                            endif
 839                            
 840                            ifdef PEGASUS_ENABLE_INDICATION_COUNT
 841                                ifeq ($(PEGASUS_ENABLE_INDICATION_COUNT),true)
 842                                    DEFINES += -DPEGASUS_ENABLE_INDICATION_COUNT
 843                                else
 844                                    ifneq ($(PEGASUS_ENABLE_INDICATION_COUNT),false)
 845                                        $(error PEGASUS_ENABLE_INDICATION_COUNT \
 846                                          ($(PEGASUS_ENABLE_INDICATION_COUNT)) invalid, must be true or false)
 847                                    endif
 848                                endif
 849                            endif
 850                            
 851 karl             1.151     ############################################################################
 852 yi.zhou          1.134     #
 853 jim.wunderlich   1.101     # PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP
 854                            #
 855 karl             1.172     # PEGASUS_DISABLE_SLP has been deprecated. New use model is:
 856 jim.wunderlich   1.101     #
 857 jim.wunderlich   1.112     # Use PEGASUS_ENABLE_SLP=true  to enable  compilation of SLP functions.
 858                            #
 859 kumpf            1.140     # Use PEGASUS_ENABLE_SLP=false to disable compilation of SLP functions.
 860 jim.wunderlich   1.101     #
 861                            # NOTE. Effective with Bug # 2633 some platforms enable SLP.
 862 karl             1.75      # To see which platforms look for platform make files that set
 863 kumpf            1.140     # the variable PEGASUS_ENABLE_SLP.
 864 jim.wunderlich   1.101     #
 865                            #
 866 jim.wunderlich   1.112     
 867 karl             1.39      ifdef PEGASUS_ENABLE_SLP
 868 jim.wunderlich   1.101       ifdef PEGASUS_DISABLE_SLP
 869                                $(error Conflicting defines PEGASUS_ENABLE_SLP and PEGASUS_DISABLE_SLP both set)
 870                              endif
 871 jim.wunderlich   1.112     endif
 872                            
 873                            ifdef PEGASUS_DISABLE_SLP
 874                                $(error PEGASUS_DISABLE_SLP has been deprecated. Please use PEGASUS_ENABLE_SLP=[true/false] )
 875                            
 876                            PEGASUS_ENABLE_SLP=false
 877                            
 878                            endif
 879                            
 880                            ifdef PEGASUS_ENABLE_SLP
 881                              ifeq ($(PEGASUS_ENABLE_SLP),true)
 882 david.dillard    1.65          DEFINES += -DPEGASUS_ENABLE_SLP
 883 jim.wunderlich   1.112       else
 884                                ifneq ($(PEGASUS_ENABLE_SLP),false)
 885                                  $(error PEGASUS_ENABLE_SLP ($(PEGASUS_ENABLE_SLP)) invalid, must be true or false)
 886 kumpf            1.140         endif
 887 jim.wunderlich   1.112       endif
 888 karl             1.39      endif
 889 karl             1.36      
 890 jim.wunderlich   1.121     
 891                            ############################################################################
 892                            #
 893                            # PEGASUS_USE_OPENSLP
 894 karl             1.172     
 895                            ## NOTE: This variable has been deprecated and superceeded by the use of
 896 kumpf            1.183     ## PEGASUS_USE_EXTERNAL_SLP. The use of this variable may be
 897 karl             1.172     ## removed from Pegasus in future releases. It is converted to the
 898                            ## PEGASUS_USE_EXTERNAL_SLP variable in the following function.
 899                            ## Do not allow PEGASUS_USE_EXTERNAL_SLP if PEGASUS_ENABLE_SLP not set and
 900                            ## insure that PEGASUS_USE_OPENSLP and PEGASUS_USE_EXTERNAL_SLP are not used
 901                            ## simultaneously
 902 jim.wunderlich   1.121     #
 903                            # Environment variable to set openslp as SLP environment to use
 904                            # for SLP Directory and User Agents.
 905                            #
 906                            # Allows enabling use of openslp interfaces for slp instead of the
 907                            # internal pegasus slp agent.  Note that this does not disable the
 908                            # compilation of the internal agent code, etc.  However, it assumes
 909                            # openslp is installed on the platform and changes the interfaces
 910 kumpf            1.183     # to match this.
 911 jim.wunderlich   1.121     #
 912                            # Use this variable in conjunction with PEGASUS_OPENSLP_HOME
 913 kumpf            1.140     # to enable OpenSlp as the slp implementation.
 914 jim.wunderlich   1.121     #
 915                            # NOTE that it has no affect if the PEGASUS_ENABLE_SLP etc. flags are not set.
 916                            #
 917                            
 918                            ifdef PEGASUS_USE_OPENSLP
 919 karl             1.172       ifdef PEGASUS_USE_EXTERNAL_SLP
 920                                  $(error Both PEGASUS_USE_OPENSLP and PEGASUS_USE_EXTERNAL_SLP defined. \
 921                                      Please use PEGASUS_USE_EXTERNAL_SLP)
 922                              endif
 923                              ## if PEGASUS_USE_OPENSLP used, convert to EXTERNAL_SLP variables
 924                              ## as defined for openslp
 925 s.kodali         1.171       ifeq ($(PEGASUS_USE_OPENSLP),true)
 926                                ifeq ($(PEGASUS_ENABLE_SLP),true)
 927 s.kodali         1.190           export PEGASUS_USE_EXTERNAL_SLP=openslp
 928 karl             1.172           PEGASUS_USE_OPENSLP=
 929 jim.wunderlich   1.121         else
 930 karl             1.172           $(error PEGASUS_USE_OPENSLP defined but PEGASUS_ENABLE_SLP is not true. \
 931                                    Please correct this inconsistency)
 932 jim.wunderlich   1.121         endif
 933 s.kodali         1.171       else
 934                                ifneq ($(PEGASUS_USE_OPENSLP), false)
 935                                  $(error PEGASUS_USE_OPENSLP \
 936                                        ($(PEGASUS_USE_OPENSLP)) \
 937                                        invalid, must be true or false)
 938                                endif
 939                              endif
 940 jim.wunderlich   1.121     endif
 941                            
 942 karl             1.172     #########################################################################
 943 dave.sudlik      1.135     # PEP 267
 944                            # SLP reregistration support.
 945                            # PEGASUS_SLP_REG_TIMEOUT is defined as the SLP registration timeout
 946                            # interval, in minutes.
 947                            ifdef PEGASUS_SLP_REG_TIMEOUT
 948                                ifeq ($(PEGASUS_ENABLE_SLP),true)
 949 karl             1.172             DEFINES += -DPEGASUS_SLP_REG_TIMEOUT=$(PEGASUS_SLP_REG_TIMEOUT)
 950 dave.sudlik      1.135          else
 951 karl             1.172             $(error PEGASUS_SLP_REG_TIMEOUT defined but PEGASUS_ENABLE_SLP is not true. \
 952                                        Please correct this inconsistency)
 953 dave.sudlik      1.135          endif
 954                             endif
 955 jim.wunderlich   1.121     
 956                            ############################################################################
 957                            #
 958 karl             1.172     # PEGASUS_USE_EXTERNAL_SLP
 959                            
 960                            # Environment variable to set an external slp implementation as the SLP
 961                            # environment to use for SLP Directory Agents.
 962                            
 963                            # This allows setting any one of several possible external SLP SAs as the
 964                            # interface for the SLP provider to communicate with in managing SLP templates
 965                            # in place of the internal SLP agent provided with Pegasus.
 966                            # Note: This does not disable the compilation of the internal agent code since
 967                            # this is used for the SLP UA defined with the pegasus client.
 968                            # Pegasus assumes that the external SLP defined is installed on the platform
 969                            # and running when pegasus is started. It changes the interfaces from the SLP
 970                            # provider to match the defined SLP implementation.
 971                            
 972                            # This environment variable superceedes the use of PEGASUS_USE_OPENSLP since
 973                            # openslp is considered one of the valid external SLP environments usable by
 974                            # pegasus.
 975                            
 976                            # The variable uses the value component to define a name for the external SLP
 977                            # environment that must match one of the names defined below.
 978                            
 979 karl             1.172     # This variable is not allowed if the PEGASUS_ENABLE_SLP flag is not set.
 980                            
 981                            # Allow only predefined string values for the variable corresponding
 982                            # to external slp types that pegasus knows.
 983                            # Valid types are openslp (1) and solarisslp (2)
 984                            EXTERNAL_SLP_TYPES = openslp solarisslp
 985                            
 986                            ifdef PEGASUS_USE_EXTERNAL_SLP
 987                              ifeq ($(PEGASUS_ENABLE_SLP),true)
 988                                ifeq ($(PEGASUS_USE_EXTERNAL_SLP),openslp)
 989                                  DEFINES += -DPEGASUS_USE_EXTERNAL_SLP_TYPE=1
 990                                else
 991                                  ifeq ($(PEGASUS_USE_EXTERNAL_SLP),solarisslp)
 992                                     DEFINES += -DPEGASUS_USE_EXTERNAL_SLP_TYPE=2
 993                                  else
 994                                    $(error PEGASUS_USE_EXTERNAL_SLP value ($(PEGASUS_USE_EXTERNAL_SLP)) \
 995                                      invalid. It must be one of valid SLP external types \
 996                                      ($(EXTERNAL_SLP_TYPES)) )
 997                                  endif
 998                                endif
 999                              endif
1000 karl             1.172     endif
1001                            
1002                            ############################################################################
1003                            #
1004 jim.wunderlich   1.121     # PEGASUS_OPENSLP_HOME
1005                            #
1006 karl             1.172     # PEGASUS_OPENSLP_HOME superceeded by PEGASUS_OPEN_EXTERNAL_SLP_HOME. If
1007                            # PEGASUS_OPENSLP_HOME is encountered it will create PEGASUS_OPEN_EXTERNAL_SLP_HOME
1008                            #
1009 jim.wunderlich   1.121     # Environment variable to set home location for OpenSLP include and library
1010 kumpf            1.140     # files if they are located somewhere other than /usr/include and /usr/lib.
1011 jim.wunderlich   1.121     #
1012                            # PEGASUS_USE_OPENSLP must also be defined for this environment variable
1013                            # to have any effect.
1014                            #
1015 kumpf            1.140     # This is the directory level within which both the include and lib
1016                            # directories holding the OpenSLP files will be found.
1017 jim.wunderlich   1.121     #
1018 kumpf            1.140     # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
1019 jim.wunderlich   1.121     #     then this environment variable should be set to /opt/OpenSLP.
1020                            #
1021                            
1022 karl             1.172     ifdef PEGASUS_OPENSLP_HOME
1023                              ifdef PEGASUS_OPEN_EXTERNAL_SLP_HOME
1024                                $(error Both PEGASUS_OPENSLP_HOME and PEGASUS_OPEN_EXTERNAL_SLP_HOME defined. \
1025                                  Please use PEGASUS_OPEN_EXTERNAL_SLP_HOME)
1026                              else
1027 s.kodali         1.190           export PEGASUS_EXTERNAL_SLP_HOME=$(PEGASUS_OPENSLP_HOME)
1028 karl             1.172        endif
1029                            endif
1030                            ############################################################################
1031                            #
1032                            # PEGASUS_EXTERNAL_SLP_HOME
1033                            #
1034                            # Environment variable to set home location for External SLP include and library
1035                            # files if they are located somewhere other than /usr/include and /usr/lib.
1036                            #
1037                            # This variable superceeds PEGASUS_OPENSLP_HOME to match the use of
1038                            # PEGASUS_USE_EXTERNAL_SLP variable.
1039                            #
1040                            # PEGASUS_USE_EXTERNAL_SLP must also be defined for this environment variable
1041                            # to have any effect.
1042                            #
1043                            # This is the directory level within which both the include and lib
1044                            # directories holding the OpenSLP files will be found.
1045                            #
1046                            # EG: If the are located in /opt/OpenSLP/include and /opt/OpenSLP/lib
1047                            #     then this environment variable should be set to /opt/OpenSLP.
1048                            #
1049 jim.wunderlich   1.121     
1050 karl             1.172     ############################################################################
1051 sushma.fernandes 1.114     #
1052 kumpf            1.140     # Enable this flag to allow the handshake to continue regardless of verification result
1053 sushma.fernandes 1.114     #
1054                            ifdef PEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
1055                              DEFINES += -DPEGASUS_OVERRIDE_SSL_CERT_VERIFICATION_RESULT
1056                            endif
1057                            
1058 karl             1.151     ############################################################################
1059                            #
1060                            # PEGASUS_ENABLE_INTEROP_PROVIDER
1061                            # Enables the interop provider AND the server profile.
1062                            # initially this was activated by setting either the perfinst or slp enable
1063                            # flags.  This allows activating this function without any either perfinst or
1064                            # slp enabled.  Note that if either of these are enabled, this funtion is also
1065                            # enabled
1066                            
1067                            ## if either slp or perfinst are enabled and this is false, flag error
1068                            ## This gets messy because should account for both postive and negative on
1069                            ## interop so we don't get multiples.
1070                            
1071                            ifdef PEGASUS_ENABLE_SLP
1072                                ifeq ($(PEGASUS_ENABLE_SLP),true)
1073                                    ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1074                                        PEGASUS_ENABLE_INTEROP_PROVIDER = true
1075                                    else
1076                                        ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1077                                            $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if SLP enabled)
1078                                        endif
1079 karl             1.151             endif
1080                                endif
1081                            endif
1082                            
1083                            ## if PERFINST enabled, set to force interop.
1084                            ifndef PEGASUS_DISABLE_PERFINST
1085                                ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1086                                    PEGASUS_ENABLE_INTEROP_PROVIDER = true
1087                                else
1088                                    ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1089                                        $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if PERFINST enabled)
1090                                    endif
1091                                endif
1092                            endif
1093                            
1094 venkat.puvvada   1.165     #
1095                            ## PEP 323, DMTF Indications Profile support, stage 1
1096                            #
1097                            ifdef PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT
1098                                ifeq ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT), true)
1099                                    ifndef PEGASUS_ENABLE_INTEROP_PROVIDER
1100                                        PEGASUS_ENABLE_INTEROP_PROVIDER = true
1101                                    else
1102                                        ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1103                                            $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true if DMTF Indications profile support is enabled)
1104                                        endif
1105                                    endif
1106 karl             1.195.2.1         DEFINES += -DPEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT -DPEGASUS_ENABLE_INDICATION_ORDERING
1107 venkat.puvvada   1.165         else
1108                                    ifneq ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT),false)
1109                                        $(error PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT ($(PEGASUS_ENABLE_DMTF_INDICATION_PROFILE_SUPPORT)) invalid, must be true or false)
1110                                    endif
1111                                endif
1112                            endif
1113 karl             1.151     
1114 venkat.puvvada   1.175     ifdef PEGASUS_ENABLE_INTEROP_PROVIDER
1115                                ifeq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),true)
1116                                    DEFINES += -DPEGASUS_ENABLE_INTEROP_PROVIDER
1117                                else
1118                                    ifneq ($(PEGASUS_ENABLE_INTEROP_PROVIDER),false)
1119                                        $(error PEGASUS_ENABLE_INTEROP_PROVIDER ($(PEGASUS_ENABLE_INTEROP_PROVIDER)) invalid, must be true or false)
1120                                    endif
1121                                endif
1122                            endif
1123                            
1124                            
1125 karl             1.151     ############################################################################
1126 karl             1.60      # set PEGASUS_DEBUG into the DEFINES if it exists.
1127                            # Note that this flag is the general separator between
1128                            # debug compiles and non-debug compiles and controls both
1129                            # the use of any debug options on compilers and linkers
1130                            # and general debug support that we want to be turned on in
1131 chip             1.76      # debug mode.
1132 karl             1.60      ifdef PEGASUS_DEBUG
1133 david.dillard    1.65          DEFINES += -DPEGASUS_DEBUG
1134 kumpf            1.88      
1135                                # Indications debugging options
1136                                ifdef PEGASUS_INDICATION_PERFINST
1137                                    DEFINES += -DPEGASUS_INDICATION_PERFINST
1138                                endif
1139                            
1140                                ifdef PEGASUS_INDICATION_HASHTRACE
1141                                    DEFINES += -DPEGASUS_INDICATION_HASHTRACE
1142                                endif
1143 kumpf            1.131     
1144 karl             1.60      endif
1145                            
1146 chuck            1.42      # compile in the experimental APIs
1147 david.dillard    1.65      DEFINES += -DPEGASUS_USE_EXPERIMENTAL_INTERFACES
1148 chuck            1.42      
1149 kumpf            1.93      # Ensure that the deprecated interfaces are defined in the Pegasus libraries.
1150                            # One may wish to disable these interfaces if binary compatibility with
1151                            # previous Pegasus releases is not required.
1152                            ifndef PEGASUS_DISABLE_DEPRECATED_INTERFACES
1153                                DEFINES += -DPEGASUS_USE_DEPRECATED_INTERFACES
1154                            endif
1155                            
1156 w.white          1.57      # Set compile flag to control compilation of CIMOM statistics
1157 karl             1.73      ifdef PEGASUS_DISABLE_PERFINST
1158 marek            1.136         DEFINES += -DPEGASUS_DISABLE_PERFINST
1159 w.white          1.57      endif
1160 kumpf            1.56      
1161 karl             1.96      # Set compile flag to control compilation of SNIA Extensions
1162                            ifdef PEGASUS_SNIA_EXTENSIONS
1163 marek            1.136         DEFINES += -DPEGASUS_SNIA_EXTENSIONS
1164 karl             1.96      endif
1165                            
1166 denise.eckstein  1.119     ifdef PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
1167                                ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), true)
1168 marek            1.136             DEFINES += -DPEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
1169 denise.eckstein  1.119         else
1170                                    ifneq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER), false)
1171                                        $(error PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER \
1172                                             ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER)) invalid, \
1173                                              must be true or false)
1174                                    endif
1175                                endif
1176                            endif
1177                            
1178 mark.hamzy       1.124     ifdef PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
1179                                ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), true)
1180 marek            1.136             DEFINES += -DPEGASUS_ENABLE_JMPI_PROVIDER_MANAGER
1181 s.kodali         1.186             ifndef PEGASUS_JAVA_CLASSPATH_DELIMITER
1182                                        PEGASUS_JAVA_CLASSPATH_DELIMITER = :
1183                                    endif
1184                            
1185                                    ifndef PEGASUS_JVM
1186                                        PEGASUS_JVM = sun
1187                                    endif
1188                                    ifeq ($(PEGASUS_JVM),gcj)
1189                                        PEGASUS_JAVA_COMPILER           = gcj -C
1190                                        PEGASUS_JAVA_JAR                = fastjar
1191                                        PEGASUS_JAVA_INTERPRETER        = gij
1192                                    else
1193                                        PEGASUS_JAVA_COMPILER           = javac -target 1.4 -source 1.4
1194                                        PEGASUS_JAVA_JAR                = jar
1195                                        PEGASUS_JAVA_INTERPRETER        = java
1196                                    endif
1197                            
1198 mark.hamzy       1.124         else
1199                                    ifneq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER), false)
1200                                        $(error PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER \
1201                                             ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER)) invalid, \
1202                                              must be true or false)
1203                                    endif
1204                                endif
1205                            endif
1206                            
1207 kumpf            1.95      # Allow remote CMPI functionality to be enabled
1208                            ifdef PEGASUS_ENABLE_REMOTE_CMPI
1209 marek            1.136         DEFINES += -DPEGASUS_ENABLE_REMOTE_CMPI
1210 kumpf            1.95      endif
1211                            
1212 chip             1.76      
1213 karl             1.17      ############################################################
1214                            #
1215                            # Set up other Make Variables that depend on platform config files
1216                            #
1217                            ############################################################
1218                            
1219                            # This is temporary until we end up with a better place to
1220                            # put this variable
1221                            # Makefiles can do directory remove with
1222                            # $(RMREPOSITORY) repositoryname
1223                            #
1224                            RMREPOSITORY = $(RMDIRHIER)
1225                            
1226 s.kodali         1.191     ifndef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
1227                               PEGASUS_USE_RELEASE_CONFIG_OPTIONS=false
1228                            endif
1229                            
1230                            ifeq ($(PEGASUS_USE_RELEASE_CONFIG_OPTIONS),true)
1231                               DEFINES += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
1232                            else
1233                               ifneq ($(PEGASUS_USE_RELEASE_CONFIG_OPTIONS),false)
1234                                  $(error PEGASUS_USE_RELEASE_CONFIG_OPTIONS \
1235                                      ($(PEGASUS_USE_RELEASE_CONFIG_OPTIONS)) invalid, must be true or false)
1236                               endif
1237 w.otsuka         1.62      endif
1238                            
1239                            ifdef PEGASUS_USE_RELEASE_DIRS
1240 marek            1.136         DEFINES += -DPEGASUS_USE_RELEASE_DIRS
1241 w.otsuka         1.62      endif
1242 mday             1.27      
1243 denise.eckstein  1.110     ifdef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
1244 marek            1.136         DEFINES += -DPEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
1245 denise.eckstein  1.110     endif
1246                            
1247 kumpf            1.64      # Unless otherwise specified, Pegasus libraries go in $(PEGASUS_HOME)/lib
1248                            ifndef PEGASUS_DEST_LIB_DIR
1249 david.dillard    1.65          PEGASUS_DEST_LIB_DIR = lib
1250 kumpf            1.64      endif
1251 mday             1.28      
1252 gs.keenan        1.77      ifeq ($(OS),VMS)
1253                             DEFINES += -DPEGASUS_DEST_LIB_DIR="""$(PEGASUS_DEST_LIB_DIR)"""
1254                            else
1255                             DEFINES += -DPEGASUS_DEST_LIB_DIR=\"$(PEGASUS_DEST_LIB_DIR)\"
1256                            endif
1257                            
1258 w.otsuka         1.79      ################################################################################
1259                            ##
1260 mike             1.105     ## PEGASUS_CLASS_CACHE_SIZE
1261                            ##
1262                            ##     This environment variable gives the size of the class cache used by
1263                            ##     the CIM repository. When it is undefined, the size defaults to something
1264                            ##     relatively small (see src/Pegasus/Repository/CIMRepository.cpp). If
1265                            ##     defined, it gives the size of the class cache. If it is 0 , the class
1266                            ##     cache is not defined compiled in at all.
1267                            ##
1268                            ################################################################################
1269                            
1270                            ifdef PEGASUS_CLASS_CACHE_SIZE
1271                            DEFINES += -DPEGASUS_CLASS_CACHE_SIZE=$(PEGASUS_CLASS_CACHE_SIZE)
1272                            endif
1273                            
1274                            ################################################################################
1275                            ##
1276 w.otsuka         1.79      ## Additional build flags passed in through environment variables.
1277                            ## These flags are added to the compile/link commands.
1278                            ##
1279                            ################################################################################
1280                            
1281                            ifdef PEGASUS_EXTRA_CXX_FLAGS
1282                                EXTRA_CXX_FLAGS = $(PEGASUS_EXTRA_CXX_FLAGS)
1283                            endif
1284                            
1285                            ifdef PEGASUS_EXTRA_C_FLAGS
1286                                EXTRA_C_FLAGS = $(PEGASUS_EXTRA_C_FLAGS)
1287                            endif
1288                            
1289                            ifdef PEGASUS_EXTRA_LINK_FLAGS
1290                                EXTRA_LINK_FLAGS = $(PEGASUS_EXTRA_LINK_FLAGS)
1291                            endif
1292                            
1293 mike             1.126     ##==============================================================================
1294                            ##
1295                            ## By definining PEGASUS_USE_STATIC_LIBRARIES in the environment and STATIC
1296                            ## in the Makefile, a static library is produced rather than a shared one.
1297                            ## PEGASUS_USE_STATIC_LIBRARIES should be "true" or "false".
1298                            ##
1299                            ##==============================================================================
1300                            
1301                            ifdef PEGASUS_USE_STATIC_LIBRARIES
1302 kumpf            1.185         ifeq ($(OS_TYPE),windows)
1303                                    $(error PEGASUS_USE_STATIC_LIBRARIES is not support on windows.)
1304                                else
1305                                    ifneq ($(PEGASUS_USE_STATIC_LIBRARIES),true)
1306                                        $(error PEGASUS_USE_STATIC_LIBRARIES \
1307                                            ($(PEGASUS_USE_STATIC_LIBRARIES)) invalid, must be true.)
1308                                    endif
1309 kumpf            1.140         endif
1310                            endif
1311                            
1312                            ##==============================================================================
1313                            ##
1314                            ## PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1315                            ##
1316                            ##     Enables privilege separation support (uses the executor process to
1317                            ##     perform privileged operations).
1318                            ##
1319                            ##==============================================================================
1320                            
1321                            ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1322                              ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1323                                DEFINES += -DPEGASUS_ENABLE_PRIVILEGE_SEPARATION
1324                              else
1325                                ifneq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),false)
1326                                  $(error PEGASUS_ENABLE_PRIVILEGE_SEPARATION \
1327                                    ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION)) invalid, must be true or false)
1328                                endif
1329                              endif
1330 kumpf            1.140     
1331 kumpf            1.148       ## Defines the user context of the cimservermain process when privilege
1332 kumpf            1.140       ## separation is enabled.
1333 kumpf            1.148       PEGASUS_CIMSERVERMAIN_USER = cimsrvr
1334 kumpf            1.141       DEFINES += -DPEGASUS_CIMSERVERMAIN_USER=\"$(PEGASUS_CIMSERVERMAIN_USER)\"
1335 mike             1.126     endif
1336 mark.hamzy       1.127     
1337 kumpf            1.162     
1338                            ##==============================================================================
1339                            ##
1340                            ## PEGASUS_ENABLE_PROTOCOL_WSMAN
1341                            ##
1342                            ##     Enables the WS-Management protocol in the CIM Server.
1343                            ##
1344                            ##==============================================================================
1345                            
1346                            ifndef PEGASUS_ENABLE_PROTOCOL_WSMAN
1347                                PEGASUS_ENABLE_PROTOCOL_WSMAN = false
1348                            endif
1349                            
1350                            ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
1351                                DEFINES += -DPEGASUS_ENABLE_PROTOCOL_WSMAN
1352                            else
1353                                ifneq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),false)
1354                                    $(error PEGASUS_ENABLE_PROTOCOL_WSMAN ($(PEGASUS_ENABLE_PROTOCOL_WSMAN)) invalid, must be true or false)
1355                                endif
1356                            endif
1357                            
1358 kumpf            1.170     ##==============================================================================
1359                            ##
1360 karl             1.195.2.3 ## PEGASUS_PAM_SESSION_SECURITY
1361                            ##
1362                            ## This is a new method to handle authentication with PAM in case it is required
1363                            ## to keep the PAM session established by pam_start() open across an
1364                            ## entire CIM request.
1365                            ##
1366                            ## This feature contradicts PEGASUS_PAM_AUTHENTICATION and
1367                            ## PEGASUS_USE_PAM_STANDALONE_PROC
1368                            ## Because of the additional process this feature is not compatible with
1369                            ## Privilege Separation.
1370                            ##
1371                            ##==============================================================================
1372                            
1373                            ifeq ($(PEGASUS_PAM_SESSION_SECURITY),true)
1374                                ifdef PEGASUS_PAM_AUTHENTICATION
1375                                    $(error "PEGASUS_PAM_AUTHENTICATION must NOT be defined when PEGASUS_PAM_SESSION_SECURITY is defined")
1376                                endif
1377                                ifdef PEGASUS_USE_PAM_STANDALONE_PROC
1378                                    $(error "PEGASUS_USE_PAM_STANDALONE_PROC must NOT be defined when PEGASUS_PAM_SESSION_SECURITY is defined")
1379                                endif
1380                                ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION
1381 karl             1.195.2.3         $(error "PEGASUS_ENABLE_PRIVILEGE_SEPARATION must NOT be defined when PEGASUS_PAM_SESSION_SECURITY is defined")
1382                                endif
1383                                # Compile in the code required for PAM 
1384                                # and compile out the code that uses the password file.
1385                                DEFINES += -DPEGASUS_PAM_SESSION_SECURITY -DPEGASUS_NO_PASSWORDFILE
1386                                # Link with libpam only where it is needed.
1387                                ifeq ($(HAS_PAM_DEPENDENCY),true)
1388                                    SYS_LIBS += -lpam
1389                                endif
1390                            endif
1391                            
1392                            
1393                            ##==============================================================================
1394                            ##
1395 kumpf            1.170     ## PEGASUS_PAM_AUTHENTICATION
1396                            ##
1397                            ##==============================================================================
1398                            
1399                            ifdef PEGASUS_PAM_AUTHENTICATION
1400                                # Compile in the code required for PAM authentication
1401                                # and compile out the code that uses the password file.
1402                                DEFINES += -DPEGASUS_PAM_AUTHENTICATION -DPEGASUS_NO_PASSWORDFILE
1403                            
1404                                # Link with libpam only where it is needed.
1405                                ifeq ($(HAS_PAM_DEPENDENCY),true)
1406                                    SYS_LIBS += -lpam
1407                                endif
1408                            endif
1409 kumpf            1.162     
1410 kumpf            1.140     ##==============================================================================
1411                            ##
1412                            ## PEGASUS_USE_PAM_STANDALONE_PROC
1413                            ##
1414                            ##==============================================================================
1415                            
1416                            ifdef PEGASUS_USE_PAM_STANDALONE_PROC
1417 karl             1.195.2.2    ifndef PEGASUS_PAM_AUTHENTICATION
1418                                   $(error "PEGASUS_PAM_AUTHENTICATION must be defined when PEGASUS_USE_PAM_STANDALONE_PROC is defined")
1419                               endif
1420                               DEFINES += -DPEGASUS_USE_PAM_STANDALONE_PROC
1421 kumpf            1.140     endif
1422                            
1423                            ##==============================================================================
1424 mark.hamzy       1.127     
1425 dmitry.mikulin   1.155     # Disable client timeouts when we're doing a valgrind build
1426 kumpf            1.157     ifdef PEGASUS_TEST_VALGRIND_LOG_DIR
1427 dmitry.mikulin   1.156         DEFINES += -DPEGASUS_DISABLE_CLIENT_TIMEOUT -DPEGASUS_TEST_VALGRIND
1428 dmitry.mikulin   1.155     endif
1429                            
1430 s.kodali         1.161     ## ======================================================================
1431                            ##
1432                            ## PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1433 kumpf            1.183     ## This controls allowing the path specified in the Location property of
1434 s.kodali         1.161     ## PG_ProviderModule class.
1435                            ##
1436                            ##   Set to "true", It allows the absolute path specified in the Location property
1437                            ##   of PG_ProviderModule class. Otherwise it does not allow the absolute path.
1438                            ##   see bug 7289 for background information concerning this config variable.
1439                            ##
1440                            
1441                            ifndef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1442                                PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE=false
1443                            endif
1444                            
1445                            ifdef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1446                              ifeq ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE),true)
1447                                DEFINES += -DPEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
1448                              else
1449                                ifneq ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE),false)
1450                                  $(error PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE \
1451                                        ($(PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE)) \
1452                                        invalid, must be true or false)
1453                                endif
1454                              endif
1455 s.kodali         1.161     endif
1456                            
1457 mike             1.178     ##==============================================================================
1458                            ##
1459 mike             1.180     ## PEGASUS_ENABLE_PROTOCOL_BINARY
1460 mike             1.178     ##
1461 mike             1.180     ##     Enables the binary protocol between clients and cimserver. With provider
1462                            ##     agent, both requests and responses are binary. For "ordinary" clients,
1463                            ##     requests are XML and responses are binary. By default, this only affects
1464                            ##     the protocol used over local domain sockets.
1465 mike             1.178     ##
1466                            ##==============================================================================
1467                            
1468 mike             1.180     ifndef PEGASUS_ENABLE_PROTOCOL_BINARY
1469                              PEGASUS_ENABLE_PROTOCOL_BINARY=false
1470 mike             1.178     endif
1471                            
1472 mike             1.180     ifeq ($(PEGASUS_ENABLE_PROTOCOL_BINARY),true)
1473                              DEFINES += -DPEGASUS_ENABLE_PROTOCOL_BINARY
1474 mike             1.178     else
1475 mike             1.180       ifneq ($(PEGASUS_ENABLE_PROTOCOL_BINARY),false)
1476                                $(error "PEGASUS_ENABLE_PROTOCOL_BINARY must be true or false")
1477 mike             1.178       endif
1478                            endif
1479 denise.eckstein  1.179     
1480                            ## ======================================================================
1481                            ##
1482                            ## PLATFORM_CORE_PATTERN
1483                            ## This variable describes the pattern used to search for core files.
1484                            ## If not defined, this variable will be set to core*.
1485                            ## Only wildcard characters supported by the make wildcard function
1486                            ## may be used.
1487                            
1488                            ifndef PLATFORM_CORE_PATTERN
1489                                PLATFORM_CORE_PATTERN = core*
1490                            endif
1491 s.kodali         1.188     
1492                            ifdef PEGASUS_FLAVOR
1493                              ifdef PEGASUS_USE_RELEASE_DIRS
1494                                ifndef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
1495                                  $(error "PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS must be defined when both PEGASUS_FLAVOR and PEGASUS_USE_RELEASE_DIRS options are used")
1496                                endif
1497                              endif
1498                              ifneq ($(PEGASUS_FLAVOR), tog)
1499                                  DEFINES += -DPEGASUS_FLAVOR=\"$(PEGASUS_FLAVOR)\"
1500                              endif
1501                            endif
1502 s.kodali         1.192     
1503                            ifdef PEGASUS_EXTRA_PROVIDER_LIB_DIR
1504                               ifndef PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS
1505                                  $(error "PEGASUS_OVERRIDE_DEFAULT_RELEASE_DIRS must be defined when PEGASUS_EXTRA_PROVIDER_LIB_DIR defined.")
1506                               endif
1507                               DEFINES += -DPEGASUS_EXTRA_PROVIDER_LIB_DIR=\"$(PEGASUS_EXTRA_PROVIDER_LIB_DIR):\"
1508                            else
1509                               DEFINES += -DPEGASUS_EXTRA_PROVIDER_LIB_DIR=\"\"
1510                            endif
1511                            
1512 marek            1.195     ################################################################################
1513                            ##
1514                            ## PEGASUS_INITIAL_THREADSTACK_SIZE
1515                            ##
1516                            ##     This environment variable sets the initial size of the stack on new threads.
1517                            ##     When it is undefined, the size defaults to something relatively small
1518                            ##     (see src/Pegasus/Common/Config.h or if overridden by platform see
1519                            ##      src/Pegasus/Common/Platform_$(PEGASUS_PLATFORM).h).
1520                            ##     Value is specified in number of bytes.
1521                            ##
1522                            ################################################################################
1523                            
1524                            ifdef PEGASUS_INITIAL_THREADSTACK_SIZE
1525                            DEFINES += -DPEGASUS_INITIAL_THREADSTACK_SIZE=$(PEGASUS_INITIAL_THREADSTACK_SIZE)
1526                            endif
1527                            
1528 karl             1.195.2.3 ifndef PEGASUS_INTEROP_NAMESPACE
1529                                PEGASUS_INTEROP_NAMESPACE=root/PG_InterOp
1530                            else
1531                            ifeq ($(PEGASUS_INTEROP_NAMESPACE),root/interop)
1532                            DEFINES += -DNS_ROOT_INTEROP
1533                                endif
1534                            ifeq ($(PEGASUS_INTEROP_NAMESPACE),interop)
1535                            DEFINES += -DNS_INTEROP
1536                            endif
1537                            endif
1538                            
1539                            ##These namespaces will be used in Makefiles.
1540                            
1541                            NAMESPACE_INTEROP = interop
1542                            
1543                            NAMESPACE_ROOT_INTEROP = root/interop

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2