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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2