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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2