#
#	Copyright 1999 by The University at Stony Brook, All rights reserved.
#

lib = sdierckx/ex

ifndef UTIL
 UTIL := $(shell pwd | sed -e "s/\/pak\/.*//")/util
endif #ifndef UTIL

include $(UTIL)/make.defs

DIRECKXLIB = -L$(liblibdir) -lsdierckx

dierckx-examples = mnbisp mncloc mncoco mnconc mncosp mncual mncuev \
                   mncurf mndbin mnevpo mnfour mninst mnpade mnparc \
		   mnpasu mnperc mnpogr mnpola mnprof mnregr mnspal \
		   mnspde mnspev mnspgr mnsphe mnspin mnspro mnsuev \
		   mnsurf

examples: $(dierckx-examples)

%: %.f
	$(FC) $(FFLAGS) $< -o $@ $(LDFLAGS) $(DIRECKXLIB)

cleanup:
	$(RM) $(dierckx-examples) *.o *.OUT

.PHONY: cleanup
