(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                SOLARIS_SPARC_GNU
24 mike  1.8  
25            ifndef PEGASUS_PLATFORM
26              ERROR = pegasus_platform_undefined
27            pegasus_platform_undefined:
28            	@ echo PEGASUS_PLATFORM environment variable undefined. Please set to\
29            	    one of the following: $(VALID_PLATFORMS)
30            	@ exit 1
31            endif
32            
33 mike  1.1  ################################################################################
34            
35 mike  1.2  OBJ_DIR = $(HOME_DIR)/obj/$(DIR)
36            BIN_DIR = $(HOME_DIR)/bin
37            LIB_DIR = $(HOME_DIR)/lib
38 mike  1.10 REPOSITORY_ROOT = $(HOME_DIR)/repository
39 mike  1.1  
40 bob   1.5  LEX = flex
41            
42 mike  1.8  ################################################################################
43            ##
44            ## Attempt to include a platform configuration file:
45            ##
46            ################################################################################
47            
48 mike  1.9  ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
49              include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
50 mike  1.8    FOUND = true
51            endif
52            
53 mike  1.9  ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU)
54 mike  1.12   include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
55              FOUND = true
56            endif
57            
58            ifeq ($(PEGASUS_PLATFORM),AIX_RS_IBMCXX)
59 mike  1.13   include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
60              FOUND = true
61            endif
62            
63            ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
64 mike  1.14   include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
65              FOUND = true
66            endif
67            
68            ifeq ($(PEGASUS_PLATFORM),TRU64_ALPHA_DECCXX)
69 mike  1.15   include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
70              FOUND = true
71            endif
72            
73            ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_GNU)
74 mike  1.9    include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
75 mike  1.8    FOUND = true
76            endif
77            
78            ifneq ($(FOUND),true)
79              ERROR = pegasus_unknown_platform
80            pegasus_unknown_platform:
81            	@ echo PEGASUS_PLATFORM environment variable must be set to one of\
82            	    the following: $(VALID_PLATFORMS)
83            	@ exit 1
84            endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2