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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2