Repository navigation
Expand file tree
/
Copy pathrap_make.LINUX_CX11
More file actions
354 lines (284 loc) · 10.5 KB
/
Copy pathrap_make.LINUX_CX11
File metadata and controls
354 lines (284 loc) · 10.5 KB
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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
# *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
# ** Copyright UCAR (c) 1992 - 2010
# ** University Corporation for Atmospheric Research(UCAR)
# ** National Center for Atmospheric Research(NCAR)
# ** Research Applications Laboratory(RAL)
# ** P.O.Box 3000, Boulder, Colorado, 80307-3000, USA
# ** 2010/10/7 16:53:3
# *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
###########################################################
#
# Macros for DEBIAN LINUX 64 bit machines
#
# Mike Dixon
#
# RAP,NCAR,Boulder,Colorado,80307,USA
#
############################################################
#
# system utilities
#
SHELL = /bin/sh
RM = /bin/rm -f
MV = /bin/mv -f
CP = /bin/cp
CP_DIR = /bin/cp -r
MKDIR = /bin/mkdir -p
TEST = /usr/bin/test
PERL = /usr/bin/perl
AWK = /usr/bin/awk
PWD = pwd
DATE = date -u
#
# includes
#
SYS_INCLUDES =
SYS_X_INCLUDES = -I/usr/X11/include
SYS_XVIEW_INCLUDES =
#
# LD_LIBRARY_PATH
#
SYS_LD_LIBRARY_PATH =
#
# lint
#
LINT = alint
LINTFILTER = $(RAP_MAKE_BIN_DIR)/lint_filter.$(HOST_OS)
SYS_LINTFLAGS = -aux -DLINT -D$(HOST_OS)
#
# cppcheck
#
SYS_CPPCHECKFLAGS=$(LOC_INCLUDES) -d $(RAP_INC_DIR) -d $(RAP_SHARED_INC_DIR)
SYS_CPPCHECKFLAGS2=-I$(LOC_INC_DIR)
#
# compile
#
# gcc
#
CC = gcc
#SYS_CFLAGS = $(GCC_WARNINGS) -D$(HOST_OS) -D_BSD_TYPES -DF_UNDERSCORE2 -D__powerpc__
SYS_CFLAGS = $(GCC_WARNINGS) -D$(HOST_OS) -D_BSD_TYPES -DF_UNDERSCORE2 $(MY_CFLAGS)
PROFILE_FLAG = -pg -O2
DEBUG_FLAG = -g
OPT_FLAG = -O2
# pgc
PGI_CC = pgcc
PGI_SYS_CFLAGS = -D$(HOST_OS) -DPGI -D_BSD_TYPES -DF_UNDERSCORE2 -Minform,severe -silent $(MY_PGI_CFLAGS)
# intel c
INTEL_CC = icc
INTEL_SYS_CFLAGS = -D$(HOST_OS) -D_BSD_TYPES -DF_UNDERSCORE2 $(MY_INTEL_CFLAGS)
#
# cc
#
SYS_CPPC_CFLAGS = $(SYS_CFLAGS) $(MY_CPPC_CFLAGS) -std=c++11
CPPC = g++
SYS_CPPC_INCLUDES =
ACC = $(CC)
PGI_CPPC = pgCC
PGI_SYS_CPPC_CFLAGS = -D$(HOST_OS) -DPGI -D_BSD_TYPES -DF_UNDERSCORE2 -Minform=severe -silent -fPIC $(MY_PGI_CPPC_CFLAGS)
INTEL_CPPC = icc
INTEL_SYS_CPPC_CFLAGS = -D$(HOST_OS) -D_BSD_TYPES -DF_UNDERSCORE2 $(MY_INTEL_CPPC_CFLAGS)
# fortran
FC = gfortran
F90C = gfortran
F95C = gfortran
F90FLAGS=$(MY_F90FFLAGS) $(LOC_F90FFLAGS)
PGI_F90C=pgf90
PGI_FC=pgf90
PGI_F95C=pgf95
SYS_PGI_FFLAGS=-DLITENDIAN $(MY_PGI_FFLAGS)
INTEL_F90C = ifort
INTEL_FC = ifort
INTEL_F95C = ifort
SYS_INTEL_FFLAGS=$(MY_INTEL_FFLAGS)
# Compile -- special for C <-> FORTRAN
# The "NATIVE" compilers need to be either both GNU or both
# non-GNU for these compiles to work. If you use GNU, then
# the USE_GNU_F2C must be set to "-DUSE_GNU_F2C" (no quotes).
NATIVE_CC = gcc
NATIVE_FC = gfortran
NATIVE_LIB_DIR =
F_TO_C_LIBS = -lg2c
USE_GNU_F2C = -DUSE_GNU_F2C
SYS_FFLAGS = -DLITENDIAN $(MY_FFLAGS)
#
# link
#
STATIC_FLAG=-static
SYS_LIBS =
SYS_CPPC_LIBS =
# Don't include -lXm, -lXpm as it fails with the libc6 version of libX11
SYS_X_LIBS = -lXext -lXt -lX11 -lSM -lICE
SYS_LDFLAGS = -L/usr/lib64 $(MY_LDFLAGS) "-Wl,-rpath,$(RAP_LIB_DIR)"
SYS_CPPC_LDFLAGS = -L/usr/lib64 $(MY_CPPC_LDFLAGS) "-Wl,-rpath,$(RAP_LIB_DIR)"
SYS_X_LDFLAGS = -L/usr/X11R6/lib64
SYS_F_LDFLAGS = $(MY_F_LDFLAGS)
SYS_XVIEW_LDFLAGS =
SYS_MOTIF_LDFLAGS =
SYS_MOTIF_LIBS = -lXm -lXp -lXext
LEX_LIB = -lfl
YACC_LIB =
SYS_UCB_LIBS =
SYS_UCB_LDFLAGS =
#
# MATLAB stuff
#
MATLAB = /tools/matlab
MATLAB_INCLUDES = -I/tools/matlab/extern/include
MATLAB_LDFLAGS = -L/tools/matlab/extern/lib/lnx86
MATLAB_LD_LIBRARY_PATH = /tools/matlab/extern/lib/lnx86
MATLAB_LIBS = -lmat -lmx -lmi
# INSURE_LDFLAGS = -L/tools/insure/lib.linux
# INSURE_LIBS = -linsight -linslib -ltqsiicgcc -lm
#
# Expect/TCL stuff
#
EXPECT_INCLUDES = -I/usr/include/tcl
EXPECT_LIBS = -lexpect -ltcl -lutil -ldl
#
# Archiving libs
#
AR = ar
ARFLAGS = rv
RANLIB = na
HAVE_RANLIB=FALSE
#
# yacc and lex
#
YACC = yacc
LEX = lex
SYS_YACCFLAGS = -d -t -v
SYS_LEXFLAGS =
#
# purify
#
PURE = purify
SYS_PURE_FLAGS =
# NCAR Graphics
# NCG_INC_DIR defines location of NCAR Graphics include files
# NCG_LIB_DIR defines location of NCAR Graphics libraries
# NCAR_CC defines name of script to do NCAR Graphics links
# NCAR_CPPC defines name of script to do NCAR Graphics links
NCG_INC_DIR=-I/usr/local/ncarg/include
NCG_LIB_DIR=-L/usr/local/ncarg/lib
NCAR_CC=ncargcc
NCAR_CPPC=ncarg++
# netCDF - note that your environment may not have all the listed versions
# of netCDF installed.
# Important: in Debian lenny netCDF3 was the default, starting with Debian
# squeeze netCDF4 is the default. netCDF4 has an implicit dependency
# on HDF5 and udunits that was not the case in netCDF 3. Please
# use HOST_OS set to rap_make.LINUX_64_squeeze for squeeze.
# in Debian jessie netCDF3 is no longer supported.
#
# HDF5_INCLUDES defines location of HDF5 include files
# HDF5_LD_FLAGS defines location of HDF5 linker flags
# HDF5_LIBS defines list of HDF5 libraries in correct order
# ZLIB_INCLUDES defines location of zlib include files
# ZLIB_LD_FLAGS defines location of zlib linker flags
# ZLIB_LIBS defines list of zlib libraries in correct order
# SZIP_INCLUDES defines location of SZIP include files
# SZIP_LD_FLAGS defines location of SZIP linker flags
# SZIP_LIBS defines list of SZIP libraries in correct order
# UDUNITS_INCS defines location of udunits include files
# UDUNITS_LDFLAGS defines location of udunits linkger flags
# NETCDF4_INCS defines location of netCDF 4 include files
# NETCDF4_LDFLAGS defines location of netCDF 4 libraries
# PGI_NETCDF4_INCS defines location of PGI netCDF 4 include files
# PGI_NETCDF4_LDFLAGS defines location of PGI-compiled netCDF 4 libraries
# INTEL_NETCDF4_INCS defines location of ifort netCDF 4 include files
# INTEL_NETCDF4_LDFLAGS defines location of ifort-compiled netCDF 4 libraries
HDF_INCLUDES = -I/opt/HDF4.2r1/include
HDF_LDFLAGS = -L/opt/HDF4.2r1/lib
HDF_LIBS = -lmfhdf -ldf -ljpeg -lz
ZLIB_INCLUDES=$(MY_ZLIB_INCS) -I/opt/zlib/include -I/usr/local/zlib/include
ZLIB_LDFLAGS=$(MY_ZLIB_LDFLAGS) -Wl,-rpath,/usr/local/zlib/lib -L/opt/zlib/lib -L/usr/local/zlib/lib
ZLIB_LIBS=$(MY_ZLIB_LIBS) -lz
SZIP_INCLUDES=$(MY_SZIP_INCS) -I/opt/szip/include -I/usr/local/szip/include
SZIP_LDFLAGS=$(MY_SZIP_LDFLAGS) -Wl,-rpath,/usr/local/szip/lib -L/opt/szip/lib -L/usr/local/szip/lib
SZIP_LIBS=$(MY_SZIP_LIBS) -lsz
UDUNITS_INCS=$(MY_UDUNITS_INCS) -I/opt/udunits2/include -I/usr/local/udunits2/include -I/usr/local/include
UDUNITS_LDFLAGS=$(MY_UDUNITS_LDFLAGS) -Wl,-rpath,/usr/local/udunits2/lib -L/opt/udunits2/lib -L/usr/local/udunits2/lib
HDF5_INCLUDES =$(MY_HDF5_INCS) -I/opt/hdf5/include -I/usr/local/hdf5/include $(SZIP_INCLUDES) $(ZLIB_INCLUDES)
HDF5_LDFLAGS =$(MY_HDF5_LDFLAGS) -Wl,-rpath,/usr/local/hdf5/lib -L/opt/hdf5/lib -L/usr/local/hdf5/lib $(SZIP_LDFLAGS) $(ZLIB_LDFLAGS)
HDF5_LIBS = $(MY_HDF5_LIBS) -lhdf5_cpp -lhdf5 -lhdf5_hl $(SZIP_LIBS) $(ZLIB_LIBS)
NETCDF4_INCS=$(MY_NETCDF4_INCS) -I/opt/netcdf4/include -I/usr/local/netcdf4/include -I/usr/local/include $(HDF5_INCLUDES) $(ZLIB_INCLUDES) $(UDUNITS_INCS)
NETCDF4_LDFLAGS=$(MY_NETCDF4_LDFLAGS) -Wl,-rpath,/usr/local/netcdf4/lib -L/opt/netcdf4/lib -L/usr/local/netcdf4/lib -L/usr/local/lib $(HDF5_LDFLAGS) $(UDUNITS_LDFLAGS) $(ZLIB_LDFLAGS)
PGI_NETCDF4_INCS=$(MY_PGI_NETCDF4_INCS) -I/usr/local/netcdf4-pgi/include
PGI_NETCDF4_LDFLAGS=$(MY_PGI_NETCDF4_LDFLAGS) -L/usr/local/netcdf4-pgi/lib
INTEL_NETCDF4_INCS=$(MY_INTEL_NETCDF4_INCS) -I/usr/local/netcdf4-ifort/include
INTEL_NETCDF4_LDFLAGS=$(MY_INTEL_NETCDF4_LDFLAGS) -L/usr/local/netcdf4-ifort/lib
# !!!
# These are to be removed, Only netcdf4 will be supported starting Debian Jessie !!!
NETCDF3_INCS=$(MY_NETCDF3_INCS) -I/usr/local/netcdf/include -I/usr/local/include -I/opt/include -I/opt/netcdf/include
NETCDF3_LIBS=$(MY_NETCDF3_LIBS) -L/usr/local/netcdf/lib -L/usr/local/lib -L/opt/netcdf/lib -L/opt/lib
NETCDF_INCS=$(MY_NETCDF_INCS) $(NETCDF3_INCS) $(UDUNITS_INCS) -I/opt/netcdf4/include
NETCDF_LDFLAGS=$(MY_NETCDF_LDFLAGS) $(NETCDF3_LIBS) -L/opt/netcdf4/lib
PGI_NETCDF3_INCS=$(MY_PGI_NETCDF3_INCS) -I/usr/local/netcdf-3.6.2-pgi7/include
PGI_NETCDF3_LIBS=$(MY_PGI_NETCDF3_LIBS) -L/usr/local/netcdf-3-6-2-pgi7/lib
PGI_NETCDF_INCS=$(MY_PGI_NETCDF_INCS) $(PGI_NETCDF3_INCS)
PGI_NETCDF_LDFLAGS=$(MY_PGI_NETCDF_LDFLAGS) $(PGI_NETCDF3_LIBS)
INTEL_NETCDF3_INCS=$(MY_INTEL_NETCDF3_INCS) -I/usr/local/netcdf3-ifort/include
INTEL_NETCDF3_LIBS=$(MY_INTEL_NETCDF3_LIBS) -L/usr/local/netcdf3-ifort/lib
INTEL_NETCDF_INCS=$(MY_INTEL_NETCDF_INCS) $(INTEL_NETCDF3_INCS)
INTEL_NETCDF_LDFLAGS=$(MY_INTEL_NETCDF_LDFLAGS) $(INTEL_NETCDF3_LIBS)
# To Be Removed Above !!!
NETCDF_C_LIB=-lnetcdf
NETCDF_C++_LIB=-lnetcdf_c++
NETCDF_FF_LIB=-lnetcdff
NETCDF_C_AND_C++_LIBS=-lnetcdf -lnetcdf_c++
NETCDF_C_AND_F_LIBS=-lnetcdff -lnetcdf
NETCDF4_LIBS=-lNcxx -lnetcdf_c++ -lnetcdf -lhdf5_hl_cpp -lhdf5_cpp -lhdf5_hl -lhdf5 -lz -ludunits2 -lbz2 -lexpat
NETCDF_LIB_LIST=$(NETCDF4_LIBS)
NETCDF_INCLUDES=$(NETCDF4_INCS)
NETCDF_LDFLAGS=$(NETCDF4_LDFLAGS)
#
# Java
#
JAVAC = javac
SYS_JAVA_FLAGS =
SYS_JAVA_CLASSPATH = /usr/lib/jdk1.1/bin/../classes:/usr/lib/jdk1.1/bin/../lib/classes.jar:/usr/lib/jdk1.1/bin/../lib/rt.jar:/usr/lib/jdk1.1/bin/../lib/i18n.jar:/usr/lib/jdk1.1/bin/../lib/classes.zip:/opt/java/jdk/lib/classes.zip:$(JAVA_HOME)/lib/classes.zip
JAVA_MAKE_JAR = $(RAP_BIN_DIR)/make_jar
#
# QT3 and QT4
#
QT3_INCLUDES = -I/usr/include/qt3 -I/usr/lib64/qt3/include
QT3_LDFLAGS = -L/usr/lib64/qt3/lib -L/usr/lib64/qt-3.3/lib
QT3_LIBS = -lqt-mt
QT4_INCLUDES = \
-I/usr/include/qt4 \
-I/usr/include/qt4/QtCore \
-I/usr/include/qt4/QtGui \
-I/usr/include/qt4/QtDesigner \
-I/usr/lib/qt4/include \
-I/usr/lib/qt4/include/QtCore \
-I/usr/lib/qt4/include/QtGui \
-I/usr/lib/qt4/include/QtDesigner \
-I/usr/lib/qt4/include/Qt \
-I/usr/lib64/qt4/include \
-I/usr/lib64/qt4/include/QtCore \
-I/usr/lib64/qt4/include/QtGui \
-I/usr/lib64/qt4/include/QtDesigner \
-I/usr/lib64/qt4/include/Qt \
-I/usr/include/QtCore \
-I/usr/include/QtGui \
-I/usr/include/QtDesigner \
-I/usr/local/qt4/include \
-I/usr/local/qt4/include/QtCore \
-I/usr/local/qt4/include/QtGui \
-I/usr/local/qt4/include/Qt
QT4_LDFLAGS = \
-L/usr/lib64/qt4/lib64 \
-L/usr/local/qt4/lib
QT4_LIBS = -lQtCore
#
# Jasper
#
JASPER_INCLUDES = -I/usr/local/jasper/include
JASPER_LDFLAGS = -L/usr/local/jasper/lib
JASPER_LIBS = -ljasper
# MADIS
# These have the MY_MADIS_LIBS first intentionally.
MADIS_LIBS = $(MY_MADIS_LIBS) /opt/madis-gcc/lib/madislib.a
PGI_MADIS_LIBS = $(MY_PGI_MADIS_LIBS) /opt/madis-pgi/lib/madislib.a
INTEL_MADIS_LIBS = $(MY_INTEL_MADIS_LIBS) /opt/madis-intel/lib/madislib.a