# # Makefile for a stemmer program using the Porter stemmer. # Written and tested by Christopher Fox 4/15/91 # Revised by Christopher Fox 11/24/97 to add demo program and rename files. # # Directives: # demo A program to list terms and their stems given a # a file. The program is executed by typing # demo # where is an ASCII file. # # all (default) Make the program above. # # lint Run the stemmer code through lint # CC=cc CFLAGS=-O3 LDFLAGS= LIBS= all: demo demo: demo.o porter.o $(CC) -o $@ demo.o porter.o stemmer: stemmer.o porter.o $(CC) -o $@ stemmer.o porter.o demo.o: demo.c porter.h $(CC) $(CFLAGS) -c demo.c porter.o: porter.c porter.h $(CC) $(CFLAGS) -c porter.c lint: lint stemmer.c porter.c