
SRCDIR := /blhome/lamar/Netcdf/
LIBDIR := /usr/local/lib64/r4i4
OBJS   := module_netcdf.o netcdf_jfl.o handle_err.o

.SUFFIXES: f90 f

dep_snow: $(OBJS) dep_snow.f90
	xlf95 -qfree=f90 -C -I$(SRCDIR) -o dep_snow dep_snow.f90 \
            $(OBJS) -L$(LIBDIR) -lnetcdf

%.o: %.f90
	xlf95 -c -Ktrap=divz,ovf $<

module_netcdf.o:$(SRCDIR)module_netcdf.f
	xlf95 -qfixed=132 -I$(SRCDIR) -c  $(SRCDIR)module_netcdf.f

handle_err.o:$(SRCDIR)handle_err.f
	xlf95 -qfixed=132 -I$(SRCDIR) -c  $(SRCDIR)handle_err.f

netcdf_jfl.o:$(SRCDIR)netcdf_jfl.f
	xlf95 -qfixed=132 -I$(SRCDIR) -c  $(SRCDIR)netcdf_jfl.f

