(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 mike  1.2 ifdef PEGASUS_HOME
  9             HOME_DIR = $(subst \,/,$(PEGASUS_HOME))
 10 mike  1.1 else
 11 mike  1.2   ERROR = pegasus_home_undefined
 12           pegasus_home_undefined:
 13 mike  1.4 	@ echo PEGASUS_HOME environment variable undefined
 14 mike  1.2 	@ exit 1
 15 mike  1.1 endif
 16           
 17 karl  1.18 ifdef PEGASUS_ROOT
 18                ROOT =  $(subst \,/,$(PEGASUS_ROOT))
 19            else
 20                ERROR = pegasus_root_undefined
 21            pegasus_root_undefined:
 22            	@ echo PEGASUS_ROOT environment variable undefined
 23            	@ exit 1
 24            endif
 25            
 26 mday  1.32.4.2 # l10n
 27                ifdef ICU_ROOT
 28                    ICUROOT =  $(subst \,/,$(ICU_ROOT))
 29                endif
 30                
 31 kumpf 1.21     ifdef PEGASUS_TMP
 32                  TMP_DIR = $(subst \,/,$(PEGASUS_TMP))
 33                else
 34                  TMP_DIR = .
 35                endif
 36                
 37 kumpf 1.26     ifdef PEGASUS_DISPLAYCONSUMER_DIR
 38                  DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_DISPLAYCONSUMER_DIR))
 39                else
 40                  DISPLAYCONSUMER_DIR = $(PEGASUS_HOME)
 41                endif
 42                
 43 mike  1.14     VALID_PLATFORMS = \
 44                    WIN32_IX86_MSVC \
 45                    LINUX_IX86_GNU \
 46 david.eger 1.32         LINUX_PPC_GNU \
 47 kumpf      1.19         LINUX_IA64_GNU \
 48 mday       1.32.4.1     LINUX_ZSERIES_GNU \
 49 mike       1.14         AIX_RS_IBMCXX \
 50                         HPUX_PARISC_ACC \
 51 kumpf      1.22         HPUX_IA64_ACC \
 52 mike       1.15         TRU64_ALPHA_DECCXX \
 53 mike       1.16         SOLARIS_SPARC_GNU \
 54 mday       1.32.4.2     SOLARIS_SPARC_CC \
 55 mike       1.16         ZOS_ZSERIES_IBM \
 56                         NSK_NONSTOP_NMCPLUS  
 57 mike       1.8      
 58                     ifndef PEGASUS_PLATFORM
 59                       ERROR = pegasus_platform_undefined
 60                     pegasus_platform_undefined:
 61                     	@ echo PEGASUS_PLATFORM environment variable undefined. Please set to\
 62                     	    one of the following: $(VALID_PLATFORMS)
 63                     	@ exit 1
 64                     endif
 65                     
 66 mike       1.1      ################################################################################
 67                     
 68 kumpf      1.22     OBJ_DIR = $(HOME_DIR)/obj/$(DIR)
 69                     BIN_DIR = $(HOME_DIR)/bin
 70                     LIB_DIR = $(HOME_DIR)/lib
 71                     
 72 mday       1.32.4.2 # l10n
 73                     # define the location for the compiled messages
 74                     MSG_ROOT = $(HOME_DIR)/msg
 75                     
 76 kumpf      1.22     # define the location for the repository
 77                     REPOSITORY_DIR = $(HOME_DIR)
 78                     REPOSITORY_ROOT = $(REPOSITORY_DIR)/repository
 79 mike       1.1      
 80 kumpf      1.23     # The two variables, CIM_SCHEMA_DIR and CIM_SCHEMA_VER,
 81                     # are used to control the version of the CIM Schema 
 82                     # loaded into the Pegasus Internal, InterOp,
 83                     # root/cimv2 and various test namespaces.
 84                     #
 85                     # Update the following two environment variables to 
 86                     # change the version.
 87                     
 88 kumpf      1.30     CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/CIM27
 89 kumpf      1.25     CIM_SCHEMA_VER=27
 90 kumpf      1.23     
 91 gerarda    1.29     # ***** CIM_SCHEMA_DIR INFO ****
 92                     # If CIM_SCHEMA_DIR changes to use a preliminary schema which
 93                     # has experimentals make sure and change the path below to appopriate
 94                     # directory path.  Example:  CIMPrelim271 is preliminary and has
 95                     # experimental classes.  Since experimental classes exist the -aE
 96                     # option of the mof compiler needs to be set.
 97                     # *****
 98                     ifeq ($(CIM_SCHEMA_DIR), $(PEGASUS_ROOT)/Schemas/CIMPrelim271)
 99                     ALLOW_EXPERIMENTAL = -aE
