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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2