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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2