all: testip interpolation.h

include ../make.incl
include ../make.incl.general

M4 = m4

testip.f: testip.f.m4 general.m4
	$(M4) $(M4F77FLAGS) testip.f.m4 > testip.f

testip.o: testip.f
	$(F77) $(F77FLAGS) testip.f -c

testip: interpolation.o testip.o
	$(F77) $(F77FLAGS) testip.o interpolation.o -o testip


interpolation.f: interpolation.f.m4 general.m4
	$(M4) $(M4F77FLAGS) interpolation.f.m4 > interpolation.f

interpolation.o: interpolation.f
	$(F77) $(F77FLAGS) -c interpolation.f

interpolation.h: interpolation.h.m4
	$(M4) $(M4CCFLAGS) interpolation.h.m4 > interpolation.h

clean:
	rm -f *.o interpolation.f testip.f testip interpolation.h
