fix missing -lnetcdff when netcdf built as shared libraries #8
[WPS-merge.git] / arch / configure.defaults
blob25382bab0cf9487ccd49665ae12850a3b9b5054d
1 ########################################################################################################################
2 #ARCH   Linux ppc64le POWER Linux, XL compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
4 COMPRESSION_LIBS    = CONFIGURE_COMP_L
5 COMPRESSION_INC     = CONFIGURE_COMP_I
6 FDEFS               = CONFIGURE_FDEFS
7 NCARG_LIBS          =
8 NCARG_LIBS2         =
9 FC                  = mpifort
10 SFC                 = xlf2003_r
11 CC                  = mpicc
12 SCC                 = xlc_r
13 LD                  = $(FC)
14 FFLAGS              = -qfree=f90 -qufmt=be
15 F77FLAGS            = -qfixed -qufmt=be
16 FNGFLAGS            = $(FFLAGS)
17 LDFLAGS             =
18 CFLAGS              =
19 CPP                 = cpp -P -traditional
20 CPPFLAGS            = -Uvector -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
21 ARFLAGS             =
22 ########################################################################################################################
23 #ARCH   Linux ppc64le POWER Linux, PGI compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
25 COMPRESSION_LIBS    = CONFIGURE_COMP_L
26 COMPRESSION_INC     = CONFIGURE_COMP_I
27 FDEFS               = CONFIGURE_FDEFS
28 NCARG_LIBS          =
29 NCARG_LIBS2         =
30 FC                  = mpifort
31 SFC                 = pgfortran
32 CC                  = mpicc
33 SCC                 = pgcc
34 LD                  = $(FC)
35 FFLAGS              = -Mfree -byteswapio
36 F77FLAGS            = -Mfixed -byteswapio
37 FNGFLAGS            = $(FFLAGS)
38 LDFLAGS             =
39 CFLAGS              =
40 CPP                 = cpp -P -traditional
41 CPPFLAGS            = -Uvector -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
42 ARFLAGS             =
44 ########################################################################################################################
45 #ARCH   Linux ppc64 BG bglxf compiler with blxlc  # dmpar
47 COMPRESSION_LIBS    = -L$(JASPERLIB) -ljasper -lpng -lz
48 COMPRESSION_INC     = -I$(JASPERINC)
49 NCARG_LIBS          =
50 NCARG_LIBS2         = -L/usr/local/lib64/r4i4 -lncarg -lncarg_gks -lncarg_c \
51                       -L/usr/X11R6/lib -lX11
52 BGL_SYS             = /bgl/BlueLight/ppcfloor/bglsys
53 MPI_INC             = -I$(BGL_SYS)/include
54 MPI_LIB             = -L$(BGL_SYS)/lib -lmpich.rts -lmsglayer.rts -lrts.rts -ldevices.rts
55 FC                  = blrts_xlf90
56 SFC                 = blrts_xlf90
57 CC                  = blrts_xlc
58 LD                  = $(FC)
59 FFLAGS              = -qfree=f90 $(MPI_INC)
60 F77FLAGS            = -qfixed $(MPI_INC)
61 FNGFLAGS            = $(FFLAGS)
62 LDFLAGS             = 
63 SCC                 = cc
64 CFLAGS              = $(MPI_INC)
65 # this might be different on different systems but we want the xlf version of cpp, not Linux's
66 # on frost.ucar.edu
67 CPP                 = /opt/ibmcmp/xlf/9.1/exe/cpp -P -traditional
68 # on NYBlue
69 CPP                 = /opt/ibmcmp/xlf/bg/10.1/exe/cpp -P -traditional
70 CPPFLAGS            = -DAIX -DIBM4 -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
71 ARFLAGS             =
73 ########################################################################################################################
74 #ARCH    Linux i486 i586 i686, PGI compiler    # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
76 COMPRESSION_LIBS    = CONFIGURE_COMP_L
77 COMPRESSION_INC     = CONFIGURE_COMP_I
78 FDEFS               = CONFIGURE_FDEFS
79 NCARG_LIBS2         = -L${PGI}/linux86/6.1/lib -lpgftnrtl -lpgc \
80                       -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -lg2c
81 SFC                 = pgf90
82 SCC                 = pgcc
83 DM_FC               = mpif90
84 DM_CC               = mpicc
85 FC                  = CONFIGURE_FC
86 CC                  = CONFIGURE_CC
87 LD                  = $(FC)
88 FFLAGS              = -Mfree -byteswapio -O
89 F77FLAGS            = -Mfixed -byteswapio -O
90 FCSUFFIX            =
91 FNGFLAGS            = $(FFLAGS)
92 LDFLAGS             =
93 CFLAGS              = -O    
94 CPP                 = /lib/cpp -P -traditional
95 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
96 ARFLAGS             =
97 CC_TOOLS            = 
99 ########################################################################################################################
100 #ARCH    Linux i486 i586 i686, Intel compiler    # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
102 COMPRESSION_LIBS    = CONFIGURE_COMP_L
103 COMPRESSION_INC     = CONFIGURE_COMP_I
104 FDEFS               = CONFIGURE_FDEFS
105 SFC                 = ifort
106 SCC                 = icc
107 DM_FC               = mpif90
108 DM_CC               = mpicc
109 FC                  = CONFIGURE_FC
110 CC                  = CONFIGURE_CC 
111 LD                  = $(FC)
112 FFLAGS              = -FR -convert big_endian
113 F77FLAGS            = -FI -convert big_endian
114 FCSUFFIX            =
115 FNGFLAGS            = $(FFLAGS)
116 LDFLAGS             =
117 CFLAGS              = -w
118 CPP                 = /lib/cpp -P -traditional
119 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
120 ARFLAGS             =
121 CC_TOOLS            =
123 ########################################################################################################################
124 #ARCH    Linux i486 i586 i686, g95   # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
126 COMPRESSION_LIBS    = CONFIGURE_COMP_L
127 COMPRESSION_INC     = CONFIGURE_COMP_I
128 FDEFS               = CONFIGURE_FDEFS
129 SFC                 = g95
130 SCC                 = gcc
131 DM_FC               = mpif90
132 DM_CC               = mpicc
133 FC                  = CONFIGURE_FC
134 CC                  = CONFIGURE_CC 
135 LD                  = $(FC)
136 FFLAGS              = -ffree-form -O -fendian=big
137 F77FLAGS            = -ffixed-form -O -fendian=big
138 FCSUFFIX            = 
139 FNGFLAGS            = $(FFLAGS)
140 LDFLAGS             = 
141 CFLAGS              = 
142 CPP                 = /usr/bin/cpp -P -traditional
143 CPPFLAGS            = -D_DOUBLEUNDERSCORE -DBYTESWAP -DLINUXG95 -DIO_NETCDF -DBIT32 CONFIGURE_MPI
144 ARFLAGS             =
145 CC_TOOLS            = 
147 ########################################################################################################################
148 #ARCH    Linux i486 i586 i686, gfortran   # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
150 COMPRESSION_LIBS    = CONFIGURE_COMP_L
151 COMPRESSION_INC     = CONFIGURE_COMP_I
152 FDEFS               = CONFIGURE_FDEFS
153 SFC                 = gfortran
154 SCC                 = gcc
155 DM_FC               = mpif90
156 DM_CC               = mpicc
157 FC                  = CONFIGURE_FC 
158 CC                  = CONFIGURE_CC
159 LD                  = $(FC)
160 FFLAGS              = -ffree-form -O -fconvert=big-endian -frecord-marker=4
161 F77FLAGS            = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
162 FCCOMPAT            = CONFIGURE_COMPAT_FLAGS
163 FCSUFFIX            = 
164 FNGFLAGS            = $(FFLAGS)
165 LDFLAGS             =
166 CFLAGS              =
167 CPP                 = /usr/bin/cpp -P -traditional
168 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL CONFIGURE_MPI
169 RANLIB              = ranlib
171 ########################################################################################################################
172 #ARCH    Linux x86_64, gfortran   # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
174 COMPRESSION_LIBS    = CONFIGURE_COMP_L
175 COMPRESSION_INC     = CONFIGURE_COMP_I
176 FDEFS               = CONFIGURE_FDEFS
177 SFC                 = gfortran
178 SCC                 = gcc
179 DM_FC               = mpif90
180 DM_CC               = mpicc
181 FC                  = CONFIGURE_FC 
182 CC                  = CONFIGURE_CC
183 LD                  = $(FC)
184 FFLAGS              = -ffree-form -O -fconvert=big-endian -frecord-marker=4
185 F77FLAGS            = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
186 FCCOMPAT            = CONFIGURE_COMPAT_FLAGS
187 FCSUFFIX            = 
188 FNGFLAGS            = $(FFLAGS)
189 LDFLAGS             =
190 CFLAGS              =
191 CPP                 = /usr/bin/cpp -P -traditional
192 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL CONFIGURE_MPI
193 RANLIB              = ranlib 
195 ########################################################################################################################
196 #ARCH    Linux x86_64, PGI compiler  # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
198 COMPRESSION_LIBS    = CONFIGURE_COMP_L
199 COMPRESSION_INC     = CONFIGURE_COMP_I
200 FDEFS               = CONFIGURE_FDEFS
201 NCARG_LIBS2         = -L${PGI}/linux86-64/5.2/lib -lpgftnrtl -lpgc \
202                       -L/usr/lib64 -lg2c
203 SFC                 = pgf90
204 SCC                 = pgcc
205 DM_FC               = mpif90
206 DM_CC               = mpicc
207 FC                  = CONFIGURE_FC
208 CC                  = CONFIGURE_CC
209 LD                  = $(FC) 
210 FFLAGS              = -Mfree -byteswapio -O
211 F77FLAGS            = -Mfixed -byteswapio -O
212 FCSUFFIX            = 
213 FNGFLAGS            = $(FFLAGS)
214 LDFLAGS             = 
215 CFLAGS              = -O
216 CPP                 = /lib/cpp -P -traditional
217 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
218 ARFLAGS             =
219 CC_TOOLS            = 
221 ########################################################################################################################
222 #ARCH    Linux x86_64, PGI compiler, SGI MPT  # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
224 COMPRESSION_LIBS    = CONFIGURE_COMP_L
225 COMPRESSION_INC     = CONFIGURE_COMP_I
226 FDEFS               = CONFIGURE_FDEFS
227 NCARG_LIBS2         = -L${PGI}/linux86-64/5.2/lib -lpgftnrtl -lpgc \
228                       -L/usr/lib64 -lg2c
229 SFC                 = pgf90
230 SCC                 = pgcc
231 DM_FC               = $(SFC) -I$(MPI_ROOT)/include
232 DM_CC               = $(SCC) -I$(MPI_ROOT)/include
233 FC                  = CONFIGURE_FC
234 CC                  = CONFIGURE_CC
235 LD                  = $(FC) 
236 FFLAGS              = -Mfree -byteswapio -O
237 F77FLAGS            = -Mfixed -byteswapio -O
238 FCSUFFIX            = 
239 FNGFLAGS            = $(FFLAGS)
240 LDFLAGS             = -L$(MPI_ROOT)/lib -lmpi
241 CFLAGS              = -w -O3
242 CPP                 = /lib/cpp -P -traditional
243 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
244 ARFLAGS             =
245 CC_TOOLS            = 
247 ########################################################################################################################
248 #ARCH   Linux x86_64, IA64 and Opteron   # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
250 COMPRESSION_LIBS    = CONFIGURE_COMP_L
251 COMPRESSION_INC     = CONFIGURE_COMP_I
252 FDEFS               = CONFIGURE_FDEFS
253 SFC                 = pathf90
254 SCC                 = pathcc
255 DM_FC               = mpif90 -f90=pathf90
256 DM_CC               = mpicc -cc=pathcc
257 FC                  = CONFIGURE_FC
258 CC                  = CONFIGURE_CC
259 LD                  = $(FC)
260 FFLAGS              = -freeform -fno-second-underscore -byteswapio -O
261 F77FLAGS            = -byteswapio -fno-second-underscore -O
262 FCSUFFIX            = 
263 FNGFLAGS            = $(FFLAGS)
264 LDFLAGS             = 
265 CFLAGS              = -O
266 CPP                 = /lib/cpp -P -traditional
267 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
268 ARFLAGS             =
269 CC_TOOLS            = 
271 ########################################################################################################################
272 #ARCH    Linux x86_64, Intel compiler   # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
274 COMPRESSION_LIBS    = CONFIGURE_COMP_L
275 COMPRESSION_INC     = CONFIGURE_COMP_I
276 FDEFS               = CONFIGURE_FDEFS
277 SFC                 = ifort
278 SCC                 = icc
279 DM_FC               = mpif90
280 DM_CC               = mpicc
281 FC                  = CONFIGURE_FC
282 CC                  = CONFIGURE_CC
283 LD                  = $(FC)
284 FFLAGS              = -FR -convert big_endian
285 F77FLAGS            = -FI -convert big_endian
286 FCSUFFIX            = 
287 FNGFLAGS            = $(FFLAGS)
288 LDFLAGS             = 
289 CFLAGS              = -w
290 CPP                 = /lib/cpp -P -traditional
291 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
292 ARFLAGS             =
293 CC_TOOLS            = 
295 ########################################################################################################################
296 #ARCH    Linux x86_64, Intel compiler, SGI MPT   # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
298 COMPRESSION_LIBS    = CONFIGURE_COMP_L
299 COMPRESSION_INC     = CONFIGURE_COMP_I
300 FDEFS               = CONFIGURE_FDEFS
301 SFC                 = ifort
302 SCC                 = icc
303 DM_FC               = $(SFC) -I$(MPI_ROOT)/include
304 DM_CC               = $(SCC) -I$(MPI_ROOT)/include
305 FC                  = CONFIGURE_FC
306 CC                  = CONFIGURE_CC
307 LD                  = $(FC)
308 FFLAGS              = -FR -convert big_endian
309 F77FLAGS            = -FI -convert big_endian
310 FCSUFFIX            = 
311 FNGFLAGS            = $(FFLAGS)
312 LDFLAGS             = -L$(MPI_ROOT)/lib -lmpi
313 CFLAGS              = -w
314 CPP                 = /lib/cpp -P -traditional
315 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
316 ARFLAGS             =
317 CC_TOOLS            = 
319 ########################################################################################################################
320 #ARCH    Linux x86_64, Intel compiler, IBM POE   # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
322 COMPRESSION_LIBS    = CONFIGURE_COMP_L
323 COMPRESSION_INC     = CONFIGURE_COMP_I
324 FDEFS               = CONFIGURE_FDEFS
325 SFC                 = ifort
326 SCC                 = icc
327 DM_FC               = mpfort
328 DM_CC               = mpcc
329 FC                  = CONFIGURE_FC
330 CC                  = CONFIGURE_CC
331 LD                  = $(FC)
332 FFLAGS              = -FR -convert big_endian
333 F77FLAGS            = -FI -convert big_endian
334 FCSUFFIX            = 
335 FNGFLAGS            = $(FFLAGS)
336 LDFLAGS             = 
337 CFLAGS              = -w
338 CPP                 = /lib/cpp -P -traditional
339 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
340 ARFLAGS             =
341 CC_TOOLS            = 
343 ########################################################################################################################
344 #ARCH    Darwin Intel PGI compiler  # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
346 COMPRESSION_LIBS    = CONFIGURE_COMP_L
347 COMPRESSION_INC     = CONFIGURE_COMP_I
348 FDEFS               = CONFIGURE_FDEFS
349 SFC                 = pgf90
350 SCC                 = pgcc
351 DM_FC               = mpif90
352 DM_CC               = mpicc
353 FC                  = CONFIGURE_FC
354 CC                  = CONFIGURE_CC
355 LD                  = $(FC)
356 FFLAGS              = -Mfree -byteswapio -O2
357 F77FLAGS            = -Mfixed -byteswapio -O2
358 FCSUFFIX            = 
359 FNGFLAGS            = $(FFLAGS)
360 LDFLAGS             = -g
361 CFLAGS              = -O
362 CPP                 = /usr/bin/cpp -P -traditional
363 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -DMACOS CONFIGURE_MPI
364 ARFLAGS             =
365 RANLIB              = ranlib
366 CC_TOOLS            = 
368 ########################################################################################################################
369 #ARCH    Darwin Intel PGI compiler; optional DM -f90=pgf90  # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
371 COMPRESSION_LIBS    = CONFIGURE_COMP_L
372 COMPRESSION_INC     = CONFIGURE_COMP_I
373 FDEFS               = CONFIGURE_FDEFS
374 SFC                 = pgf90
375 SCC                 = pgcc
376 DM_FC               = mpif90
377 DM_CC               = mpicc
378 FC                  = CONFIGURE_FC
379 CC                  = CONFIGURE_CC
380 LD                  = $(FC)
381 FFLAGS              = -Mfree -byteswapio -O2
382 F77FLAGS            = -Mfixed -byteswapio -O2
383 FCSUFFIX            = 
384 FNGFLAGS            = $(FFLAGS)
385 LDFLAGS             = -g
386 CFLAGS              = -O
387 CPP                 = /usr/bin/cpp -P -traditional
388 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -DMACOS CONFIGURE_MPI
389 ARFLAGS             =
390 RANLIB              = ranlib
391 CC_TOOLS            = 
393 ########################################################################################################################
394 #ARCH   Darwin Intel Intel compiler  # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
396 COMPRESSION_LIBS    = CONFIGURE_COMP_L
397 COMPRESSION_INC     = CONFIGURE_COMP_I
398 FDEFS               = CONFIGURE_FDEFS
399 SFC                 = ifort
400 SCC                 = icc
401 DM_FC               = mpif90
402 DM_CC               = mpicc
403 FC                  = CONFIGURE_FC
404 CC                  = CONFIGURE_CC
405 LD                  = $(FC)
406 FFLAGS              = -FR -convert big_endian
407 F77FLAGS            = -FI -convert big_endian
408 FCSUFFIX            = 
409 FNGFLAGS            = $(FFLAGS)
410 LDFLAGS             = 
411 CFLAGS              = -w
412 CPP                 = /usr/bin/cpp -P -traditional
413 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -DMACOS CONFIGURE_MPI
414 ARFLAGS             =
415 CC_TOOLS            = 
417 ########################################################################################################################
418 #ARCH    Darwin Intel g95 compiler    # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
420 COMPRESSION_LIBS    = CONFIGURE_COMP_L
421 COMPRESSION_INC     = CONFIGURE_COMP_I
422 FDEFS               = CONFIGURE_FDEFS
423 SFC                 = g95
424 SCC                 = gcc
425 DM_FC               = mpif90 -f90=g95
426 DM_CC               = mpicc -cc=gcc
427 FC                  = CONFIGURE_FC
428 CC                  = CONFIGURE_CC
429 LD                  = $(FC)
430 FFLAGS              = -ffree-form -g -fendian=big
431 F77FLAGS            = -ffixed-form -g -fendian=big
432 FCSUFFIX            = 
433 FNGFLAGS            = $(FFLAGS)
434 LDFLAGS             = -g
435 CFLAGS              = -g
436 CPP                 = /usr/bin/cpp -P -traditional
437 CPPFLAGS            = -D_DOUBLEUNDERSCORE -DBYTESWAP -DIO_NETCDF -DBIT32 -DMACOS  CONFIGURE_MPI
438 ARFLAGS             =
439 RANLIB              = ranlib
440 CC_TOOLS            = 
442 ########################################################################################################################
443 #ARCH    Darwin Intel gfortran/gcc   # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
445 COMPRESSION_LIBS    = CONFIGURE_COMP_L
446 COMPRESSION_INC     = CONFIGURE_COMP_I
447 FDEFS               = CONFIGURE_FDEFS
448 SFC                 = gfortran
449 SCC                 = gcc
450 DM_FC               = mpif90
451 DM_CC               = mpicc
452 FC                  = CONFIGURE_FC
453 CC                  = CONFIGURE_CC
454 LD                  = $(FC)
455 FFLAGS              = -ffree-form -O -fconvert=big-endian -frecord-marker=4
456 F77FLAGS            = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
457 FCCOMPAT            = CONFIGURE_COMPAT_FLAGS
458 FCSUFFIX            = 
459 FNGFLAGS            = $(FFLAGS)
460 LDFLAGS             =
461 CFLAGS              =
462 CPP                 = /usr/bin/cpp -P -traditional
463 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DIO_NETCDF -DBIT32 -DMACOS -DNO_SIGNAL CONFIGURE_MPI
464 ARFLAGS             =
465 RANLIB              = ranlib
466 CC_TOOLS            =
468 ########################################################################################################################
469 #ARCH    Darwin Intel gfortran/clang   # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
471 COMPRESSION_LIBS    = CONFIGURE_COMP_L
472 COMPRESSION_INC     = CONFIGURE_COMP_I
473 FDEFS               = CONFIGURE_FDEFS
474 SFC                 = gfortran
475 SCC                 = clang
476 DM_FC               = mpif90
477 DM_CC               = mpicc
478 FC                  = CONFIGURE_FC
479 CC                  = CONFIGURE_CC
480 LD                  = $(FC)
481 FFLAGS              = -ffree-form -O -fconvert=big-endian -frecord-marker=4
482 F77FLAGS            = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
483 FCCOMPAT            = CONFIGURE_COMPAT_FLAGS
484 FCSUFFIX            =
485 FNGFLAGS            = $(FFLAGS)
486 # For a WRF OpenMP build, add the gomp library for WPS
487 LDFLAGS             = # -lgomp 
488 CFLAGS              =
489 CPP                 = /usr/bin/cpp -P -traditional
490 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DIO_NETCDF -DBIT32 -DMACOS -DNO_SIGNAL CONFIGURE_MPI
491 ARFLAGS             =
492 RANLIB              = ranlib
493 CC_TOOLS            =
495 ########################################################################################################################
496 #ARCH    Darwin PPC xlf   # serial serial_NO_GRIB2
498 COMPRESSION_LIBS    = CONFIGURE_COMP_L
499 COMPRESSION_INC     = CONFIGURE_COMP_I
500 FDEFS               = CONFIGURE_FDEFS
501 NCARG_LIBS          = -L$(NCARG_ROOT)/lib -lncarg -lcgm -lncarg_gks -lncarg_c \
502                       -L/usr/X11R6/lib -lX11 \
503                       -L/opt/ibmcmp/xlf/8.1/lib -lg2c
504 SFC                 = xlf90_r
505 SCC                 = gcc-3.3 # NCAR silly thing
506 SCC                 = cc
507 DM_FC               = mpif90 -f90=$(SFC)
508 DM_CC               = mpicc -cc=$(SCC)
509 FC                  = CONFIGURE_FC
510 CC                  = CONFIGURE_CC
511 LD                  = $(FC)
512 FFLAGS              = -qfree
513 F77FLAGS            = -qfixed
514 FCSUFFIX            = 
515 FNGFLAGS            = $(FFLAGS) -qextname
516 LDFLAGS             = -Wl,-stack_size,10000000,-stack_addr,0xc000000
517 CFLAGS              = -O
518 CPP                 = /usr/bin/cpp -P -traditional
519 CPPFLAGS            = -DAIX -DMACOS -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
520 ARFLAGS             =
521 RANLIB              = ranlib
522 CC_TOOLS            = 
523 #CC                 = gcc-3.3 # NCAR silly thing
525 ########################################################################################################################
526 #ARCH    Darwin PPC xlf gcc3.3 SystemStubs  # serial serial_NO_GRIB2
528 COMPRESSION_LIBS    = CONFIGURE_COMP_L
529 COMPRESSION_INC     = CONFIGURE_COMP_I
530 FDEFS               = CONFIGURE_FDEFS
531 NCARG_LIBS          = -L$(NCARG_ROOT)/lib -lncarg -lcgm -lncarg_gks -lncarg_c \
532                       -L/usr/X11R6/lib -lX11 \
533                       -L/opt/ibmcmp/xlf/8.1/lib -lg2c
534 SFC                 = xlf90_r
535 SCC                 = gcc-3.3
536 DM_FC               = mpif90 -f90=$(SFC)
537 DM_CC               = mpicc -cc=$(SCC)
538 FFLAGS              = -qfree
539 F77FLAGS            = -qfixed
540 FNGFLAGS            = $(FFLAGS) -qextname
541 LDFLAGS             = -Wl,-stack_size,10000000,-stack_addr,0xc0000000 -L/usr/lib -lSystemStubs
542 FC                  = CONFIGURE_FC
543 CC                  = CONFIGURE_CC
544 CFLAGS              = -O
545 CPP                 = /usr/bin/cpp -P -traditional
546 CPPFLAGS            = -DAIX -DMACOS -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
547 RANLIB              = ranlib
549 ########################################################################################################################
550 #ARCH    Darwin PPC g95   # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
552 COMPRESSION_LIBS    = CONFIGURE_COMP_L
553 COMPRESSION_INC     = CONFIGURE_COMP_I
554 FDEFS               = CONFIGURE_FDEFS
555 SFC                 = g95
556 SCC                 = gcc
557 DM_FC               = mpif90 -f90=g95
558 DM_CC               = mpicc -cc=gcc
559 FC                  = CONFIGURE_FC
560 CC                  = CONFIGURE_CC
561 LD                  = $(FC)
562 FFLAGS              = -ffree-form -g -fno-second-underscore
563 F77FLAGS            = -ffixed-form -g -fno-second-underscore
564 FCSUFFIX            = 
565 FNGFLAGS            = $(FFLAGS)
566 LDFLAGS             = -g
567 CFLAGS              = -g
568 CPP                 = /usr/bin/cpp -P -traditional
569 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUXG95 -DIO_NETCDF -DBIT32 CONFIGURE_MPI
570 ARFLAGS             =
571 RANLIB              = ranlib
572 CC_TOOLS            =
574 ########################################################################################################################
575 #ARCH    AIX      # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
577 COMPRESSION_LIBS    = CONFIGURE_COMP_L
578 COMPRESSION_INC     = CONFIGURE_COMP_I
579 FDEFS               = CONFIGURE_FDEFS
580 NCARG_LIBS          =
581 NCARG_LIBS2         = -L/usr/local/lib64/r4i4 -lncarg -lncarg_gks -lncarg_c \
582                       -L/usr/X11R6/lib -lX11 -lpng_ncl -lz_ncl
583 SFC                 = xlf90_r
584 SCC                 = cc
585 DM_FC               = mpxlf90_r
586 DM_CC               = mpcc_r
587 FC                  = CONFIGURE_FC
588 CC                  = CONFIGURE_CC
589 LD                  = $(FC)
590 AR                  = ar
591 FFLAGS              = -qfree=f90
592 F77FLAGS            = -qfixed
593 FCSUFFIX            = -qsuffix=f=f90
594 FNGFLAGS            = $(FFLAGS)
595 LDFLAGS             =
596 CFLAGS              =
597 CPP                 = /usr/lib/cpp -P -traditional
598 CPPFLAGS            = -DAIX -DIBM4 -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
599 ARFLAGS             =
601 ########################################################################################################################
602 #ARCH    Compaq OSF1 alpha    # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
604 COMPRESSION_LIBS    = CONFIGURE_COMP_L
605 COMPRESSION_INC     = CONFIGURE_COMP_I
606 FDEFS               = CONFIGURE_FDEFS 
607 SFC                 = f90
608 SCC                 = cc
609 DM_FC               = mpif90
610 DM_CC               = mpicc
611 FC                  = CONFIGURE_FC
612 CC                  = CONFIGURE_FC
613 LD                  = $(FC)
614 FFLAGS              = -free -convert big_endian
615 F77FLAGS            = -convert big_endian
616 FNGFLAGS            = $(FFLAGS)
617 LDFLAGS             =    
618 CFLAGS              =    
619 CPP                 = /usr/bin/cpp -P -traditional
620 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DALPHA -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32  CONFIGURE_MPI
621 ARFLAGS             =
623 ########################################################################################################################
624 #ARCH    Linux x86_64 g95 compiler    # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
626 COMPRESSION_LIBS    = CONFIGURE_COMP_L
627 COMPRESSION_INC     = CONFIGURE_COMP_I
628 FDEFS               = CONFIGURE_FDEFS
629 SFC                 = g95
630 SCC                 = gcc
631 DM_FC               = mpif90 -f90=$(SFC)
632 DM_CC               = mpicc -cc=$(SCC)
633 FC                  = CONFIGURE_FC
634 CC                  = CONFIGURE_CC
635 LD                  = $(FC)
636 FFLAGS              = -ffree-form -g -fno-second-underscore
637 F77FLAGS            = -ffixed-form -g -fno-second-underscore
638 FCSUFFIX            = 
639 FNGFLAGS            = $(FFLAGS)
640 LDFLAGS             = -g
641 CFLAGS              = -g
642 CPP                 = /usr/bin/cpp -P -traditional
643 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUXG95 -DIO_NETCDF -DBIT32 CONFIGURE_MPI
644 ARFLAGS             =
646 ########################################################################################################################
647 #ARCH    CYGWIN_NT i686 x86_64 PGI compiler on Windows   # serial_NO_GRIB2 dmpar_NO_GRIB2
649 COMPRESSION_LIBS    = CONFIGURE_COMP_L
650 COMPRESSION_INC     = CONFIGURE_COMP_I
651 FDEFS               = CONFIGURE_FDEFS
652 #NCARG_LIBS2        = -L${PGI}/linux86/6.1/lib -lpgftnrtl -lpgc \
653 #                     -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -lg2c
654 WRF_LIB             = $(WRF_DIR)/external/io_grib1/libio_grib1.a \
655                       $(WRF_DIR)/external/io_grib_share/libio_grib_share.a \
656                       $(WRF_DIR)/external/io_int/libwrfio_int.a \
657                       $(WRF_DIR)/external/io_netcdf/libwrfio_nf.a \
658                       $(NETCDF)/lib/libnetcdf.lib
659 SFC                 = pgf90
660 SCC                 = pgcc
661 DM_FC               = pgf90 -Mmpi=msmpi
662 DM_CC               = pgcc -Mmpi=msmpi
663 FC                  = CONFIGURE_FC
664 CC                  = CONFIGURE_CC
665 LD                  = $(FC)
666 FFLAGS              = -Mfree -g
667 F77FLAGS            = -Mfixed -g
668 FCSUFFIX            = 
669 FNGFLAGS            = $(FFLAGS)
670 LDFLAGS             = -g
671 CFLAGS              = -g
672 CPP                 = cpp -P -traditional
673 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DWIN32 -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
674 ARFLAGS             =
676 ########################################################################################################################
677 #ARCH    SGI IRIX64     # serial serial_NO_GRIB2
679 COMPRESSION_LIBS    = CONFIGURE_COMP_L
680 COMPRESSION_INC     = CONFIGURE_COMP_I
681 FDEFS               = CONFIGURE_FDEFS
682 SFC                 = f90
683 SCC                 = cc
684 DM_FC               = mpif90
685 DM_CC               = mpicc
686 FC                  = CONFIGURE_FC
687 CC                  = CONFIGURE_CC
688 LD                  = $(FC)
689 FFLAGS              = -freeform -64
690 F77FLAGS            = -64
691 FCSUFFIX            = 
692 FNGFLAGS            = $(FFLAGS)
693 LDFLAGS             = -64
694 CFLAGS              = -64
695 CPP                 = /lib/cpp -P -traditional
696 CPPFLAGS            = -D_UNDERSCORE -DSGI -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
697 ARFLAGS             =
698 CC_TOOLS            = 
700 ########################################################################################################################
701 #ARCH    SGI Altix 4700 Linux ia64 Intel   # dmpar
703 #COMPRESSION_LIBS   = -L/contrib/jasper/lib -ljasper \
704 #                     -L/contrib/libpng/lib -lpng \
705 #                     -L/contrib/zlib/lib -lz
706 #COMPRESSION_INC    = -I/contrib/zlib/include \
707 #                     -I/contrib/jasper/include \
708 #                     -I/contrib/libpng/include
709 COMPRESSION_LIBS    = CONFIGURE_COMP_L
710 COMPRESSION_INC     = CONFIGURE_COMP_I
711 FDEFS               = CONFIGURE_FDEFS
712 SFC                 = ifort
713 SCC                 = icc
714 DM_FC               = ifort -lmpi
715 DM_CC               = icc -lmpi
716 FC                  = CONFIGURE_FC
717 CC                  = CONFIGURE_CC
718 LD                  = $(FC)
719 FFLAGS              = -FR -convert big_endian
720 F77FLAGS            = -FI -convert big_endian
721 FCSUFFIX            = 
722 FNGFLAGS            = 
723 LDFLAGS             = 
724 CFLAGS              = -w
725 CPP                 = /lib/cpp -P -traditional
726 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
727 ARFLAGS             =
728 CC_TOOLS            = 
730 ########################################################################################################################
731 #ARCH    Sun SunOS    # serial serial_NO_GRIB2
733 COMPRESSION_LIBS    = CONFIGURE_COMP_L
734 COMPRESSION_INC     = CONFIGURE_COMP_I
735 FDEFS               = CONFIGURE_FDEFS
736 SFC                 = f90
737 SCC                 = cc
738 DM_FC               = 
739 DM_CC               = 
740 FC                  = CONFIGURE_FC
741 CC                  = CONFIGURE_CC
742 LD                  = $(FC)
743 FFLAGS              = -free
744 F77FLAGS            = 
745 FCSUFFIX            = 
746 FNGFLAGS            = $(FFLAGS)
747 LDFLAGS             = 
748 CFLAGS              = -O
749 CPP                 = /usr/ccs/lib/cpp -P -traditional
750 CPPFLAGS            = -D_UNDERSCORE -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
751 ARFLAGS             =
753 ########################################################################################################################
754 #ARCH   Cray XE/XC CLE/Linux x86_64, Cray compiler  # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
756 COMPRESSION_LIBS    = CONFIGURE_COMP_L
757 COMPRESSION_INC     = CONFIGURE_COMP_I
758 FDEFS               = CONFIGURE_FDEFS
759 SFC                 = ftn
760 SCC                 = gcc
761 DM_FC               = ftn
762 DM_CC               = cc
763 FC                  = CONFIGURE_FC
764 CC                  = CONFIGURE_CC
765 LD                  = $(FC)
766 FFLAGS              = -N255 -f free -h byteswapio
767 F77FLAGS            = -N255 -f fixed -h byteswapio
768 FCSUFFIX            =
769 FNGFLAGS            = $(FFLAGS)
770 LDFLAGS             =
771 CFLAGS              = -O2
772 CPP                 = /lib/cpp -P -traditional
773 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
774 ARFLAGS             =
775 CC_TOOLS            =
777 ########################################################################################################################
778 #ARCH   Cray XC CLE/Linux x86_64, Intel compiler  # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
780 COMPRESSION_LIBS    = CONFIGURE_COMP_L
781 COMPRESSION_INC     = CONFIGURE_COMP_I
782 FDEFS               = CONFIGURE_FDEFS
783 SFC                 = ftn
784 SCC                 = cc
785 DM_FC               = $(SFC)
786 DM_CC               = $(SCC) 
787 FC                  = CONFIGURE_FC
788 CC                  = CONFIGURE_CC
789 LD                  = $(FC)
790 FFLAGS              = -FR -convert big_endian
791 F77FLAGS            = -FI -convert big_endian
792 FCSUFFIX            =
793 FNGFLAGS            = $(FFLAGS)
794 LDFLAGS             =
795 CFLAGS              =
796 CPP                 = /lib/cpp -P -traditional
797 CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
798 ARFLAGS             =
799 CC_TOOLS            =
801 ########################################################################################################################
802 #ARCH    NULL   # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
804 #DM_FC              = 
805 #DM_CC              = 
806 #FC                 = 
807 #SFC                = 
808 #LD                 = 
809 #RWORDSIZE          = 
810 #PROMOTION          = 
811 #FCOPTIM            = 
812 #FCREDUCEDOPT       = 
813 #FCNOOPT            = 
814 #FCDEBUG            = 
815 #FORMAT_FIXED       = 
816 #FORMAT_FREE        = 
817 #FCSUFFIX           = 
818 #BYTESWAPIO         = 
819 #FCBASEOPTS         = 
820 #MODULE_SRCH_FLAG   =
821 #TRADFLAG           = 
822 #CPP                = 
823 #AR                 = 
824 #FFLAGS             = 
825 #F77FLAGS           = 
826 #FCSUFFIX           = 
827 #FNGFLAGS           = 
828 #LDFLAGS            = 
829 #CC                 = 
830 #SCC                = 
831 #CFLAGS             =
832 #CPP                = 
833 #CPPFLAGS           = 
834 #ARFLAGS            =
835 #RANLIB              = 
836 #CC_TOOLS            =