1 include $(DEV_TOP
)/configure.wps
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).
17 CFLAGS2
= $(CPPFLAGS
) $(COMPRESSION_INC
) $(FDEFS
) -D__64BIT__
20 #--------------------------------------
21 # The following was used for XLF on AIX
22 #DEFS=-DAIX -DHAVE_SYS_TYPES_H=1
25 #CPP=/usr/ccs/lib/cpp -P
26 #FFLAGS=-O3 -g -qnosave -qarch=auto
27 #CFLAGS=-O3 -q64 -g -qcpluscmt -qarch=auto $(DEFS) $(INCDIR)
29 #--------------------------------------
30 # The following was used for G95 on LINUX
37 #FFLAGS=-O3 -g -I $(MODDIR)
38 #CFLAGS=-O3 $(DEFS) $(INCDIR)
39 #CFLAGS=-O3 $(DEFS) $(INCDIR) -D__64BIT__
41 #--------------------------------------
43 OBJS
= gridtemplates.o pdstemplates.o drstemplates.o gribmod.o realloc.o addfield.o \
44 addgrid.o addlocal.o getfield.o gb_info.o gf_getfld.o gf_free.o gf_unpack1.o \
45 gf_unpack2.o gf_unpack3.o gf_unpack4.o gf_unpack5.o gf_unpack6.o gf_unpack7.o \
46 gettemplates.o getlocal.o getdim.o getpoly.o gribcreate.o gribend.o gribinfo.o \
47 mkieee.o rdieee.o simpack.o simunpack.o cmplxpack.o compack.o misspack.o pack_gp.o \
48 reduce.o comunpack.o specpack.o specunpack.o jpcpack.o jpcunpack.o enc_jpeg2000.o \
49 dec_jpeg2000.o pngpack.o pngunpack.o enc_png.o dec_png.o gbytesc.o skgb.o ixgb2.o \
50 getidx.o getg2i.o getg2ir.o getgb2s.o getgb2r.o getgb2l.o getgb2.o getgb2p.o getgb2rp.o \
51 putgb2.o g2grids.o gdt2gds.o params.o params_ecmwf.o mova2i.o
57 $(AR
) $(ARFLAGS
) $@
$(OBJS
)
67 $(CPP
) $(FDEFS
) $*.F
> $*.f90
68 $(FC
) -c
$(F77FLAGS
) $*.f90
72 $(FC
) -c
$(F77FLAGS
) $*.f
75 $(CC
) -c
$(CFLAGS
) $(CFLAGS2
) $<