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 sage 1.15.2.1 SOLARIS_SPARC_GNU \
|
24 rudy 1.15.2.2 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 mike 1.10 REPOSITORY_ROOT = $(HOME_DIR)/repository
|
41 mike 1.1
|
42 bob 1.5 LEX = flex
43
|
44 mike 1.8 ################################################################################
45 ##
46 ## Attempt to include a platform configuration file:
47 ##
48 ################################################################################
49
|
50 mike 1.9 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
51 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
|
52 mike 1.8 FOUND = true
53 endif
54
|
55 mike 1.9 ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU)
|
56 mike 1.12 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
57 FOUND = true
58 endif
59
60 ifeq ($(PEGASUS_PLATFORM),AIX_RS_IBMCXX)
|
61 mike 1.13 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
62 FOUND = true
63 endif
64
65 ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
|
66 mike 1.14 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
67 FOUND = true
68 endif
69
70 ifeq ($(PEGASUS_PLATFORM),TRU64_ALPHA_DECCXX)
|
71 mike 1.15 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
72 FOUND = true
73 endif
74
75 ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_GNU)
|
76 mike 1.9 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
|
77 mike 1.8 FOUND = true
|
78 sage 1.15.2.1 endif
79
80 ifeq ($(PEGASUS_PLATFORM),ZOS_ZSERIES_IBM)
|
81 rudy 1.15.2.2 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
82 FOUND = true
83 endif
84
85 ifeq ($(PEGASUS_PLATFORM),NSK_NONSTOP_NMCPLUS)
|
86 sage 1.15.2.1 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
87 FOUND = true
|
88 mike 1.8 endif
89
90 ifneq ($(FOUND),true)
91 ERROR = pegasus_unknown_platform
92 pegasus_unknown_platform:
93 @ echo PEGASUS_PLATFORM environment variable must be set to one of\
94 the following: $(VALID_PLATFORMS)
95 @ exit 1
96 endif
|