head     1.6;
branch   ;
access   ;
symbols  ;
locks    ;
comment  @# @;


1.6
date     96.06.11.12.30.36;  author lee;  state Exp;
branches ;
next     1.5;

1.5
date     96.05.15.15.05.26;  author lee;  state Exp;
branches ;
next     1.4;

1.4
date     90.10.06.00.57.26;  author lee;  state Rel;
branches ;
next     1.3;

1.3
date     90.10.03.21.14.45;  author lee;  state Exp;
branches ;
next     1.2;

1.2
date     90.09.28.21.54.43;  author lee;  state Exp;
branches ;
next     1.1;

1.1
date     90.08.09.19.17.58;  author lee;  state Exp;
branches ;
next     ;


desc
@@


1.6
log
@changed to reflect a library.
@
text
@# 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.5 96/05/15 15:05:26 lee Exp $


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

# If you add or remove filters in the following list, you must update
# h/filters.h to reflect the actual list:
SRCS = FilterType.c MailFilter.c NewsFilter.c DefaultFilter.c \
	SGMLFilter.c TroffFilter.c
OBJS = FilterType.o MailFilter.o NewsFilter.o DefaultFilter.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)

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 $(TARGETS) $(TEST)

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.
@


1.5
log
@made deps portable.
added dbmlibs.
@
text
@d1 2
a2 1
# filters/Makefile -- Copyright 1990 Liam R. Quin.  All Rights Reserved.
d8 1
a8 2
# Note that most of the actual configuration is done in ../Makefile and
# in ../h/global.h, and not here.
d10 1
a10 1
# $Id: Makefile,v 1.4 90/10/06 00:57:26 lee Rel $
d13 2
a14 5
# This is what gets made:
TARGETS = MailFilter NewsFilter SGMLFilter TroffFilter DefaultFilter
LIBFILES=$(TARGETS)
EXTRA=-DMAILFILTER='$(MAILFILTER)' -DNEWSFILTER='$(NEWSFILTER)' \
-DDEFAULTFILTER='$(DEFAULTFILTER)' $(EXTRA)
d16 3
a18 1
SRCS = FilterMain.c FilterType.c MailFilter.c NewsFilter.c DefaultFilter.c \
d20 2
a21 2
OBJS = FilterMain.o FilterType.o MailFilter.o NewsFilter.o DefaultFilter.o \
	SGMLFilter.o TroffFilter.c
a24 2
DESTDIR=../lib
LQ=../lib/liblqtext.a ../lib/liblqutil.a ../lib/liblqerror.a $(DBMLIBS)
d27 1
a27 1
# for compiling:
d29 3
a31 1
RANLIB=echo
d33 2
a34 1
all: $(TARGETS)
d36 2
a37 5
saber_src:
	echo $(PWD)
	#cd $(PWD)
	#load $(CFLAGS) $(SRCS)
	#cd ..
a38 5
saber_obj:
	#cd $(PWD)
	#load $(CFLAGS) $(SRCS)
	#cd ..

d40 1
a40 4
	for i in $(LIBFILES); do cp "$$i" $(DESTDIR); \
	strip "$(DESTDIR)/$$i" ; \
	chmod $(MODE) "$(DESTDIR)/$$i" ; \
	done
a51 2
TroffFilter: FilterMain.o TroffFilter.o
	$(CC) $(CFLAGS) -o TroffFilter FilterMain.o TroffFilter.o $(MALLOC) $(LQ)
a52 16
CFilter: FilterMain.o CFilter.o
	$(CC) $(CFLAGS) -o CFilter FilterMain.o CFilter.o $(MALLOC) $(LQ)

NewsFilter: FilterMain.o NewsFilter.o
	$(CC) $(CFLAGS) -o NewsFilter FilterMain.o NewsFilter.o $(MALLOC) $(LQ)

MailFilter: FilterMain.o MailFilter.o
	$(CC) $(CFLAGS) -o MailFilter FilterMain.o MailFilter.o $(MALLOC) $(LQ)

SGMLFilter: FilterMain.o SGMLFilter.o
	$(CC) $(CFLAGS) -o SGMLFilter FilterMain.o SGMLFilter.o $(MALLOC) $(LQ)

DefaultFilter: DefaultFilter.o FilterMain.o
	$(CC) $(CFLAGS) -o DefaultFilter FilterMain.o DefaultFilter.o $(MALLOC) $(LQ)
 

