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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2