#!Makefile
include ../Mkinclude

FC	= dclf90
DCLOBJ	= dcl_auto.o
LIBNM	= stpk
SRC	= poison.f90 cov.f90 normal_poly.f90 advection.f90 advection_draw.f90 \
	  advection_non.f90 diffusion.f90 wind.f90
TARGET	= poison cov normal_poly advection advection_draw \
	  advection_non diffusion wind

all: $(TARGET)
$(TARGET): %:%.f90 $(DCLOBJ)
	$(FC) ${FFLAGS} -I${INCDIR} $< $(DCLOBJ) -L${LDFLAGS} -l${LFLAGS} -L${LIBDIR} -l${LIBNM} -o $@
$(DCLOBJ):
	$(FC) -c dcl_auto.f90

clean:
	rm -rf $(TARGET) *.dat *.o *.mod