a55 39

DefaultFilter.o: DefaultFilter.c ../h/globals.h ../h/port.h ../h/wordrules.h
DefaultFilter.o: ../h/api.h ../h/port2.h ../h/error.h 
DefaultFilter.o: ../h/wordrules.h ../h/emalloc.h
FilterMain.o: FilterMain.c ../h/error.h ../h/globals.h ../h/port.h
FilterMain.o: ../h/wordrules.h ../h/api.h ../h/port2.h 
FilterMain.o: ../h/lqutil.h ../h/range.h
FilterMain.o: ../h/liblqtext.h ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h
FilterMain.o: ../h/fileinfo.h 
FilterMain.o: ../h/phrase.h ../h/lqconfig.h
FilterMain.o: ../h/lqtrace.h
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/pblock.h ../h/wordplace.h ../h/fileinfo.h
MailFilter.o: ../h/phrase.h ../h/lqconfig.h
MailFilter.o: ../h/lqtrace.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/pblock.h ../h/wordplace.h ../h/fileinfo.h
NewsFilter.o: ../h/phrase.h ../h/lqconfig.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/pblock.h ../h/wordplace.h ../h/fileinfo.h
SGMLFilter.o: ../h/phrase.h ../h/lqconfig.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/pblock.h ../h/wordplace.h ../h/fileinfo.h
TroffFilter.o: ../h/phrase.h ../h/lqconfig.h

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
@


1.4
log
@Prepared for first beta release.
@
text
@d10 1
a10 1
# $Id$
d14 1
a14 1
TARGETS = MailFilter NewsFilter
d16 2
a17 1
EXTRA=-DMAILFILTER='$(MAILFILTER)' -DNEWSFILTER='$(NEWSFILTER)' $(EXTRA)
d19 4
a22 2
SRCS = FilterMain.c FilterType.c MailFilter.c NewsFilter.c
OBJS = FilterMain.o FilterType.o MailFilter.o NewsFilter.o
d27 1
a27 1
LQ=../lib/liblq.a
d60 1
d63 3
d75 2
a76 2
CDMSFilter: FilterMain.o CDMSFilter.o
	$(CC) $(CFLAGS) -o CDMSFilter FilterMain.o CDMSFilter.o $(MALLOC) $(LQ)
d78 2
a79 10
#
# $Log:	Makefile,v $
# Revision 1.3  90/10/03  21:14:45  lee
# Added MAILFILTER stuff.
# 
# Revision 1.2  90/09/28  21:54:43  lee
# No longer uses OWNER.
# 
# Revision 1.1  90/08/09  19:17:58  lee
# Initial revision
d81 1
d85 37
@


1.3
log
@Added MAILFILTER stuff.
@
text
@d1 4
a4 1
# Makefile for LQ-Text, a full text retrieval package by Liam R. Quin
a8 2
#
# $Header: /home/lee/lq-text/src/filters/RCS/Makefile,v 1.2 90/09/28 21:54:43 lee Exp Locker: lee $
d10 1
a10 10
#
# $Log:	Makefile,v $
# Revision 1.2  90/09/28  21:54:43  lee
# No longer uses OWNER.
# 
# Revision 1.1  90/08/09  19:17:58  lee
# Initial revision
# 
# 
#
d12 1
d71 11
a84 9

FilterMain.c:
FilterMain.o: FilterMain.c /usr/include/stdio.h
MailFilter.c:
MailFilter.o: MailFilter.c /usr/include/stdio.h /usr/include/malloc.h
MailFilter.o: /usr/include/ctype.h ../h/wordrules.h ../h/emalloc.h
NewsFilter.c:
NewsFilter.o: NewsFilter.c /usr/include/stdio.h /usr/include/malloc.h
NewsFilter.o: /usr/include/ctype.h ../h/wordrules.h ../h/emalloc.h
@


1.2
log
@No longer uses OWNER.
@
text
@d7 1
a7 1
# $Header: /home/lee/lq-text/src/filters/RCS/Makefile,v 1.1 90/08/09 19:17:58 lee Exp Locker: lee $
d11 3
d23 1
@


1.1
log
@Initial revision
@
text
@d7 1
a7 1
# $Header$
d10 3
a12 1
# $Log$
d14 1
a28 1
OWNER=lee
a50 1
	chown $(OWNER) "$(DESTDIR)/$$i" ; \
@
