#
# Makefile for gtool4/libsrc/netcdf        July 4, 2000   S.Takehiro
#

include ../../Mkinclude

OBJS=netcdf.o netcdf_v3.o netcdf_error.o netcdf_filename.o \
	netcdf_file.o netcdf_dimension.o netcdf_variable.o \
	netcdf_attribute.o netcdf_slice.o netcdf_io.o

all: lib 

lib: $(OBJS)

.f90:
	$(FC) $(FFLAGS) $< $(OBJS) ../string/*.o $(DCL90LIBPATH) $(DCL90LIBOPT)

clean:
	-$(RM) *.o *.mod *.bak test.nc *.exe *~
	
clean.all: clean
	-$(RM) *.htm

CHARS=$(GTMODDIR)/dc_chars.mod
STRING=$(GTMODDIR)/iso_varying_string.mod

netcdf_error.o: netcdf_v3.o $(STRING)
netcdf_filename.o: $(STRING)
netcdf_file.o: netcdf_filename.o netcdf_error.o
netcdf_dimension.o: netcdf_file.o
netcdf_variable.o: netcdf_dimension.o
netcdf_slice.o: netcdf_variable.o
netcdf_io.o: netcdf_slice.o $(CHARS)
netcdf_attribute.o: netcdf_variable.o
netcdf.o: netcdf_io.o netcdf_attribute.o

