3 # Make sure one of the following options appears in your CFLAGS
4 # variable to indicate which system you are on. Used to call
5 # "C" routines from Fortran.
6 # -DLINUX, -DLINUXG95, -DSGI, -DHP, -DCRAY90, -DAIX, -DLINUXF90, -DVPP5000
8 # If you want to enable support for PNG or JPEG2000 encoding/decoding,
9 # you must specify -DUSE_PNG and/or -DUSE_JPEG2000 in the FDEFS variable
10 # for the Fortran pre-processor
11 # -DUSE_PNG requires libpng.a and libz.a
12 # ( and png.h pngconf.h zconf.h zlib.h include files).
13 # -DUSE_JPEG2000 requires libjasper.a
14 # ( and all the jasper/*.h include files).
16 # In addition, INCDIR must include all directories where the above
17 # mentioned include files can be found.
18 FDEFS=-DUSE_PNG -DUSE_JPEG2000
19 INCDIR=-I/usrx/local/64bit/jasper-1.700.2/src/libjasper/include \
20 -I/usrx/local/64bit/libpng-1.2.5 \
21 -I/usrx/local/64bit/zlib-1.1.4
25 #--------------------------------------
26 # The following was used for XLF on AIX
27 DEFS=-DAIX -DHAVE_SYS_TYPES_H=1
30 CPP=/usr/ccs/lib/cpp -P
31 MODDIR=/nwprod/lib/incmod/g2_d
32 FFLAGS=-O3 -g -qnosave -qarch=auto -qrealsize=8 -qmoddir=$(MODDIR) -I $(MODDIR)
33 CFLAGS=-O3 -q64 -g -qcpluscmt -qarch=auto $(DEFS) $(INCDIR)
35 #--------------------------------------
36 # The following was used for G95 on LINUX
43 #FFLAGS=-O3 -I $(MODDIR)
44 #CFLAGS=-O3 $(DEFS) $(INCDIR)
46 #--------------------------------------
48 .SUFFIXES: .a .f .F .c
50 $(LIB): $(LIB)(gridtemplates.o) \
51 $(LIB)(pdstemplates.o) \
52 $(LIB)(drstemplates.o) \
62 $(LIB)(gf_unpack1.o) \
63 $(LIB)(gf_unpack2.o) \
64 $(LIB)(gf_unpack3.o) \
65 $(LIB)(gf_unpack4.o) \
66 $(LIB)(gf_unpack5.o) \
67 $(LIB)(gf_unpack6.o) \
68 $(LIB)(gf_unpack7.o) \
69 $(LIB)(gettemplates.o) \
73 $(LIB)(gribcreate.o) \
87 $(LIB)(specunpack.o) \
90 $(LIB)(enc_jpeg2000.o) \
91 $(LIB)(dec_jpeg2000.o) \
114 $(CPP) $(FDEFS) $*.F $*.f
117 $(FC) -c $(FFLAGS) $<
118 ar $(ARFLAGS) -ruv $@ $*.o
122 $(CC) -c $(CFLAGS) $<
123 ar $(ARFLAGS) -ruv $@ $*.o