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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2