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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2