#
# comments start with a # sign
#
# each item in the make file consists of
# three things:  a product, its ingredients and how to make it
#

CC = gcc -g -Wall

fl: fl.o wordstore13.o process.o
	$(CC) fl.o wordstore13.o process.o -o fl

fl.o: fl.c fl.h
	$(CC) -c fl.c
 
wordstore13.o: wordstore13.c ws13.h
	$(CC) -c wordstore13.c

process.o: process.c ws13.h fl.h
	$(CC) -c process.c

test:
	./fl sample.fmt data1 data2 data3

error:
	./fl sample.fmt data1 data8
    
run:
	./fl sample.fmt < sample.dat