100                     else
101 gerarda    1.31     ALLOW_EXPERIMENTAL =
102 gerarda    1.29     endif
103                     
104 bob        1.5      LEX = flex
105                     
106 mike       1.8      ################################################################################
107                     ##
108                     ## Attempt to include a platform configuration file:
109                     ##
110                     ################################################################################
111                     
112 mike       1.9      ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
113                       include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
114 mike       1.8        FOUND = true
115                     endif
116                     
117 mike       1.9      ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU)
118 david.eger 1.32       include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
119                       FOUND = true
120                     endif
121                     
122                     ifeq ($(PEGASUS_PLATFORM),LINUX_PPC_GNU)
123 kumpf      1.19       include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
124                       FOUND = true
125                     endif
126                     
127                     ifeq ($(PEGASUS_PLATFORM),LINUX_IA64_GNU)
128 mday       1.32.4.1   include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
129                       FOUND = true
130                     endif
131                     
132                     ifeq ($(PEGASUS_PLATFORM),LINUX_ZSERIES_GNU)
133 mike       1.12       include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
134                       FOUND = true
135                     endif
136                     
137                     ifeq ($(PEGASUS_PLATFORM),AIX_RS_IBMCXX)
138 mike       1.13       include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
139                       FOUND = true
140                     endif
141                     
142                     ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
143 kumpf      1.22       include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
144                       FOUND = true
145                     endif
146                     
147                     ifeq ($(PEGASUS_PLATFORM),HPUX_IA64_ACC)
148 mike       1.14       include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
149                       FOUND = true
150                     endif
151                     
152                     ifeq ($(PEGASUS_PLATFORM),TRU64_ALPHA_DECCXX)
153 mike       1.15       include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
154                       FOUND = true
155                     endif
156                     
157                     ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_GNU)
158 mike       1.9        include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
159 mike       1.8        FOUND = true
160 mike       1.16     endif
161                     
162 mday       1.32.4.2 ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_CC)
163                       include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
164                       FOUND = true
165                     endif
166                     
167 mike       1.16     ifeq ($(PEGASUS_PLATFORM),ZOS_ZSERIES_IBM)
168                        include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
169                        FOUND = true
170                     endif
171                     
172                     ifeq ($(PEGASUS_PLATFORM),NSK_NONSTOP_NMCPLUS)
173                        include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
174                        FOUND = true
175 mike       1.8      endif
176                     
177                     ifneq ($(FOUND),true)
178                       ERROR = pegasus_unknown_platform
179                     pegasus_unknown_platform:
180                     	@ echo PEGASUS_PLATFORM environment variable must be set to one of\
181                     	    the following: $(VALID_PLATFORMS)
182                     	@ exit 1
183                     endif
184 karl       1.17     
185 mday       1.32.4.2 ################################################################################
186                     ##
187                     ##  Set up any platform independent compile conditionals by adding them to
188                     ##  precreated FLAGS parameter.
189                     ##  Assumes that the basic flags have been setup in FLAGS. 
190                     ##  Assumes that compile time flags are controlled with -D CLI option.
191                     ##
192                     ################################################################################
193                     
194                     # Setup the conditional compile for client displays.
195                     # 
196                     ifdef PEGASUS_CLIENT_TRACE_ENABLE
197                       DEFINES+= -DPEGASUS_CLIENT_TRACE_ENABLE
198                     endif
199                     
200 karl       1.17     
201 mday       1.32.4.2  
202 karl       1.17     ############################################################
203                     #
204                     # Set up other Make Variables that depend on platform config files
205                     #
206                     ############################################################
207                     
208                     # This is temporary until we end up with a better place to
209                     # put this variable
210                     # Makefiles can do directory remove with
211                     # $(RMREPOSITORY) repositoryname
212                     #
213                     RMREPOSITORY = $(RMDIRHIER)
214                     
215 mday       1.27     
216 mday       1.28     
217 mday       1.27     

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2