1 ########################################################################################################################
2 #ARCH Linux ppc64 BG bglxf compiler with blxlc # dmpar
4 COMPRESSION_LIBS = -L$(JASPERLIB) -ljasper -lpng -lz
5 COMPRESSION_INC = -I$(JASPERINC)
7 NCARG_LIBS2 = -L/usr/local/lib64/r4i4 -lncarg -lncarg_gks -lncarg_c \
9 BGL_SYS = /bgl/BlueLight/ppcfloor/bglsys
10 MPI_INC = -I$(BGL_SYS)/include
11 MPI_LIB = -L$(BGL_SYS)/lib -lmpich.rts -lmsglayer.rts -lrts.rts -ldevices.rts
16 FFLAGS = -qfree=f90 $(MPI_INC)
17 F77FLAGS = -qfixed $(MPI_INC)
22 # this might be different on different systems but we want the xlf version of cpp, not Linux's
24 CPP = /opt/ibmcmp/xlf/9.1/exe/cpp -C -P
26 CPP = /opt/ibmcmp/xlf/bg/10.1/exe/cpp -C -P
27 CPPFLAGS = -DAIX -DIBM4 -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
30 ########################################################################################################################
31 #ARCH Linux i486 i586 i686, PGI compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
33 COMPRESSION_LIBS = CONFIGURE_COMP_L
34 COMPRESSION_INC = CONFIGURE_COMP_I
35 FDEFS = CONFIGURE_FDEFS
36 NCARG_LIBS2 = -L${PGI}/linux86/6.1/lib -lpgftnrtl -lpgc \
37 -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -lg2c
40 DM_FC = mpif90 -f90=pgf90
45 FFLAGS = -Mfree -byteswapio -O
46 F77FLAGS = -Mfixed -byteswapio -O
51 CPP = /lib/cpp -C -P -traditional
52 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
56 ########################################################################################################################
57 #ARCH Linux i486 i586 i686, Intel compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
59 COMPRESSION_LIBS = CONFIGURE_COMP_L
60 COMPRESSION_INC = CONFIGURE_COMP_I
61 FDEFS = CONFIGURE_FDEFS
64 DM_FC = mpif90 -f90=ifort
69 FFLAGS = -FR -convert big_endian
70 F77FLAGS = -FI -convert big_endian
75 CPP = /lib/cpp -C -P -traditional
76 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
80 ########################################################################################################################
81 #ARCH Linux i486 i586 i686, g95 # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
83 COMPRESSION_LIBS = CONFIGURE_COMP_L
84 COMPRESSION_INC = CONFIGURE_COMP_I
85 FDEFS = CONFIGURE_FDEFS
88 DM_FC = mpif90 -f90=g95
93 FFLAGS = -ffree-form -O -fendian=big
94 F77FLAGS = -ffixed-form -O -fendian=big
99 CPP = /usr/bin/cpp -C -P -traditional
100 CPPFLAGS = -D_DOUBLEUNDERSCORE -DBYTESWAP -DLINUXG95 -DIO_NETCDF -DBIT32 CONFIGURE_MPI
104 ########################################################################################################################
105 #ARCH Linux i486 i586 i686, gfortran # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
107 COMPRESSION_LIBS = CONFIGURE_COMP_L
108 COMPRESSION_INC = CONFIGURE_COMP_I
109 FDEFS = CONFIGURE_FDEFS
112 DM_FC = mpif90 -f90=gfortran
113 DM_CC = mpicc -cc=gcc
117 FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4
118 F77FLAGS = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
123 CPP = /usr/bin/cpp -C -P -traditional
124 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL CONFIGURE_MPI
127 ########################################################################################################################
128 #ARCH Linux x86_64, gfortran # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
130 COMPRESSION_LIBS = CONFIGURE_COMP_L
131 COMPRESSION_INC = CONFIGURE_COMP_I
132 FDEFS = CONFIGURE_FDEFS
135 DM_FC = mpif90 -f90=gfortran
136 DM_CC = mpicc -cc=gcc
140 FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4
141 F77FLAGS = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
146 CPP = /usr/bin/cpp -C -P -traditional
147 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL CONFIGURE_MPI
150 ########################################################################################################################
151 #ARCH Linux x86_64, PGI compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
153 COMPRESSION_LIBS = CONFIGURE_COMP_L
154 COMPRESSION_INC = CONFIGURE_COMP_I
155 FDEFS = CONFIGURE_FDEFS
156 NCARG_LIBS2 = -L${PGI}/linux86-64/5.2/lib -lpgftnrtl -lpgc \
160 DM_FC = mpif90 -f90=pgf90
161 DM_CC = mpicc -cc=pgcc
165 FFLAGS = -Mfree -byteswapio -O
166 F77FLAGS = -Mfixed -byteswapio -O
171 CPP = /lib/cpp -C -P -traditional
172 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
176 ########################################################################################################################
177 #ARCH Linux x86_64, PGI compiler, SGI MPT # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
179 COMPRESSION_LIBS = CONFIGURE_COMP_L
180 COMPRESSION_INC = CONFIGURE_COMP_I
181 FDEFS = CONFIGURE_FDEFS
182 NCARG_LIBS2 = -L${PGI}/linux86-64/5.2/lib -lpgftnrtl -lpgc \
186 DM_FC = $(SFC) -I$(MPI_ROOT)/include
187 DM_CC = $(SCC) -I$(MPI_ROOT)/include
191 FFLAGS = -Mfree -byteswapio -O
192 F77FLAGS = -Mfixed -byteswapio -O
195 LDFLAGS = -L$(MPI_ROOT)/lib -lmpi
197 CPP = /lib/cpp -C -P -traditional
198 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
202 ########################################################################################################################
203 #ARCH Linux x86_64, IA64 and Opteron # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
205 COMPRESSION_LIBS = CONFIGURE_COMP_L
206 COMPRESSION_INC = CONFIGURE_COMP_I
207 FDEFS = CONFIGURE_FDEFS
210 DM_FC = mpif90 -f90=pathf90
211 DM_CC = mpicc -cc=pathcc
215 FFLAGS = -freeform -fno-second-underscore -byteswapio -O
216 F77FLAGS = -byteswapio -fno-second-underscore -O
221 CPP = /lib/cpp -C -P -traditional
222 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
226 ########################################################################################################################
227 #ARCH Linux x86_64, Intel compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
229 COMPRESSION_LIBS = CONFIGURE_COMP_L
230 COMPRESSION_INC = CONFIGURE_COMP_I
231 FDEFS = CONFIGURE_FDEFS
234 DM_FC = mpif90 -f90=ifort
235 DM_CC = mpicc -cc=icc
239 FFLAGS = -FR -convert big_endian
240 F77FLAGS = -FI -convert big_endian
245 CPP = /lib/cpp -C -P -traditional
246 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
250 ########################################################################################################################
251 #ARCH Linux x86_64, Intel compiler, SGI MPT # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
253 COMPRESSION_LIBS = CONFIGURE_COMP_L
254 COMPRESSION_INC = CONFIGURE_COMP_I
255 FDEFS = CONFIGURE_FDEFS
258 DM_FC = $(SFC) -I$(MPI_ROOT)/include
259 DM_CC = $(SCC) -I$(MPI_ROOT)/include
263 FFLAGS = -FR -convert big_endian
264 F77FLAGS = -FI -convert big_endian
267 LDFLAGS = -L$(MPI_ROOT)/lib -lmpi
269 CPP = /lib/cpp -C -P -traditional
270 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
274 ########################################################################################################################
275 #ARCH Darwin Intel PGI compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
277 COMPRESSION_LIBS = CONFIGURE_COMP_L
278 COMPRESSION_INC = CONFIGURE_COMP_I
279 FDEFS = CONFIGURE_FDEFS
282 DM_FC = mpif90 -f90=pgf90
283 DM_CC = mpicc -cc=pgcc
287 FFLAGS = -Mfree -byteswapio -O2
288 F77FLAGS = -Mfixed -byteswapio -O2
293 CPP = /usr/bin/cpp -C -P -traditional
294 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -DMACOS CONFIGURE_MPI
299 ########################################################################################################################
300 #ARCH Darwin Intel Intel compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
302 COMPRESSION_LIBS = CONFIGURE_COMP_L
303 COMPRESSION_INC = CONFIGURE_COMP_I
304 FDEFS = CONFIGURE_FDEFS
312 FFLAGS = -FR -convert big_endian
313 F77FLAGS = -FI -convert big_endian
318 CPP = /usr/bin/cpp -C -P -traditional
319 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -DMACOS CONFIGURE_MPI
323 ########################################################################################################################
324 #ARCH Darwin Intel g95 compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
326 COMPRESSION_LIBS = CONFIGURE_COMP_L
327 COMPRESSION_INC = CONFIGURE_COMP_I
328 FDEFS = CONFIGURE_FDEFS
331 DM_FC = mpif90 -f90=g95
332 DM_CC = mpicc -cc=gcc
336 FFLAGS = -ffree-form -g -fendian=big
337 F77FLAGS = -ffixed-form -g -fendian=big
342 CPP = /usr/bin/cpp -C -P -traditional
343 CPPFLAGS = -D_DOUBLEUNDERSCORE -DBYTESWAP -DIO_NETCDF -DBIT32 -DMACOS CONFIGURE_MPI
348 ########################################################################################################################
349 #ARCH Darwin Intel gfortran # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
351 COMPRESSION_LIBS = CONFIGURE_COMP_L
352 COMPRESSION_INC = CONFIGURE_COMP_I
353 FDEFS = CONFIGURE_FDEFS
359 FFLAGS = -ffree-form -O -fconvert=big-endian -frecord-marker=4
360 F77FLAGS = -ffixed-form -O -fconvert=big-endian -frecord-marker=4
365 CPP = /usr/bin/cpp -C -P -traditional
366 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DIO_NETCDF -DBIT32 -DMACOS -DNO_SIGNAL CONFIGURE_MPI
371 ########################################################################################################################
372 #ARCH Darwin PPC xlf # serial serial_NO_GRIB2
374 COMPRESSION_LIBS = CONFIGURE_COMP_L
375 COMPRESSION_INC = CONFIGURE_COMP_I
376 FDEFS = CONFIGURE_FDEFS
377 NCARG_LIBS = -L$(NCARG_ROOT)/lib -lncarg -lcgm -lncarg_gks -lncarg_c \
378 -L/usr/X11R6/lib -lX11 \
379 -L/opt/ibmcmp/xlf/8.1/lib -lg2c
381 SCC = gcc-3.3 # NCAR silly thing
383 DM_FC = mpif90 -f90=$(SFC)
384 DM_CC = mpicc -cc=$(SCC)
391 FNGFLAGS = $(FFLAGS) -qextname
392 LDFLAGS = -Wl,-stack_size,10000000,-stack_addr,0xc000000
394 CPP = /usr/bin/cpp -C -P
395 CPPFLAGS = -DAIX -DMACOS -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
399 #CC = gcc-3.3 # NCAR silly thing
401 ########################################################################################################################
402 #ARCH Darwin PPC xlf gcc3.3 SystemStubs # serial serial_NO_GRIB2
404 COMPRESSION_LIBS = CONFIGURE_COMP_L
405 COMPRESSION_INC = CONFIGURE_COMP_I
406 FDEFS = CONFIGURE_FDEFS
407 NCARG_LIBS = -L$(NCARG_ROOT)/lib -lncarg -lcgm -lncarg_gks -lncarg_c \
408 -L/usr/X11R6/lib -lX11 \
409 -L/opt/ibmcmp/xlf/8.1/lib -lg2c
412 DM_FC = mpif90 -f90=$(SFC)
413 DM_CC = mpicc -cc=$(SCC)
416 FNGFLAGS = $(FFLAGS) -qextname
417 LDFLAGS = -Wl,-stack_size,10000000,-stack_addr,0xc0000000 -L/usr/lib -lSystemStubs
421 CPP = /usr/bin/cpp -C -P
422 CPPFLAGS = -DAIX -DMACOS -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
425 ########################################################################################################################
426 #ARCH Darwin PPC g95 # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
428 COMPRESSION_LIBS = CONFIGURE_COMP_L
429 COMPRESSION_INC = CONFIGURE_COMP_I
430 FDEFS = CONFIGURE_FDEFS
433 DM_FC = mpif90 -f90=g95
434 DM_CC = mpicc -cc=gcc
438 FFLAGS = -ffree-form -g -fno-second-underscore
439 F77FLAGS = -ffixed-form -g -fno-second-underscore
444 CPP = /usr/bin/cpp -C -P -traditional
445 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUXG95 -DIO_NETCDF -DBIT32 CONFIGURE_MPI
450 ########################################################################################################################
451 #ARCH AIX # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
453 COMPRESSION_LIBS = CONFIGURE_COMP_L
454 COMPRESSION_INC = CONFIGURE_COMP_I
455 FDEFS = CONFIGURE_FDEFS
457 NCARG_LIBS2 = -L/usr/local/lib64/r4i4 -lncarg -lncarg_gks -lncarg_c \
458 -L/usr/X11R6/lib -lX11 -lpng_ncl -lz_ncl
469 FCSUFFIX = -qsuffix=f=f90
473 CPP = /usr/lib/cpp -C -P
474 CPPFLAGS = -DAIX -DIBM4 -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
477 ########################################################################################################################
478 #ARCH Compaq OSF1 alpha # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
480 COMPRESSION_LIBS = CONFIGURE_COMP_L
481 COMPRESSION_INC = CONFIGURE_COMP_I
482 FDEFS = CONFIGURE_FDEFS
490 FFLAGS = -free -convert big_endian
491 F77FLAGS = -convert big_endian
495 CPP = /usr/bin/cpp -C -P -traditional
496 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DALPHA -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
499 ########################################################################################################################
500 #ARCH Linux x86_64 g95 compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
502 COMPRESSION_LIBS = CONFIGURE_COMP_L
503 COMPRESSION_INC = CONFIGURE_COMP_I
504 FDEFS = CONFIGURE_FDEFS
507 DM_FC = mpif90 -f90=$(SFC)
508 DM_CC = mpicc -cc=$(SCC)
512 FFLAGS = -ffree-form -g -fno-second-underscore
513 F77FLAGS = -ffixed-form -g -fno-second-underscore
518 CPP = /usr/bin/cpp -C -P -traditional
519 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUXG95 -DIO_NETCDF -DBIT32 CONFIGURE_MPI
522 ########################################################################################################################
523 #ARCH CYGWIN_NT i686 x86_64 PGI compiler on Windows # serial_NO_GRIB2 dmpar_NO_GRIB2
525 COMPRESSION_LIBS = CONFIGURE_COMP_L
526 COMPRESSION_INC = CONFIGURE_COMP_I
527 FDEFS = CONFIGURE_FDEFS
528 #NCARG_LIBS2 = -L${PGI}/linux86/6.1/lib -lpgftnrtl -lpgc \
529 # -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -lg2c
530 WRF_LIB = $(WRF_DIR)/external/io_grib1/libio_grib1.a \
531 $(WRF_DIR)/external/io_grib_share/libio_grib_share.a \
532 $(WRF_DIR)/external/io_int/libwrfio_int.a \
533 $(WRF_DIR)/external/io_netcdf/libwrfio_nf.a \
534 $(NETCDF)/lib/libnetcdf.lib
537 DM_FC = pgf90 -Mmpi=msmpi
538 DM_CC = pgcc -Mmpi=msmpi
543 F77FLAGS = -Mfixed -g
548 CPP = cpp -C -P -traditional
549 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DWIN32 -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
552 ########################################################################################################################
553 #ARCH SGI IRIX64 # serial serial_NO_GRIB2
555 COMPRESSION_LIBS = CONFIGURE_COMP_L
556 COMPRESSION_INC = CONFIGURE_COMP_I
557 FDEFS = CONFIGURE_FDEFS
565 FFLAGS = -freeform -64
572 CPPFLAGS = -D_UNDERSCORE -DSGI -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
576 ########################################################################################################################
577 #ARCH SGI Altix 4700 Linux ia64 Intel # dmpar
579 #COMPRESSION_LIBS = -L/contrib/jasper/lib -ljasper \
580 # -L/contrib/libpng/lib -lpng \
581 # -L/contrib/zlib/lib -lz
582 #COMPRESSION_INC = -I/contrib/zlib/include \
583 # -I/contrib/jasper/include \
584 # -I/contrib/libpng/include
585 COMPRESSION_LIBS = CONFIGURE_COMP_L
586 COMPRESSION_INC = CONFIGURE_COMP_I
587 FDEFS = CONFIGURE_FDEFS
595 FFLAGS = -FR -convert big_endian
596 F77FLAGS = -FI -convert big_endian
601 CPP = /lib/cpp -C -P -traditional
602 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
606 ########################################################################################################################
607 #ARCH Sun SunOS # serial serial_NO_GRIB2
609 COMPRESSION_LIBS = CONFIGURE_COMP_L
610 COMPRESSION_INC = CONFIGURE_COMP_I
611 FDEFS = CONFIGURE_FDEFS
625 CPP = /usr/ccs/lib/cpp -C -P
626 CPPFLAGS = -D_UNDERSCORE -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
629 ########################################################################################################################
630 #ARCH Cray XE/XC CLE/Linux x86_64, Cray compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
632 COMPRESSION_LIBS = CONFIGURE_COMP_L
633 COMPRESSION_INC = CONFIGURE_COMP_I
634 FDEFS = CONFIGURE_FDEFS
642 FFLAGS = -N255 -f free -h byteswapio
643 F77FLAGS = -N255 -f fixed -h byteswapio
648 CPP = /lib/cpp -C -P -traditional
649 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
653 ########################################################################################################################
654 #ARCH Cray XC CLE/Linux x86_64, Intel compiler # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2
656 COMPRESSION_LIBS = CONFIGURE_COMP_L
657 COMPRESSION_INC = CONFIGURE_COMP_I
658 FDEFS = CONFIGURE_FDEFS
666 FFLAGS = -FR -convert big_endian
667 F77FLAGS = -FI -convert big_endian
672 CPP = /lib/cpp -C -P -traditional
673 CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 CONFIGURE_MPI
677 ########################################################################################################################
678 #ARCH NULL # serial serial_NO_GRIB2 dmpar dmpar_NO_GRIB2