CFLAGS = -g -Wall -O -I .

LIBS = -L. -lHashFile -ltext

HashFile.o: HashFile.m HashFile.h
	${CC} ${CFLAGS} -c HashFile.m
	ar crv libHashFile.a HashFile.o
	ranlib libHashFile.a
	
HashExample: libHashFile.a HashExample.m
	${CC} -o HashExample ${CFLAGS} -DDATABASE='"PhoneWords"' HashExample.m ${LIBS}
	
clean:
	rm -f *.a *.o HashExample

