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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2