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

  1 mike  1.1 ################################################################################
  2           ##
  3           ## Get external environment variables. Note that all external environment
  4           ## variables begin with "PEGASUS_".
  5           ##
  6           ################################################################################
  7           
  8 konrad.r 1.55 ifndef ROOT
  9                   ROOT =  $(subst \,/,$(PEGASUS_ROOT))
 10               endif
 11               
 12 denise.eckstein 1.61 ifdef PEGASUS_ENVVAR_FILE
 13 david.dillard   1.65     include $(PEGASUS_ENVVAR_FILE)
 14 denise.eckstein 1.61 else
 15 david.dillard   1.65     include $(ROOT)/env_var.status
 16 denise.eckstein 1.61 endif
 17 konrad.r        1.55 
 18 mike            1.2  ifdef PEGASUS_HOME
 19 david.dillard   1.65     HOME_DIR = $(subst \,/,$(PEGASUS_HOME))
 20 mike            1.1  else
 21 david.dillard   1.65     $(error PEGASUS_HOME environment variable undefined)
 22 mike            1.1  endif
 23                      
 24 karl            1.18 ifdef PEGASUS_ROOT
 25                          ROOT =  $(subst \,/,$(PEGASUS_ROOT))
 26                      else
 27 david.dillard   1.65     $(error PEGASUS_ROOT environment variable undefined)
 28 karl            1.18 endif
 29                      
 30 chuck           1.35 # l10n
 31                      ifdef ICU_ROOT
 32                          ICUROOT =  $(subst \,/,$(ICU_ROOT))
 33                      endif
 34                      
 35 kumpf           1.21 ifdef PEGASUS_TMP
 36 david.dillard   1.65     TMP_DIR = $(subst \,/,$(PEGASUS_TMP))
 37 kumpf           1.21 else
 38 david.dillard   1.65     TMP_DIR = .
 39 kumpf           1.21 endif
 40                      
 41 kumpf           1.26 ifdef PEGASUS_DISPLAYCONSUMER_DIR
 42 david.dillard   1.65     DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_DISPLAYCONSUMER_DIR))
 43 kumpf           1.26 else
 44 david.dillard   1.65     DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_HOME))
 45 kumpf           1.26 endif
 46                      
 47 david.dillard   1.66 PLATFORM_FILES=$(wildcard $(ROOT)/mak/platform*.mak)
 48                      TEMP=$(subst $(ROOT)/mak/platform_,, $(PLATFORM_FILES))
 49                      VALID_PLATFORMS=$(subst .mak,, $(TEMP))
 50 mike            1.8  
 51                      ifndef PEGASUS_PLATFORM
 52 david.dillard   1.66     $(error PEGASUS_PLATFORM environment variable undefined. Please set to\
 53                              one of the following:$(VALID_PLATFORMS))
 54 mike            1.8  endif
 55                      
 56 mike            1.1  ################################################################################
 57                      
 58 kumpf           1.22 OBJ_DIR = $(HOME_DIR)/obj/$(DIR)
 59                      BIN_DIR = $(HOME_DIR)/bin
 60                      LIB_DIR = $(HOME_DIR)/lib
 61 chuck           1.35 
 62                      # l10n
 63                      # define the location for the compiled messages
 64                      MSG_ROOT = $(HOME_DIR)/msg
 65 kumpf           1.22 
 66                      # define the location for the repository
 67                      REPOSITORY_DIR = $(HOME_DIR)
 68 jim.wunderlich  1.67.2.1 REPOSITORY_NAME = repository
 69                          REPOSITORY_ROOT = $(REPOSITORY_DIR)/$(REPOSITORY_NAME)
 70                          
 71                          # define the repository mode 
 72                          #	XML = XML format
 73                          #	BIN = Binary format
 74                          #
 75                          REPOSITORY_MODE = XML
 76 mike            1.1      
 77 kumpf           1.23     # The two variables, CIM_SCHEMA_DIR and CIM_SCHEMA_VER,
 78                          # are used to control the version of the CIM Schema 
 79                          # loaded into the Pegasus Internal, InterOp,
 80                          # root/cimv2 and various test namespaces.
 81                          #
 82                          # Update the following two environment variables to 
 83                          # change the version.
 84                          
 85 kumpf           1.37     # The environment variable PEGASUS_CIM_SCHEMA can be used
 86                          # to change the values of CIM_SCHEMA_DIR, CIM_SCHEMA_VER 
 87                          # and ALLOW_EXPERIMENTAL.
 88                          #
 89                          # To use the PEGASUS_CIM_SCHEMA variable the Schema mof
 90                          # files must be placed in the directory
 91                          # $(PEGAUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
 92                          # 
 93                          # The value of PEGASUS_CIM_SCHEMA must conform to the
 94                          # following syntax:
 95                          #
 96                          #        CIM[Prelim]<CIM_SCHEMA_VER>
 97                          #
 98                          # The string "Prelim" should be included if the 
 99                          # Schema contains "Experimental" class definitions.
