# written by Zheng Gengbin

srcdir      = @srcdir@
top_srcdir  = @top_srcdir@

hpfc  = @top_srcdir@/scripts/hpfc
prun  = @top_srcdir@/@adlibdir@/src/script/prun

SUBDIR =  
EXECS = aa as sh st tm

FFLAGS = -O --fixed --pcrcf --clear --silent

default: $(EXECS)

testing: $(EXECS)
	@for file in $(EXECS) ;  do	\
	    echo ; echo "######### Running $$file ... #########";	\
	    num_proc=`../utils/getproc $$file.f` ;	\
	    $(prun) $$num_proc $$file ;	\
	 done

aa: aa.f
	$(hpfc) $(FFLAGS) aa.f

as: as.f
	$(hpfc) $(FFLAGS) as.f

sh: sh.f
	$(hpfc) $(FFLAGS) sh.f

st: st.f
	$(hpfc) $(FFLAGS) st.f

tm: tm.f
	$(hpfc) $(FFLAGS) tm.f

clean:
	rm -f $(EXECS) PI* core *_2.f *_1.f *_r.f *f.f *.dep *.out

distclean: clean

install:

uninstall:
