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