#
# Makefile for a stop list filter program.
# Written by and tested by Christopher Fox 4/10/91
#
# Directives:
#	stopper		A program to generate a stop list and filter a file.
#			This program assumes that a file called "stop.wrd"
#			exists and contains stop words, one per line.
#			The program is executed by typing
#				stopper <filename>
#			where <filename> is an ASCII file to be filtered.
#
#	all (default)	Make the program above.
#
#	regression	Execute a regression test.  The stopper program
#			should write a list of filtered words to stdout.
#
#	lint		Run the stopper code through lint
#

CFLAGS=-O
LDFLAGS=
LIBS=

all:		stopper

stopper:	stopper.o stop.o strlist.o
	$(CC) -o $@ stopper.o stop.o strlist.o

stopper.o:	stopper.c stop.h strlist.h
	$(CC) $(CFLAGS) -c stopper.c

stop.o:	stop.c stop.h strlist.h
	$(CC) $(CFLAGS) -c stop.c

strlist.o:	strlist.c strlist.h
	$(CC) $(CFLAGS) -c strlist.c

lint:
	lint stopper.c stop.c strlist.c

regression: 	stopper testfile stop.wrd
	./stopper testfile
