#
#       Makefile for io
#

include ../../../Mkinclude
include ../Mkinclude

PACKNAME	= io
LIBFSRCS	= $(OUTPUT_SRCS) read_netcdf.f90 input.f90
LIBCSRCS	=
LIBSRCS		= $(LIBFSRCS) $(LIBCSRCS)
LIBFOBJS	= $(OUTPUT_OBJS) read_netcdf.o input.o
LIBCOBJS	=
LIBOBJS		= $(LIBFOBJS) $(LIBCOBJS)


all: $(LIBOBJS) archive ranlib ../.$(PACKNAME)

archive:
	@$(AR) $(ARFLAGS) $(LIBFILE) $(LIBOBJS)

ranlib:
	$(RANLIB) $(LIBFILE)

../.$(PACKNAME): $(LIBOBJS)
	$(TOUCH) ../.$(PACKNAME)

clean:
	$(RM) *.o *.mod *~ ../.$(PACKNAME)

###
output.o:	output_dcl.o output_netcdf.o 
output_nodcl.o:	output_netcdf.o 
output_dcl.o: ../.dynamics
output_netcdf.o: ../.dynamics
input.o:	read_netcdf.o
read_netcdf.o: ../.dynamics

