forked from NCAR/ncl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yMakefile
291 lines (253 loc) · 4.98 KB
/
yMakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
/*
* $Id: yMakefile,v 1.45 2010-04-30 23:17:54 huangwei Exp $
*/
/************************************************************************
* *
* Copyright (C) 1993 *
* University Corporation for Atmospheric Research *
* All Rights Reserved *
* *
************************************************************************/
/*
* File: yMakefile
*
* Author: Jeff W. Boote
* National Center for Atmospheric Research
* PO 3000, Boulder, Colorado
*
* Date: Tue May 4 12:31:14 MDT 1993
*
* Description: This is the yMakefile for the TOP of the ncarg
* distribution.
*/
#define IHaveSubdirs
#ifdef BuildNCL
SUBDIRS = config external common ncarg2d ngmath ncarview ni
#else
SUBDIRS = config common ncarg2d ngmath ncarview
#endif
#ifdef YMAKEDEVFILE
Info::
@echo;\
echo -n "**WARNING**";\
echo -n " Using YMAKE_DEV_FILE - This is not a regular build! ";\
echo "**WARNING**";
#endif
Info::
@echo;\
echo " NCL/NCAR Graphics - Version $(NCLVERSION) Installation Configuration";\
echo;\
echo "System File "$(SYSTEM_INCLUDE);\
echo "Binary Install Directory "$(BINPATH);\
echo "Library Install Directory "$(LIBPATH);\
echo "Include Install Directory "$(INCPATH);\
echo "Manpage Install Directory "$(MANPATH);\
echo "Config Install Directory "$(CONFIGPATH);\
echo "Data Base Directory "$(DBPATH);\
echo "Programmer Doc Dir "$(DOCPATH);\
echo "Reloc Obj. Directory "$(ROBJPATH);\
echo "Examples Directory "$(EXAMPLESPATH);\
echo "Tutorial Directory "$(TUTORIALPATH);\
echo "Test Directory "$(TESTSPATH);\
echo "X App. Def. Directory "$(XAPPPATH);\
echo "f77 Compiler "$(F77);\
echo "f77 Flags "$(FFLAGS);\
echo "C Compiler "$(CC);\
echo "cc Flags "$(CFLAGS);
# The "All" target rebuilds the Makefile hierarchy, rearhives
# all libraries, rebuilding all out-of-date objects and executables.
# It *does not* clean out the object code. Its intended use is for
# rebuilding the system once you have made changes to your configuration file.
All:
@echo ""
@echo "Making <All>."
@$(MAKE) $(MFLAGS) me
@$(MAKE) $(MFLAGS) Info
@date
@$(MAKE) $(MFLAGS) Makefiles
@$(MAKE) $(MFLAGS) includes
@$(MAKE) $(MFLAGS) depend
@$(MAKE) $(MFLAGS) all
@date
@echo "Finished making <All>."
# The Build target is a *complete* build. Makefiles
# are completely rebuilt for the current installation, object
# code is removed (clean target), and all binaries and libraries
# are rebuilt from the ground up.
Build:
@echo ""
@echo "Making <Build>."
@$(MAKE) $(MFLAGS) me
@$(MAKE) $(MFLAGS) Info
@date
@$(MAKE) $(MFLAGS) Makefiles
@$(MAKE) $(MFLAGS) clean
@$(MAKE) $(MFLAGS) includes
@$(MAKE) $(MFLAGS) depend
@$(MAKE) $(MFLAGS) all
@date
@echo "Finished making <Build>."
# The Everything target is a *complete* build. Makefiles
# are completely rebuilt for the current installation, object
# code is removed (clean target), and all binaries and libraries
# are rebuilt from the ground up. It also installs everything.
Everything:
@echo ""
@echo "Making <Everything>."
@$(MAKE) $(MFLAGS) me
@$(MAKE) $(MFLAGS) Info
@date
@$(MAKE) $(MFLAGS) Makefiles
@$(MAKE) $(MFLAGS) clean
@$(MAKE) $(MFLAGS) includes
@$(MAKE) $(MFLAGS) depend
@$(MAKE) $(MFLAGS) all
@$(MAKE) $(MFLAGS) install
@date
@echo "Finished making and Installing <Everything>."
includes::
$(RM) -r include
dist-clean::
$(RM) -r include
ROOT:
@echo "$(YMAKEROOT)"
TROOT:
@echo "$(TMPROOT)"
LSEARCH:
@echo "$(LIBSEARCH)"
ISEARCH:
@echo "$(INCSEARCH)"
PYTHONDIR:
@echo "$(PYTHONDIR)"
PYTHONVERS:
@echo "$(PYTHONVERSION)"
#ifdef BuildNCL
NCLSTUFF:
@echo "y"
#else
NCLSTUFF:
@echo "n"
#endif
#ifdef BuildXlibDependentCode
XSTUFF:
@echo "y"
#else
XSTUFF:
@echo "n"
#endif
#ifdef BuildRasterHDF
RASTERHDFSTUFF:
@echo "y"
#else
RASTERHDFSTUFF:
@echo "n"
#endif
#ifdef BuildTRIANGLE
TRIANGLESTUFF:
@echo "y"
#else
TRIANGLESTUFF:
@echo "n"
#endif
#ifdef BuildUdunits
UDUNITSSTUFF:
@echo "y"
#else
UDUNITSSTUFF:
@echo "n"
#endif
#ifdef BuildNetCDF4
NETCDF4STUFF:
@echo "y"
#else
NETCDF4STUFF:
@echo "n"
#endif
#ifdef BuildHDF
HDFSTUFF:
@echo "y"
#else
HDFSTUFF:
@echo "n"
#endif
#ifdef BuildHDFEOS
HDFEOSSTUFF:
@echo "y"
#else
HDFEOSSTUFF:
@echo "n"
#endif
#ifdef BuildHDFEOS5
HDFEOS5STUFF:
@echo "y"
#else
HDFEOS5STUFF:
@echo "n"
#endif
#ifdef BuildHDF5
HDF5STUFF:
@echo "y"
#else
HDF5STUFF:
@echo "n"
#endif
#ifdef BuildOpenCL
OpenCLSTUFF:
@echo "y"
#else
OpenCLSTUFF:
@echo "n"
#endif
#ifdef UseNetCDF4Features
NC4STUFF:
@echo "y"
#else
NC4STUFF:
@echo "n"
#endif
#ifdef BuildGDAL
GDALSTUFF:
@echo "y"
#else
GDALSTUFF:
@echo "n"
#endif
#ifdef BuildGRIDSPEC
GRIDSPECSTUFF:
@echo "y"
#else
GRIDSPECSTUFF:
@echo "n"
#endif
#ifdef BuildGRIB2
GRIB2STUFF:
@echo "y"
#else
GRIB2STUFF:
@echo "n"
#endif
#ifdef BuildEEMD
EEMDSTUFF:
@echo "y"
#else
EEMDSTUFF:
@echo "n"
#endif
#ifdef BuildV5D
V5DSTUFF:
@echo "y"
#else
V5DSTUFF:
@echo "n"
#endif
#ifdef BuildPyNGL
PYNGLSTUFF:
@echo "y"
#else
PYNGLSTUFF:
@echo "n"
#endif
NGVERS:
@echo "$(NGVERSION)"
NCLVERS:
@echo "$(NCLVERSION)"