# # Makefile for a stemmer program using the Lovins stemmer. # Written by Christopher Fox 11/24/97 # # 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. # # stemmer A program to generate a stemmed list of terms from # a file. The program is executed by typing # stemmer # where is an ASCII file to be stemmed. # # all (default) Make the program above. # # lint Run the stemmer code through lint # CC=gcc CFLAGS=-O3 LDFLAGS= LIBS= all: demo stemmer demo: demo.o lovins.o $(CC) $(CFLAGS) -o $@ demo.o lovins.o stemmer: stemmer.o lovins.o $(CC) $(CFLAGS) -o $@ stemmer.o lovins.o stemmer.o: stemmer.c lovins.h $(CC) $(CFLAGS) -c stemmer.c lovins.o: lovins.c lovins.h $(CC) $(CFLAGS) -c lovins.c lint: lint stemmer.c lovins.c