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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2