test: a.out
	./a.out

a.out: testc.o testf.o
	g77 $^ -o $@

testc.o: test.c
	gcc -Wall -c $< -o $@

testf.o: test.F
	g77 -Wall -c $< -o $@

clean:
	rm -f a.out *.o

.PHONY: test clean
