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