# Makefile

all:	res

a.out:	re277a.for matinv.for Makefile
	gfortran -std=legacy -fdefault-real-16 $(wordlist 1, 2, $^)

res:	input.dat a.out
	cat $< | ./a.out

re277a:	matinv.c re277a.c
	gcc $^ -lm -lf2c -o $@

%.f:	%.for
	ln -sf $< $@

%.c:	%.f
	f2c $<
