# filters/Makefile -- Copyright 1990, 1996 Liam R. E. Quin.
# All Rights Reserved.
# This code is NOT in the public domain.
# See the file ../COPYRIGHT for full details.

# This Makefile belongs in the "src/filters" directory.
#
# Do not run make in this directory -- run it from a level above.

# $Id: Makefile,v 1.6 96/06/11 12:30:36 lee Exp $


# This is what gets made by default:
TARGET = liblqfilter.a

# If you add or remove filters in the following list, you must update
# h/filters.h to reflect the actual list:
SRCS = MailFilter.c NewsFilter.c \
	SGMLFilter.c TroffFilter.c
OBJS = MailFilter.o NewsFilter.o \
	SGMLFilter.o TroffFilter.o

PWD=filters

MODE=755

# for compiling, normally set by command line from top-level Makefile:
EXTRA=-I../h
RANLIB=ranlib
CFLAGS += $(EXTRA)
CC=cc -O4

all: $(TARGET)
	@echo $(TARGET) is up to date

$(TARGET): $(OBJS)
	ar rv $(TARGET) $(OBJS)
	$(RANLIB) $(TARGET)

install: all
	@echo filters: nothing to install -- filters are built in now.

tidy:
	/bin/rm -f *.o core m.log tags

clean: tidy
	/bin/rm -f $(TARGET)

depend:
	chmod +w Makefile
	mkdep $(CFLAGS) *.c


# DO NOT PUT ANYTHING AFTER THIS LINE
# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.

MailFilter.o: MailFilter.c ../h/globals.h ../h/port.h ../h/wordrules.h
MailFilter.o: ../h/api.h ../h/port2.h ../h/error.h
MailFilter.o: ../h/wordrules.h ../h/emalloc.h
MailFilter.o: ../h/lqutil.h ../h/range.h ../h/liblqtext.h ../h/wordinfo.h
MailFilter.o: ../h/wordplace.h ../h/fileinfo.h 
MailFilter.o: ../h/phrase.h
MailFilter.o: ../h/lqconfig.h ../h/pblock.h ../h/chartype.h ../h/lqtrace.h
MailFilter.o: ../h/filter.h
NewsFilter.o: NewsFilter.c ../h/globals.h ../h/port.h ../h/wordrules.h
NewsFilter.o: ../h/api.h ../h/port2.h ../h/error.h
NewsFilter.o: ../h/wordrules.h ../h/emalloc.h
NewsFilter.o: ../h/lqutil.h ../h/range.h ../h/liblqtext.h ../h/wordinfo.h
NewsFilter.o: ../h/wordplace.h ../h/fileinfo.h 
NewsFilter.o: ../h/phrase.h
NewsFilter.o: ../h/lqconfig.h ../h/pblock.h ../h/chartype.h ../h/filter.h
SGMLFilter.o: SGMLFilter.c ../h/error.h 
SGMLFilter.o: ../h/globals.h ../h/port.h
SGMLFilter.o: ../h/wordrules.h ../h/api.h ../h/port2.h 
SGMLFilter.o: ../h/wordrules.h ../h/emalloc.h
SGMLFilter.o: ../h/lqutil.h ../h/range.h ../h/liblqtext.h ../h/wordinfo.h
SGMLFilter.o: ../h/wordplace.h ../h/fileinfo.h 
SGMLFilter.o: ../h/phrase.h
SGMLFilter.o: ../h/lqconfig.h ../h/pblock.h ../h/chartype.h ../h/filter.h
TroffFilter.o: TroffFilter.c ../h/globals.h ../h/port.h ../h/wordrules.h
TroffFilter.o: ../h/api.h ../h/port2.h ../h/error.h
TroffFilter.o: ../h/wordrules.h ../h/emalloc.h
TroffFilter.o: ../h/lqutil.h ../h/range.h ../h/liblqtext.h ../h/wordinfo.h
TroffFilter.o: ../h/wordplace.h ../h/fileinfo.h 
TroffFilter.o: ../h/phrase.h
TroffFilter.o: ../h/lqconfig.h ../h/pblock.h ../h/chartype.h ../h/filter.h

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
