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