100                          #
101                          # The value of <CIM_SCHEMA_VER> must be the value
102                          # of the version string included by the DMTF as 
103                          # part of the mof file names (e.g, CIM_Core27.mof). 
104                          # Therefore, for example, the value of <CIM_SCHEMA_VER>
105                          # for CIM27 Schema directories MUST be 27.
106 kumpf           1.37     #
107                          # Examples of valid values of PEGASUS_CIM_SCHEMA 
108                          # include CIMPrelim27, CIM27, CIMPrelim28, and CIM28.
109                          #
110                          # Note the CIMPrelim271 would NOT be a valid value
111                          # for PEGASUS_CIM_SCHEMA because the version string
112                          # portion of the mof files (e.g., CIM_Core27.mof) in
113                          # the CIMPrelimin271 directory is 27 not 271.
114 kumpf           1.23     
115 gerarda         1.29     # ***** CIM_SCHEMA_DIR INFO ****
116                          # If CIM_SCHEMA_DIR changes to use a preliminary schema which
117                          # has experimentals make sure and change the path below to appopriate
118                          # directory path.  Example:  CIMPrelim271 is preliminary and has
119                          # experimental classes.  Since experimental classes exist the -aE
120                          # option of the mof compiler needs to be set.
121                          # *****
122 kumpf           1.37     
123                          ifdef PEGASUS_CIM_SCHEMA
124 david.dillard   1.65         CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/$(PEGASUS_CIM_SCHEMA)
125                              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),)  
126                                 CIM_SCHEMA_VER=
127                              else
128                                 CIM_SCHEMA_VER=$(patsubst CIM%,%,$(patsubst CIMPrelim%,%,$(PEGASUS_CIM_SCHEMA)))
129                              endif
130 kumpf           1.37     else
131 david.dillard   1.65         CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/CIM28
132                              CIM_SCHEMA_VER=28
133 kumpf           1.37     endif
134                          
135                          ifneq (, $(findstring Prelim, $(CIM_SCHEMA_DIR)))
136 david.dillard   1.65         ALLOW_EXPERIMENTAL = -aE
137 gerarda         1.29     else
138 david.dillard   1.65         ALLOW_EXPERIMENTAL =
139 gerarda         1.29     endif
140                          
141 bob             1.5      LEX = flex
142                          
143 mike            1.8      ################################################################################
144                          ##
145 konrad.r        1.52     ## Default installation paths 
146                          ##
147                          ################################################################################
148                          
149                          ## Default values to install files when 'make install' is invoked.
150                          
151                          ifndef PREFIX
152 david.dillard   1.65         PREFIX=$(HOME_DIR)/install
153 konrad.r        1.52     endif
154                          
155                          ifndef SYSCONF_PREFIX
156 david.dillard   1.65         SYSCONF_PREFIX=$(PREFIX)/etc
157 konrad.r        1.52     endif
158                          
159                          ifndef LOCAL_STATE_PREFIX
160 david.dillard   1.65         LOCAL_STATE_PREFIX=$(PREFIX)/var/
161 konrad.r        1.52     endif
162                          
163                          ifndef DEST_LIB_DIR
164 david.dillard   1.65         DEST_LIB_DIR = $(PREFIX)/lib
165 konrad.r        1.52     endif
166                          
167                          ifndef DEST_BIN_DIR
168 david.dillard   1.65         DEST_BIN_DIR = $(PREFIX)/bin
169 konrad.r        1.52     endif
170                          
171                          ifndef DEST_SBIN_DIR
172 david.dillard   1.65         DEST_SBIN_DIR = $(PREFIX)/sbin
173 konrad.r        1.52     endif
174                          
175                          ifndef DEST_ETC_DIR
176 david.dillard   1.65         DEST_ETC_DIR = $(SYSCONF_PREFIX)/pegasus
177 konrad.r        1.52     endif
178                          
179                          ifndef DEST_MAN_DIR
180 david.dillard   1.65         DEST_MAN_DIR = $(PREFIX)/man
181 konrad.r        1.52     endif
182                          
183                          ifndef DEST_VAR_DIR
184 david.dillard   1.65         DEST_VAR_DIR = $(LOCAL_STATE_PREFIX)
185 konrad.r        1.52     endif
186                          
187                          ################################################################################
188                          ##
189 mike            1.8      ## Attempt to include a platform configuration file:
190                          ##
191                          ################################################################################
192                          
193 david.dillard   1.66     PLATFORM_FILE = $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
194                          ifneq ($(wildcard $(PLATFORM_FILE)), )
195                              include $(PLATFORM_FILE)
196                          else
197 david.dillard   1.65       $(error  PEGASUS_PLATFORM environment variable must be set to one of\
198 david.dillard   1.66             the following:$(VALID_PLATFORMS))
199 mike            1.8      endif
200 karl            1.17     
201 karl            1.36     ################################################################################
202                          ##
203 konrad.r        1.52     ## Default installation macros 
204                          ##
205                          ################################################################################
206                          
207                          ## INSTALL_LIB creates the destination directory if missing,
208                          ## copies the library and generates the symbolic link.
209                          
210                          ifndef INSTALL_LIBRARY
211 david.dillard   1.65         ## These macros are also defined in the Platform_<*>.mak files. 
212                              INSTALL_LIBRARY =  $(MKDIRHIER) $(DEST_LIB_DIR); $(COPY) $(FULL_LIB) $(DEST_LIB_DIR)
213 konrad.r        1.52     endif
214                          
215                          ## INSTALL_PROGRAM creates the destination directory if missing and
216                          ## copies the file.
217                          ifndef INSTALL_PROGRAM
218 david.dillard   1.65         INSTALL_PROGRAM = $(MKDIRHIER) $(DEST_BIN_DIR); $(COPY) $(FULL_PROGRAM) $(DEST_BIN_DIR)
219 konrad.r        1.52     endif
220                          ## INSTALL_PROGRAM creates the destination directory if missing and
221                          ## copies the file.
222                          ifndef INSTALL_SBIN_PROGRAM
223 david.dillard   1.65         INSTALL_SBIN_PROGRAM = $(MKDIRHIER) $(DEST_SBIN_DIR);  $(COPY) $(FULL_PROGRAM) $(DEST_SBIN_DIR)
224 konrad.r        1.52     endif
225                          ## The rest of the macros for DEST_MAN_DIR, DEST_VAR_DIR, etc. are not provided in this file.
226                          
227                          ################################################################################
228                          ##
229 karl            1.36     ##  Set up any platform independent compile conditionals by adding them to
230                          ##  precreated FLAGS parameter.
231                          ##  Assumes that the basic flags have been setup in FLAGS. 
232                          ##  Assumes that compile time flags are controlled with -D CLI option.
233                          ##
234                          ################################################################################
235 karl            1.17     
236 karl            1.36     # Setup the conditional compile for client displays.
237                          # 
238                          ifdef PEGASUS_CLIENT_TRACE_ENABLE
239 david.dillard   1.65         DEFINES += -DPEGASUS_CLIENT_TRACE_ENABLE
240 karl            1.36     endif
241                          
242 mday            1.40     # do not compile trace code. sometimes it causes problems debugging
243                          ifdef PEGASUS_REMOVE_TRACE
244 david.dillard   1.65         DEFINES += -DPEGASUS_REMOVE_TRACE
245 mday            1.40     endif
246                          
247 karl            1.43     # PEP 123 use monitor2 (the default) or not
248 dj.gorey        1.46     #ifdef PEGASUS_USE_23HTTPMONITOR_SERVER
249 david.dillard   1.65         DEFINES += -DPEGASUS_USE_23HTTPMONITOR_SERVER
250 dj.gorey        1.46     #endif
251 mday            1.40     
252 dj.gorey        1.45     #BUG 1170 Monitor2 Client Workaround
253 dj.gorey        1.46     #ifdef PEGASUS_USE_23HTTPMONITOR_CLIENT
254 david.dillard   1.65         DEFINES += -DPEGASUS_USE_23HTTPMONITOR_CLIENT
255 dj.gorey        1.46     #endif
256 dj.gorey        1.45     
257 chuck           1.47     # PEP 161
258                          # Control whether utf-8 filenames are supported by the repository
259                          ifdef PEGASUS_SUPPORT_UTF8_FILENAME
260 david.dillard   1.65         DEFINES += -DPEGASUS_SUPPORT_UTF8_FILENAME
261 chuck           1.47     
262 david.dillard   1.65         # Control whether utf-8 filenames in the repository are escaped
263                              ifdef PEGASUS_REPOSITORY_ESCAPE_UTF8
264                                  DEFINES += -DPEGASUS_REPOSITORY_ESCAPE_UTF8
265                              endif
266 chuck           1.47     endif
267                          
268 kumpf           1.49     #
269                          # PEP 142
270                          # The following flag need to be set to enable
271                          # user group authorization functionality.
272                          #
273                          ifdef PEGASUS_ENABLE_USERGROUP_AUTHORIZATION
274 david.dillard   1.65         DEFINES += -DPEGASUS_ENABLE_USERGROUP_AUTHORIZATION
275 kumpf           1.49     endif
276                          
277 chuck           1.67     #
278                          # PEP 193
279                          # The following flag need to be set to disable
280                          # CQL in indication subscriptions
281                          #
282                          ifdef PEGASUS_DISABLE_CQL
283                              DEFINES += -DPEGASUS_DISABLE_CQL
284                          endif
285                          
286 kumpf           1.49     
287 karl            1.39     # setup function to enable SLP functions in the Pegasus standard compile
288                          # Set the environment varaible PEGASUS_ENABLE_SLP to enable SLP code.  
289                          ifdef PEGASUS_ENABLE_SLP
290 david.dillard   1.65         DEFINES += -DPEGASUS_ENABLE_SLP
291 karl            1.39     endif
292 karl            1.36     
293 karl            1.60     # set PEGASUS_DEBUG into the DEFINES if it exists.
294                          # Note that this flag is the general separator between
295                          # debug compiles and non-debug compiles and controls both
296                          # the use of any debug options on compilers and linkers
297                          # and general debug support that we want to be turned on in
298                          # debug mode. 
299                          ifdef PEGASUS_DEBUG
300 david.dillard   1.65         DEFINES += -DPEGASUS_DEBUG
301 karl            1.60     endif
302                          
303 chuck           1.42     # compile in the experimental APIs
304 david.dillard   1.65     DEFINES += -DPEGASUS_USE_EXPERIMENTAL_INTERFACES
305 chuck           1.42     
306 w.white         1.57     # Set compile flag to control compilation of CIMOM statistics
307                          ifdef PEGASUS_HAS_PERFINST
308 david.dillard   1.65         FLAGS += -DPEGASUS_HAS_PERFINST
309 w.white         1.57     endif
310 kumpf           1.56     
311                          ############################################################
312                          #
313                          # Set any vendor-specific compile flags
314                          #
315                          ############################################################
316                          
317                          ifdef PEGASUS_VENDOR_HP
318 david.dillard   1.65         DEFINES+= -DPEGASUS_VENDOR_HP
319 kumpf           1.56     endif
320                          
321 karl            1.36      
322 karl            1.17     ############################################################
323                          #
324                          # Set up other Make Variables that depend on platform config files
325                          #
326                          ############################################################
327                          
328                          # This is temporary until we end up with a better place to
329                          # put this variable
330                          # Makefiles can do directory remove with
331                          # $(RMREPOSITORY) repositoryname
332                          #
333                          RMREPOSITORY = $(RMDIRHIER)
334                          
335 w.otsuka        1.63     ifdef PEGASUS_USE_RELEASE_CONFIG_OPTIONS
336 david.dillard   1.65         FLAGS += -DPEGASUS_USE_RELEASE_CONFIG_OPTIONS
337 w.otsuka        1.62     endif
338                          
339                          ifdef PEGASUS_USE_RELEASE_DIRS
340 david.dillard   1.65         FLAGS += -DPEGASUS_USE_RELEASE_DIRS
341 w.otsuka        1.62     endif
342 mday            1.27     
343 kumpf           1.64     # Unless otherwise specified, Pegasus libraries go in $(PEGASUS_HOME)/lib
344                          ifndef PEGASUS_DEST_LIB_DIR
345 david.dillard   1.65         PEGASUS_DEST_LIB_DIR = lib
346 kumpf           1.64     endif
347 mday            1.28     
348 kumpf           1.64     DEFINES += -DPEGASUS_DEST_LIB_DIR=\"$(PEGASUS_DEST_LIB_DIR)\"

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2