#
#       Makefile for dbldif_box
#

include ../../Mkinclude
include Mkinclude

DIRSALL		= dynamics io
DIRSCLN		= dynamics io graph-bin prep


all: $(BINFILE)

$(BINFILE): $(LIBFILE) $(BINOBJ) $(CONVLIBFILE)
	$(FC) -o $(BINFILE) $(BINOBJ) $(LDFLAGS) $(LDLIBS)

$(LIBFILE): lib

init: 
	cd prep ; $(MAKE) init; cd ..

lib: 
	@for i in $(DIRSALL) ; do \
	  cd $$i ; \
	  echo "Making $$i/" ; \
	  $(MAKE) ; \
	  cd .. ; \
	done

graph: 
	cd graph-bin ; $(MAKE) ; cd ..

clean: clean.local clean.dir

clean.all: clean.local clean.dir

clean.local:
	$(RM) *~ *.o *.mod

clean.dir:
	@for i in $(DIRSCLN) ; do \
	  cd $$i ; \
	  echo "Cleaning $$i/" ; \
	  $(MAKE) clean ; \
	  cd .. ; \
	done

####
$(BINOBJ): 
