(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 mike  1.14 VALID_PLATFORMS = \
 27                WIN32_IX86_MSVC \
 28                LINUX_IX86_GNU \
 29                AIX_RS_IBMCXX \
 30                HPUX_PARISC_ACC \
 31 mike  1.15     TRU64_ALPHA_DECCXX \
 32 mike  1.16     SOLARIS_SPARC_GNU \
 33                ZOS_ZSERIES_IBM \
 34                NSK_NONSTOP_NMCPLUS  
 35 mike  1.8  
 36            ifndef PEGASUS_PLATFORM
 37              ERROR = pegasus_platform_undefined
 38            pegasus_platform_undefined:
 39            	@ echo PEGASUS_PLATFORM environment variable undefined. Please set to\
 40            	    one of the following: $(VALID_PLATFORMS)
 41            	@ exit 1
 42            endif
 43            
 44 mike  1.1  ################################################################################
 45            
 46 mike  1.2  OBJ_DIR = $(HOME_DIR)/obj/$(DIR)
 47            BIN_DIR = $(HOME_DIR)/bin
 48            LIB_DIR = $(HOME_DIR)/lib
 49 karl  1.17 
 50            # define the location for the repository
 51            
 52 mike  1.10 REPOSITORY_ROOT = $(HOME_DIR)/repository
 53 mike  1.1  
 54 bob   1.5  LEX = flex
 55            
 56 mike  1.8  ################################################################################
 57            ##
 58            ## Attempt to include a platform configuration file:
 59            ##
 60            ################################################################################
 61            
 62 mike  1.9  ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
 63              include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
 64 mike  1.8    FOUND = true
 65            endif
 66            
 67 mike  1.9  ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU)
 68 mike  1.12   include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
 69              FOUND = true
 70            endif
 71            
 72            ifeq ($(PEGASUS_PLATFORM),AIX_RS_IBMCXX)
 73 mike  1.13   include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
 74              FOUND = true
 75            endif
 76            
 77            ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
 78 mike  1.14   include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
 79              FOUND = true
 80            endif
 81            
 82            ifeq ($(PEGASUS_PLATFORM),TRU64_ALPHA_DECCXX)
 83 mike  1.15   include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
 84              FOUND = true
 85            endif
 86            
 87            ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_GNU)
 88 mike  1.9    include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
 89 mike  1.8    FOUND = true
 90 mike  1.16 endif
 91            
 92            ifeq ($(PEGASUS_PLATFORM),ZOS_ZSERIES_IBM)
 93               include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
 94               FOUND = true
 95            endif
 96            
 97            ifeq ($(PEGASUS_PLATFORM),NSK_NONSTOP_NMCPLUS)
 98               include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
 99               FOUND = true
100 mike  1.8  endif
101            
102            ifneq ($(FOUND),true)
103              ERROR = pegasus_unknown_platform
104            pegasus_unknown_platform:
105            	@ echo PEGASUS_PLATFORM environment variable must be set to one of\
106            	    the following: $(VALID_PLATFORMS)
107            	@ exit 1
108            endif
109 karl  1.17 
110            
111            ############################################################
112            #
113            # Set up other Make Variables that depend on platform config files
114            #
115            ############################################################
116            
117            # This is temporary until we end up with a better place to
118            # put this variable
119            # Makefiles can do directory remove with
120            # $(RMREPOSITORY) repositoryname
121            #
122            RMREPOSITORY = $(RMDIRHIER)
123            

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2