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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2