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