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.26 ifdef PEGASUS_DISPLAYCONSUMER_DIR
33 DISPLAYCONSUMER_DIR = $(subst \,/,$(PEGASUS_DISPLAYCONSUMER_DIR))
34 else
35 DISPLAYCONSUMER_DIR = $(PEGASUS_HOME)
36 endif
37
|
38 mike 1.14 VALID_PLATFORMS = \
39 WIN32_IX86_MSVC \
40 LINUX_IX86_GNU \
|
41 david.eger 1.32 LINUX_PPC_GNU \
|
42 kumpf 1.19 LINUX_IA64_GNU \
|
43 mday 1.32.4.1 LINUX_ZSERIES_GNU \
|
44 mike 1.14 AIX_RS_IBMCXX \
45 HPUX_PARISC_ACC \
|
46 kumpf 1.22 HPUX_IA64_ACC \
|
47 mike 1.15 TRU64_ALPHA_DECCXX \
|
48 mike 1.16 SOLARIS_SPARC_GNU \
49 ZOS_ZSERIES_IBM \
50 NSK_NONSTOP_NMCPLUS
|
51 mike 1.8
52 ifndef PEGASUS_PLATFORM
53 ERROR = pegasus_platform_undefined
54 pegasus_platform_undefined:
55 @ echo PEGASUS_PLATFORM environment variable undefined. Please set to\
56 one of the following: $(VALID_PLATFORMS)
57 @ exit 1
58 endif
59
|
60 mike 1.1 ################################################################################
61
|
62 kumpf 1.22 OBJ_DIR = $(HOME_DIR)/obj/$(DIR)
63 BIN_DIR = $(HOME_DIR)/bin
64 LIB_DIR = $(HOME_DIR)/lib
65
66 # define the location for the repository
67 REPOSITORY_DIR = $(HOME_DIR)
68 REPOSITORY_ROOT = $(REPOSITORY_DIR)/repository
|
69 mike 1.1
|
70 kumpf 1.23 # The two variables, CIM_SCHEMA_DIR and CIM_SCHEMA_VER,
71 # are used to control the version of the CIM Schema
72 # loaded into the Pegasus Internal, InterOp,
73 # root/cimv2 and various test namespaces.
74 #
75 # Update the following two environment variables to
76 # change the version.
77
|
78 kumpf 1.30 CIM_SCHEMA_DIR=$(PEGASUS_ROOT)/Schemas/CIM27
|
79 kumpf 1.25 CIM_SCHEMA_VER=27
|
80 kumpf 1.23
|
81 gerarda 1.29 # ***** CIM_SCHEMA_DIR INFO ****
82 # If CIM_SCHEMA_DIR changes to use a preliminary schema which
83 # has experimentals make sure and change the path below to appopriate
84 # directory path. Example: CIMPrelim271 is preliminary and has
85 # experimental classes. Since experimental classes exist the -aE
86 # option of the mof compiler needs to be set.
87 # *****
88 ifeq ($(CIM_SCHEMA_DIR), $(PEGASUS_ROOT)/Schemas/CIMPrelim271)
89 ALLOW_EXPERIMENTAL = -aE
90 else
|
91 gerarda 1.31 ALLOW_EXPERIMENTAL =
|
92 gerarda 1.29 endif
93
|
94 bob 1.5 LEX = flex
95
|
96 mike 1.8 ################################################################################
97 ##
98 ## Attempt to include a platform configuration file:
99 ##
100 ################################################################################
101
|
102 mike 1.9 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
103 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
|
104 mike 1.8 FOUND = true
105 endif
106
|
107 mike 1.9 ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU)
|
108 david.eger 1.32 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
109 FOUND = true
110 endif
111
112 ifeq ($(PEGASUS_PLATFORM),LINUX_PPC_GNU)
|
113 kumpf 1.19 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
114 FOUND = true
115 endif
116
117 ifeq ($(PEGASUS_PLATFORM),LINUX_IA64_GNU)
|
118 mday 1.32.4.1 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
119 FOUND = true
120 endif
121
122 ifeq ($(PEGASUS_PLATFORM),LINUX_ZSERIES_GNU)
|
123 mike 1.12 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
124 FOUND = true
125 endif
126
127 ifeq ($(PEGASUS_PLATFORM),AIX_RS_IBMCXX)
|
128 mike 1.13 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
129 FOUND = true
130 endif
131
132 ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
|
133 kumpf 1.22 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
134 FOUND = true
135 endif
136
137 ifeq ($(PEGASUS_PLATFORM),HPUX_IA64_ACC)
|
138 mike 1.14 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
139 FOUND = true
140 endif
141
142 ifeq ($(PEGASUS_PLATFORM),TRU64_ALPHA_DECCXX)
|
143 mike 1.15 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
144 FOUND = true
145 endif
146
147 ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_GNU)
|
148 mike 1.9 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
|
149 mike 1.8 FOUND = true
|
150 mike 1.16 endif
151
152 ifeq ($(PEGASUS_PLATFORM),ZOS_ZSERIES_IBM)
153 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
154 FOUND = true
155 endif
156
157 ifeq ($(PEGASUS_PLATFORM),NSK_NONSTOP_NMCPLUS)
158 include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
159 FOUND = true
|
160 mike 1.8 endif
161
162 ifneq ($(FOUND),true)
163 ERROR = pegasus_unknown_platform
164 pegasus_unknown_platform:
165 @ echo PEGASUS_PLATFORM environment variable must be set to one of\
166 the following: $(VALID_PLATFORMS)
167 @ exit 1
168 endif
|
169 karl 1.17
170
171 ############################################################
172 #
173 # Set up other Make Variables that depend on platform config files
174 #
175 ############################################################
176
177 # This is temporary until we end up with a better place to
178 # put this variable
179 # Makefiles can do directory remove with
180 # $(RMREPOSITORY) repositoryname
181 #
182 RMREPOSITORY = $(RMDIRHIER)
183
|
184 mday 1.27
|
185 mday 1.28
|
186 mday 1.27
|