# file: Makefile G. Moody 26 October 2004 # 'make' or 'make ibs': compile the program in the current directory ibs: ibs.c $(CC) -o ibs -O ibs.c -lm # 'make check': check that the program works properly check: ibs ./ibs 8 healthy.txt chf.txt >ibs.out @if diff ibs.out ibs.expected; \ then echo Test passed ; else echo Test failed ; fi # 'make clean': delete generated and backup files. clean: rm -f ibs ibs.out *~