#******************************************************************************* # # Project: seft (search engine for text) # # File: Makefile # # Author: Owen de Kretser (oldk) # # Date: April 1999 # #******************************************************************************* # Makefile flags CC = pcc CFLAGS = -D_BSD_EXTENSION #CFLAGS = -Wall -O3 #CFLAGS = -Wall -g #LIBS = -ldmalloc LIBS = #LIBPATH = -L \. seft: main.o util.o local_strings.o heap.o output.o stem.o tst.o $(CC) $(CFLAGS) $(LIBPATH) -o seft main.o util.o local_strings.o \ stem.o heap.o output.o tst.o -lm $(LIBS) main.o: main.c main.h local_strings.h util.h heap.h output.h stem.h \ tst.h types.h $(CC) $(CFLAGS) -c main.c util.o: util.c util.h $(CC) $(CFLAGS) -c util.c local_strings.o: local_strings.c local_strings.h $(CC) $(CFLAGS) -c local_strings.c heap.o: heap.c heap.h $(CC) $(CFLAGS) -c heap.c output.o: output.c output.h main.h util.h local_strings.h words.h $(CC) $(CFLAGS) -c output.c stem.o: stem.c stem_recode_rules.i stem_context_rules.i stem.h $(CC) $(CFLAGS) -c stem.c tst.o: tst.c tst.h util.h types.h $(CC) $(CFLAGS) -c tst.c clean: rm -f *.o install: cp seft /usr/local/bin cp seft.1 /usr/man/man1