head	1.11;
access;
symbols;
locks;
comment	@# @;


1.11
date	96.05.17.03.16.05;	author lee;	state Exp;
branches;
next	1.10;

1.10
date	96.05.16.04.09.02;	author lee;	state Exp;
branches;
next	1.9;

1.9
date	96.05.16.04.02.06;	author lee;	state Exp;
branches;
next	1.8;

1.8
date	96.05.15.15.11.25;	author lee;	state Exp;
branches;
next	1.7;

1.7
date	94.05.23.22.17.29;	author lee;	state Exp;
branches;
next	1.6;

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

1.5
date	91.03.03.00.19.26;	author lee;	state Rel1-10;
branches;
next	1.4;

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

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

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

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


desc
@@


1.11
log
@clean up regexp.
@
text
@# Makefile for LQ-Text, a full text retrieval package by Liam R. Quin
# This Makefile belongs in the "src/lqtext" directory.
#
# Note that most of the actual configuration is done in ../Makefile and
# in ../h/global.h, and not here.

# Makefile -- Copyright 1990, 1995 Liam R. Quin.  All Rights Reserved.
# This code is NOT in the public domain.
# See the file ../COPYRIGHT for full details.
#
# $Id: Makefile,v 1.10 1996/05/16 04:09:02 lee Exp $


PWD=lqtext

BINFILES =lqaddfile lqbyteline lqfile lqword lqphrase lqquery lqshow lqkwic \
	mkwidtable lqwordlist lqrename lqrank lqsed sortwids \
	lqsimilar lqunindex 

SHELLFILES=lq lqclean lqsort
TARGETS = $(BINFILES) $(SHELLFILES)

# Following not shipped:
# scanfile lqmkfree lines mksignatures lqwordslike

# The following are for "make depend" and for sabre to load...
DEPENDFILES = lqaddfile.c lqbyteline lqfile.c lqword.c lqphrase.c lqquery.c \
	lqshow.c lqkwic.c mkwidtable.c lqwordlist.c lqrename.c lqrank.c  \
	sortwids.c lqsimilar.c wordtable.c

DESTDIR=/usr/local/bin
MODE=755
RANLIB=echo

BININSTALL=install -s -c -m $(MODE)
SHINSTALL=install -c -m $(MODE)
# a copy of install is included in the utils directory.

EXTRA=-I../h

REGEX=-Lregex -lregex
REGEX_DEP=libregex.a

all: $(TARGETS)

# DBMLIBS are set in the top level makefile.
DBMLIBS=-ldo_not_run_make_from_here
# DBMLIBS=ndbm.o bcopy.o

ERRORLIB=-llqerror
LQUTILLIB=-llqutil
TEXTLIB=-L../lib -llqtext $(LQUTILLIB) $(ERRORLIB)
LIBDEPS=../liblqtext/liblqtext.a ../liblqerror/liblqerror.a ../liblqutil/liblqutil.a

# MALLFILES=/usr/lib/debug/malloc.o /usr/lib/debug/mallocmap.o
MALLFILES =

local: all
	-echo lqtext up to date.

install: all
	for i in $(BINFILES); do \
	${BININSTALL} "$$i" "$(DESTDIR)/$$i" ; \
	done ; \
	for i in $(SHELLFILES); do \
	${SHINSTALL} "$$i" "$(DESTDIR)/$$i" ; \
	done

.SUFFIXES: .c .o .src .obj

.c.src:
	#load $(CFLAGS) $<

.o.obj:
	#load $(CFLAGS) $<

# If you are going to use saber on these, you should name the programs.
saber_src:

saber_obj:

$(REGEX_DEP):
	(cd regex && make lib && ln libregex.a ..)
	$(RANLIB) libregex.a

lq: lq.sh
	cp lq.sh lq
	chmod +x lq

lqsort: $(LIBDEPS) lqsort.sh
	cp lqsort.sh lqsort
	chmod +x lqsort

lqclean: lqclean.sh
	cp lqclean.sh lqclean

lqquery: $(LIBDEPS) lqquery.o $(REGEX_DEP)
	$(CC) $(CFLAGS) -o lqquery lqquery.o $(TEXTLIB) $(DBMLIBS) $(REGEX)

lqsed: $(LIBDEPS) lqsed.o
	$(CC) $(CFLAGS) -o lqsed lqsed.o $(TEXTLIB) $(DBMLIBS)

lqshow: $(LIBDEPS) lqshow.o
	$(CC) $(CFLAGS) -o lqshow lqshow.o $(TEXTLIB) $(CURSES) $(DBMLIBS)

lines: $(LIBDEPS) lines.o
	$(CC) $(CFLAGS) -o lines lines.o $(TEXTLIB)
	
sortwids: $(LIBDEPS) sortwids.o
	$(CC) $(CFLAGS) -o sortwids sortwids.o \
			$(TEXTLIB) $(MALLOC) $(DBMLIBS) $(MALLFILES)

lqrename: $(LIBDEPS) lqrename.o
	$(CC) $(CFLAGS) -o lqrename lqrename.o \
			$(TEXTLIB) $(MALLOC) $(DBMLIBS) $(MALLFILES)

scanfile: $(LIBDEPS) scanfile.o
	$(CC) $(CFLAGS) -o scanfile scanfile.o \
			$(TEXTLIB) $(MALLOC) $(DBMLIBS) $(MALLFILES)

addbyline: $(LIBDEPS) addbyline.o wordtable.o
	$(CC) $(CFLAGS) -o addbyline addbyline.o wordtable.o \
			$(TEXTLIB) $(MALLOC) $(DBMLIBS) $(MALLFILES)

lqaddfile: $(LIBDEPS) lqaddfile.o wordtable.o
	$(CC) $(CFLAGS) -o lqaddfile lqaddfile.o wordtable.o \
			$(TEXTLIB) $(MALLOC) $(DBMLIBS) $(MALLFILES)

lqunindex: $(LIBDEPS) lqunindex.o
	$(CC) $(CFLAGS) -o lqunindex lqunindex.o $(TEXTLIB) $(MALLOC) $(DBMLIBS)

lqrank: $(LIBDEPS) lqrank.o
	$(CC) $(CFLAGS) -o lqrank lqrank.o $(TEXTLIB) $(MALLOC) $(DBMLIBS)

lqfile: $(LIBDEPS) lqfile.o
	$(CC) $(CFLAGS) -o lqfile lqfile.o $(TEXTLIB) $(MALLOC) $(DBMLIBS)
	
lqmkfree: $(LIBDEPS) lqmkfree.o
	$(CC) $(CFLAGS) -o lqmkfree lqmkfree.o $(TEXTLIB) $(DBMLIBS) $(MALLOC)

lqword: $(LIBDEPS) lqword.o
	$(CC) $(CFLAGS) -o lqword lqword.o $(TEXTLIB) $(MALLOC) $(DBMLIBS)

lqwordlist: $(LIBDEPS) lqwordlist.o $(REGEX_DEP)
	$(CC) $(CFLAGS) -o lqwordlist lqwordlist.o $(TEXTLIB) $(MALLOC) $(DBMLIBS) $(REGEX)

lqkwic: $(LIBDEPS) lqkwic.o
	$(CC) $(CFLAGS) -o lqkwic lqkwic.o $(TEXTLIB) $(MALLOC) $(DBMLIBS) $(TERMCAP)

lqsimilar: $(LIBDEPS) lqsimilar.o
	$(CC) $(CFLAGS) -o lqsimilar lqsimilar.o $(TEXTLIB) $(DBMLIBS)

lqphrase: $(LIBDEPS) lqphrase.o
	$(CC) $(CFLAGS) -o lqphrase lqphrase.o $(TEXTLIB) $(DBMLIBS)

mksignatures: $(LIBDEPS) mksignatures.o
	$(CC) $(CFLAGS) -o mksignatures mksignatures.o $(TEXTLIB) $(MALLOC) $(DBMLIBS)

lqwordslike: $(LIBDEPS) lqwordslike.o
	$(CC) $(CFLAGS) -o lqwordslike lqwordslike.o $(TEXTLIB) $(MALLOC) $(DBMLIBS)

mkwidtable: $(LIBDEPS) mkwidtable.o
	$(CC) $(CFLAGS) -o mkwidtable mkwidtable.o $(TEXTLIB) $(MALLOC) $(DBMLIBS)

lqbyteline: $(LIBDEPS) lqbyteline.o
	$(CC) $(CFLAGS) -o lqbyteline lqbyteline.o $(TEXTLIB) $(MALLOC) $(DBMLIBS)

lqlinebytes: $(LIBDEPS) lqlinebytes.o
	$(CC) $(CFLAGS) -o lqlinebytes lqlinebytes.o $(TEXTLIB) $(MALLOC) $(DBMLIBS)

lqmv: lqmv.o $(ERRORLIB)
	$(CC) $(CFLAGS) -o lqmv lqmv.o $(ERRORLIB) $(MALLOC)

lint: AddFile.Lint News.Lint FileInfo.Lint Phrase.Lint

tidy:
	/bin/rm -f *.o core regex/*.[oa]

clean: tidy
	/bin/rm -f $(TARGETS) $(TEST) libregex.a

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

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

addbyline.o: addbyline.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
addbyline.o: ../h/port2.h ../h/error.h
addbyline.o: ../h/fileinfo.h ../h/wordinfo.h
addbyline.o: ../h/pblock.h ../h/wordplace.h ../h/wordrules.h ../h/filter.h
addbyline.o: ../h/emalloc.h ../h/addfile.h ../h/lqutil.h ../h/range.h
addbyline.o: ../h/liblqtext.h 
addbyline.o: ../h/phrase.h ../h/lqconfig.h ../h/lqtrace.h
lqaddfile.o: lqaddfile.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
lqaddfile.o: ../h/port2.h ../h/error.h
lqaddfile.o: ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h
lqaddfile.o: ../h/wordrules.h ../h/filter.h ../h/emalloc.h ../h/addfile.h
lqaddfile.o: ../h/lqutil.h ../h/range.h ../h/liblqtext.h
lqaddfile.o: ../h/phrase.h
lqaddfile.o: ../h/lqconfig.h ../h/lqtrace.h ../h/revision.h
lqbyteline.o: lqbyteline.c ../h/error.h ../h/globals.h ../h/port.h
lqbyteline.o: ../h/wordrules.h ../h/api.h ../h/port2.h 
lqbyteline.o: ../h/emalloc.h ../h/lqutil.h
lqbyteline.o: ../h/range.h ../h/liblqtext.h ../h/wordinfo.h ../h/pblock.h
lqbyteline.o: ../h/wordplace.h ../h/fileinfo.h 
lqbyteline.o: ../h/phrase.h ../h/lqconfig.h
lqfile.o: lqfile.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
lqfile.o: ../h/port2.h ../h/error.h 
lqfile.o: ../h/emalloc.h ../h/fileinfo.h ../h/lqutil.h
lqfile.o: ../h/range.h ../h/liblqtext.h ../h/wordinfo.h ../h/pblock.h
lqfile.o: ../h/wordplace.h 
lqfile.o: ../h/phrase.h ../h/lqconfig.h
lqkwic.o: lqkwic.c ../h/error.h 
lqkwic.o: ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h ../h/port2.h
lqkwic.o: ../h/range.h
lqkwic.o: ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h
lqkwic.o: ../h/wordrules.h ../h/emalloc.h ../h/lqutil.h ../h/liblqtext.h
lqkwic.o: ../h/phrase.h
lqkwic.o: ../h/lqconfig.h ../h/wmoffset.h ../h/lqtrace.h ../h/namespace.h
lqkwic2.o: lqkwic2.c ../h/error.h 
lqkwic2.o: ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h ../h/port2.h
lqkwic2.o: ../h/range.h ../h/fileinfo.h
lqkwic2.o: ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h ../h/wordrules.h
lqkwic2.o: ../h/emalloc.h ../h/wmoffset.h ../h/lqutil.h ../h/liblqtext.h
lqkwic2.o: ../h/phrase.h ../h/lqconfig.h
lqkwic2.o: ../h/lqtrace.h ../h/namespace.h 
lqlinebytes.o: lqlinebytes.c ../h/error.h ../h/globals.h ../h/port.h
lqlinebytes.o: ../h/wordrules.h ../h/api.h ../h/port2.h 
lqlinebytes.o: ../h/emalloc.h ../h/lqutil.h
lqlinebytes.o: ../h/range.h ../h/liblqtext.h ../h/wordinfo.h ../h/pblock.h
lqlinebytes.o: ../h/wordplace.h ../h/fileinfo.h 
lqlinebytes.o: ../h/phrase.h
lqlinebytes.o: ../h/lqconfig.h
lqmv.o: lqmv.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
lqmv.o: ../h/port2.h 
lqmv.o: ../h/error.h 
lqmv.o: ../h/emalloc.h ../h/fileinfo.h ../h/lqutil.h ../h/range.h
lqmv.o: ../h/liblqtext.h ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h
lqmv.o: ../h/phrase.h ../h/lqconfig.h
lqphrase.o: lqphrase.c ../h/error.h ../h/globals.h ../h/port.h ../h/wordrules.h
lqphrase.o: ../h/api.h ../h/port2.h 
lqphrase.o: ../h/emalloc.h ../h/fileinfo.h
lqphrase.o: ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h ../h/pblock.h
lqphrase.o: ../h/phrase.h ../h/lqutil.h ../h/range.h ../h/liblqtext.h
lqphrase.o: ../h/lqconfig.h
lqphrase.o: ../h/lqtrace.h
lqquery.o: lqquery.c ../h/error.h ../h/globals.h ../h/port.h ../h/wordrules.h
lqquery.o: ../h/api.h ../h/port2.h 
lqquery.o: ../h/emalloc.h ../h/fileinfo.h
lqquery.o: ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h ../h/pblock.h
lqquery.o: ../h/phrase.h ../h/lqutil.h ../h/range.h ../h/liblqtext.h
lqquery.o: ../h/lqconfig.h
lqquery.o: ../h/lqtrace.h
lqrank.o: lqrank.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
lqrank.o: ../h/port2.h ../h/error.h 
lqrank.o: ../h/emalloc.h ../h/fileinfo.h
lqrank.o: ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h ../h/phrase.h
lqrank.o: ../h/lqutil.h ../h/range.h ../h/liblqtext.h 
lqrank.o: ../h/lqconfig.h ../h/lqtrace.h
lqrename.o: lqrename.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
lqrename.o: ../h/port2.h ../h/error.h 
lqrename.o: ../h/emalloc.h
lqrename.o: ../h/fileinfo.h ../h/lqutil.h ../h/range.h ../h/liblqtext.h
lqrename.o: ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h
lqrename.o: ../h/phrase.h
lqrename.o: ../h/lqconfig.h ../h/lqtrace.h
lqsed.o: lqsed.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
lqsed.o: ../h/port2.h ../h/error.h 
lqsed.o: ../h/range.h ../h/fileinfo.h ../h/wordinfo.h
lqsed.o: ../h/pblock.h ../h/wordplace.h ../h/wordrules.h ../h/emalloc.h
lqsed.o: ../h/lqutil.h ../h/liblqtext.h 
lqsed.o: ../h/phrase.h ../h/lqconfig.h ../h/wmoffset.h
lqsed.o: ../h/lqtrace.h
lqshow.o: lqshow.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
lqshow.o: ../h/port2.h ../h/error.h 
lqshow.o: ../h/fileinfo.h ../h/wordinfo.h
lqshow.o: ../h/pblock.h ../h/wordplace.h ../h/wordrules.h ../h/pblock.h
lqshow.o: ../h/emalloc.h ../h/lqutil.h ../h/range.h ../h/liblqtext.h
lqshow.o: ../h/phrase.h
lqshow.o: ../h/lqconfig.h ../h/wmoffset.h ../h/lqtrace.h
lqsimilar.o: lqsimilar.c ../h/error.h ../h/globals.h ../h/port.h
lqsimilar.o: ../h/wordrules.h ../h/api.h ../h/port2.h 
lqsimilar.o: ../h/emalloc.h
lqsimilar.o: ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h
lqsimilar.o: ../h/pblock.h ../h/phrase.h ../h/lqutil.h ../h/range.h
lqsimilar.o: ../h/lqtrace.h ../h/liblqtext.h 
lqsimilar.o: ../h/lqconfig.h
lqunindex.o: lqunindex.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
lqunindex.o: ../h/port2.h ../h/error.h
lqunindex.o: ../h/fileinfo.h ../h/wordinfo.h
lqunindex.o: ../h/pblock.h ../h/wordplace.h ../h/wordrules.h ../h/wordplace.h
lqunindex.o: ../h/filter.h ../h/emalloc.h ../h/addfile.h ../h/lqutil.h
lqunindex.o: ../h/range.h ../h/liblqtext.h 
lqunindex.o: ../h/phrase.h ../h/lqconfig.h
lqunindex.o: ../h/lqtrace.h ../h/revision.h
lqunoverlap.o: lqunoverlap.c ../h/error.h ../h/globals.h ../h/port.h
lqunoverlap.o: ../h/wordrules.h ../h/api.h ../h/port2.h 
lqunoverlap.o: ../h/emalloc.h
lqunoverlap.o: ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h
lqunoverlap.o: ../h/pblock.h ../h/phrase.h ../h/lqutil.h ../h/range.h
lqunoverlap.o: ../h/lqtrace.h ../h/liblqtext.h 
lqunoverlap.o: ../h/lqconfig.h
lqword.o: lqword.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
lqword.o: ../h/port2.h ../h/error.h 
lqword.o: ../h/fileinfo.h
lqword.o: ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h ../h/smalldb.h
lqword.o: ../h/liblqtext.h 
lqword.o: ../h/phrase.h ../h/lqconfig.h ../h/pblock.h ../h/wordrules.h
lqword.o: ../h/emalloc.h ../h/lqutil.h ../h/range.h ../h/liblqtext.h
lqwordlist.o: lqwordlist.c ../h/globals.h ../h/port.h ../h/wordrules.h
lqwordlist.o: ../h/api.h ../h/port2.h ../h/error.h
lqwordlist.o: ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h
lqwordlist.o: ../h/smalldb.h 
lqwordlist.o: ../h/liblqtext.h 
lqwordlist.o: ../h/phrase.h ../h/lqconfig.h ../h/pblock.h ../h/wordrules.h
lqwordlist.o: ../h/numbers.h ../h/emalloc.h ../h/lqutil.h ../h/range.h
lqwordlist.o: ../h/liblqtext.h 
mksignatures.o: mksignatures.c ../h/globals.h ../h/port.h ../h/wordrules.h
mksignatures.o: ../h/api.h ../h/port2.h ../h/error.h
mksignatures.o: ../h/emalloc.h
mksignatures.o: ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h
mksignatures.o: ../h/pblock.h ../h/lqutil.h ../h/range.h
mkwidtable.o: mkwidtable.c ../h/globals.h ../h/port.h ../h/wordrules.h
mkwidtable.o: ../h/api.h ../h/port2.h ../h/error.h
mkwidtable.o: ../h/fileinfo.h
mkwidtable.o: ../h/wordindex.h ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h
mkwidtable.o: ../h/smalldb.h 
mkwidtable.o: ../h/liblqtext.h 
mkwidtable.o: ../h/phrase.h ../h/lqconfig.h ../h/lqutil.h ../h/range.h
mkwidtable.o: ../h/liblqtext.h ../h/numbers.h ../h/lqtrace.h
sgml.o: sgml.c
sortwids.o: sortwids.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
sortwids.o: ../h/port2.h ../h/error.h 
sortwids.o: ../h/fileinfo.h
sortwids.o: ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h ../h/smalldb.h
sortwids.o: ../h/liblqtext.h
sortwids.o: ../h/phrase.h
sortwids.o: ../h/lqconfig.h ../h/pblock.h ../h/wordrules.h ../h/numbers.h
sortwids.o: ../h/emalloc.h ../h/lqutil.h ../h/range.h ../h/liblqtext.h
sortwids.o: ../h/lqtrace.h
str.o: str.c 
wordtable.o: wordtable.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
wordtable.o: ../h/port2.h ../h/error.h
wordtable.o: ../h/smalldb.h
wordtable.o: ../h/liblqtext.h
wordtable.o: ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h ../h/fileinfo.h
wordtable.o: ../h/phrase.h
wordtable.o: ../h/lqconfig.h ../h/fileinfo.h ../h/wordinfo.h ../h/wordplace.h
wordtable.o: ../h/pblock.h ../h/wordrules.h ../h/emalloc.h ../h/addfile.h
wordtable.o: ../h/lqutil.h ../h/range.h ../h/liblqtext.h ../h/lqtrace.h

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
@


1.10
log
@ranlib libregex.
@
text
@d11 1
a11 1
# $Id: Makefile,v 1.9 1996/05/16 04:02:06 lee Exp $
d83 1
a83 1
	cd regex && make lib && ln libregex.a ..
d177 1
a177 1
	/bin/rm -f *.o core
d180 1
a180 1
	/bin/rm -f $(TARGETS) $(TEST)
@


1.9
log
@fix regex/regexp typo.
@
text
@d11 1
a11 1
# $Id: Makefile,v 1.8 96/05/15 15:11:25 lee Exp $
d84 1
@


1.8
log
@ported deps.
@
text
@d11 1
a11 1
# $Id: Makefile,v 1.7 94/05/23 22:17:29 lee Exp Locker: lee $
d41 1
a41 1
REGEX=-L.regex -lregex
d83 1
a83 1
	cd regexp && make lib && ln libregexp.a ..
@


1.7
log
@removed Log.
various other changes.
@
text
@d7 1
a7 1
# Makefile -- Copyright 1990 Liam R. Quin.  All Rights Reserved.
d11 1
a11 1
# $Id: Makefile,v 1.6 92/02/15 05:05:13 lee Exp $
d16 3
a18 4
TARGETS = lqaddfile lqbyteline lqfile lqword lqphrase lqshow lqkwic \
	mkwidtable lqwordlist lq lqclean lqrename lqrank lqsed
BINFILES =lqaddfile lqbyteline lqfile lqword lqphrase lqshow lqkwic \
	mkwidtable lqwordlist lqrename lqrank lqsed
d20 3
d27 3
a29 3
DEPENDFILES = lqaddfile.c lqbyteline lqfile.c lqword.c lqphrase.c lqshow.c \
	lqkwic.c mkwidtable.c lqwordlist.c lqrename.c lqrank.c  \
	wordtable.c
d31 1
a31 1
DESTDIR=../bin
d35 4
d41 3
d46 2
a47 5
# for ndbm (simplest), leave empty or use -lndbm if you need it
# for sdbm (best so far), use ../lib/libsdbm.a
# for gdbm... well, I dunno.
DBMLIBS=../lib/libsdbm.a
# DBMLIBS=-lndbm
d50 4
a53 1
TEXTLIB=../lib/liblqtext.a ../lib/liblq.a ../lib/liblqerror.a
d56 1
a56 1
MALLFILES = 
d58 3
d62 2
a63 2
	for i in $(BINFILES); do cp "$$i" $(DESTDIR); \
	strip "$(DESTDIR)/$$i" ; \
d65 3
a67 2
	cp lq.sh $(DESTDIR)/lq; chmod $(MODE) $(DESTDIR)/lq;
	cp lqclean $(DESTDIR)/lqclean; chmod $(MODE) $(DESTDIR)/lqclean;
d82 3
d87 1
d89 4
d96 4
a99 1
lqsed: lqsed.o $(TEXTLIB)
d102 1
a102 1
lqshow: lqshow.o $(TEXTLIB)
d105 1
a105 1
lines: lines.o $(TEXTLIB)
d108 5
a112 1
lqrename: lqrename.o $(TEXTLIB)
d116 1
a116 1
scanfile: scanfile.o $(TEXTLIB)
d120 5
a124 1
lqaddfile: lqaddfile.o wordtable.o $(TEXTLIB)
d128 4
a131 1
lqrank: lqrank.o $(TEXTLIB)
d134 1
a134 1
lqfile: lqfile.o $(TEXTLIB)
d137 1
a137 1
lqmkfree: lqmkfree.o $(TEXTLIB)
d140 1
a140 1
lqword: lqword.o $(TEXTLIB)
d143 2
a144 2
lqwordlist: lqwordlist.o $(TEXTLIB)
	$(CC) $(CFLAGS) -o lqwordlist lqwordlist.o $(TEXTLIB) $(MALLOC) $(DBMLIBS)
d146 1
a146 1
lqkwic: lqkwic.o $(TEXTLIB)
d149 4
a152 1
lqphrase: lqphrase.o $(TEXTLIB)
d155 1
a155 1
mksignatures: mksignatures.o $(TEXTLIB)
d158 1
a158 1
lqwordslike: lqwordslike.o $(TEXTLIB)
d161 1
a161 1
mkwidtable: mkwidtable.o $(TEXTLIB)
d164 1
a164 1
lqbyteline: lqbyteline.o $(TEXTLIB)
d167 6
d187 165
@


1.6
log
@Added nwe targets.
@
text
@d11 1
a11 1
# $Id: Makefile,v 1.5 91/03/03 00:19:26 lee Rel1-10 Locker: lee $
d16 4
a19 2
TARGETS = lqaddfile lqfile lqword lqphrase lqshow lqkwik mkwidtable lqwordlist lq intersect lqrename lqmkfree
BINFILES =lqaddfile lqfile lqword lqphrase lqshow lqkwik mkwidtable lqwordlist lqrename lqmkfree
d21 8
a45 4
# The following are for "make depend" and for sabre to load...
DEPENDFILES = ReadAhead.c fileindex.c lqaddfile.c lqphrase.c \
	      lqshow.c lqword.c sizes.c wordtable.c mkwidtable.c

d53 2
a54 2
	mv lq $(DESTDIR)/lq; chmod $(MODE) $(DESTDIR)/lq;
	mv intersect $(DESTDIR)/intersect; chmod $(MODE) $(DESTDIR)/intersect;
a70 1
	chmod +x lq
d72 2
a73 3
intersect: intersect.sh
	cp intersect.sh intersect
	chmod +x intersect
d75 3
d79 1
a79 1
	$(CC) $(CFLAGS) -o lqshow lqshow.o $(TEXTLIB) $(TERMCAP) $(DBMLIBS)
d81 3
d88 4
d96 5
a100 2
lqfile: fileindex.o $(TEXTLIB)
	$(CC) $(CFLAGS) -o lqfile fileindex.o $(TEXTLIB) $(MALLOC) $(DBMLIBS)
d111 2
a112 2
lqkwik: lqkwik.o $(TEXTLIB)
	$(CC) $(CFLAGS) -o lqkwik lqkwik.o $(TEXTLIB) $(MALLOC) $(DBMLIBS)
d117 6
d126 3
a140 18
#
# $Log:	Makefile,v $
# Revision 1.5  91/03/03  00:19:26  lee
# added lqkwik
# 
# Revision 1.4  90/10/06  00:50:42  lee
# Prepared for first beta release.
# 
# Revision 1.3  90/10/05  23:54:57  lee
# deleted mkdep output.
# 
# Revision 1.2  90/09/28  21:54:01  lee
# No longer uses OWNER.
# 
# Revision 1.1  90/08/09  19:17:39  lee
# Initial revision
# 
 
a142 1

@


1.5
log
@added lqkwik
@
text
@d11 1
a11 1
# $Id: Makefile,v 1.4 90/10/06 00:50:42 lee Rel Locker: lee $
d16 2
a17 2
TARGETS = lqaddfile lqfile lqword lqphrase lqshow lqkwik lq
BINFILES =lqaddfile lqfile lqword lqshow lqphrase lqkwik
d34 1
a34 1
TEXTLIB=../lib/liblqtext.a ../lib/liblq.a
d37 2
a38 2
DEPENDFILES = ReadAhead.c SixBit.c fileindex.c lqaddfile.c lqphrase.c \
	      lqshow.c lqword.c sizes.c wordtable.c
d48 1
d67 4
d74 4
d85 3
d91 3
d100 3
d112 1
d117 3
a135 48
SixBit.o: SixBit.c ../h/globals.h /usr/include/stdio.h /usr/include/string.h
SixBit.o: /usr/include/ctype.h ../h/wordrules.h
fileindex.o: fileindex.c ../h/globals.h /usr/include/stdio.h
fileindex.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
fileindex.o: /usr/include/malloc.h ../h/emalloc.h ../h/fileinfo.h
lqaddfile.o: lqaddfile.c /usr/include/stdio.h /usr/include/malloc.h
lqaddfile.o: /usr/include/ctype.h /usr/include/sys/types.h
lqaddfile.o: /usr/include/sys/sysmacros.h /usr/include/sys/stat.h
lqaddfile.o: /usr/include/strings.h ../h/globals.h ../h/fileinfo.h
lqaddfile.o: ../h/wordinfo.h ../h/pblock.h ../h/wordrules.h ../h/filter.h
lqaddfile.o: ../h/emalloc.h
lqkwik.o: lqkwik.c ../h/globals.h /usr/include/malloc.h /usr/include/fcntl.h
lqkwik.o: /usr/include/sys/fcntlcom.h /usr/include/ctype.h
lqkwik.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
lqkwik.o: /usr/include/sys/stat.h /usr/include/stdio.h ../h/fileinfo.h
lqkwik.o: ../h/wordinfo.h ../h/pblock.h ../h/wordrules.h ../h/pblock.h
lqkwik.o: ../h/emalloc.h
lqphrase.o: lqphrase.c ../h/globals.h /usr/include/stdio.h /usr/include/fcntl.h
lqphrase.o: /usr/include/sys/fcntlcom.h /usr/include/sys/types.h
lqphrase.o: /usr/include/sys/sysmacros.h /usr/include/malloc.h ../h/emalloc.h
lqphrase.o: ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h ../h/pblock.h
lqphrase.o: ../h/phrase.h
lqshow.o: lqshow.c ../h/globals.h /usr/include/curses.h /usr/include/stdio.h
lqshow.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h
lqshow.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
lqshow.o: /usr/include/sys/ttold.h /usr/include/sys/ioccom.h
lqshow.o: /usr/include/sys/ttycom.h /usr/include/sys/filio.h
lqshow.o: /usr/include/sys/ioccom.h /usr/include/sys/sockio.h
lqshow.o: /usr/include/sys/ioccom.h /usr/include/malloc.h /usr/include/fcntl.h
lqshow.o: /usr/include/sys/fcntlcom.h /usr/include/ctype.h
lqshow.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
lqshow.o: /usr/include/sys/stat.h ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h
lqshow.o: ../h/wordrules.h ../h/pblock.h ../h/emalloc.h
lqword.o: lqword.c ../h/globals.h /usr/include/stdio.h /usr/include/sys/types.h
lqword.o: /usr/include/sys/sysmacros.h /usr/include/malloc.h
lqword.o: /usr/include/fcntl.h /usr/include/sys/fcntlcom.h /usr/include/ctype.h
lqword.o: ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h ../h/smalldb.h
lqword.o: ../h/ozmadbm.h ../h/db.h ../h/pblock.h ../h/wordrules.h
lqword.o: ../h/emalloc.h
sizes.o: sizes.c ../h/globals.h /usr/include/stdio.h /usr/include/sys/types.h
sizes.o: /usr/include/sys/sysmacros.h ../h/fileinfo.h ../h/wordinfo.h
sizes.o: ../h/pblock.h ../h/pblock.h ../h/wordrules.h ../h/wordindex.h
wordtable.o: wordtable.c ../h/globals.h /usr/include/stdio.h
wordtable.o: /usr/include/malloc.h /usr/include/ctype.h
wordtable.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
wordtable.o: /usr/include/fcntl.h /usr/include/sys/fcntlcom.h ../h/smalldb.h
wordtable.o: ../h/ozmadbm.h ../h/db.h ../h/fileinfo.h ../h/wordinfo.h
wordtable.o: ../h/pblock.h ../h/pblock.h ../h/wordrules.h ../h/emalloc.h
@


1.4
log
@Prepared for first beta release.
@
text
@d11 1
a11 1
# $Id$
d16 2
a17 2
TARGETS = lqaddfile lqfile lqword lqphrase lqshow lq
BINFILES =lqaddfile lqfile lqword lqshow lqphrase
d79 3
d98 3
d114 48
@


1.3
log
@deleted mkdep output.
@
text
@a5 2
#
# $Header: /home/lee/lq-text/src/lqtext/RCS/Makefile,v 1.2 90/09/28 21:54:01 lee Exp Locker: lee $
d7 3
d11 1
a11 9
# $Log:	Makefile,v $
# Revision 1.2  90/09/28  21:54:01  lee
# No longer uses OWNER.
# 
# Revision 1.1  90/08/09  19:17:39  lee
# Initial revision
# 
# 
#
d13 1
d93 12
@


1.2
log
@No longer uses OWNER.
@
text
@d7 1
a7 1
# $Header: /home/lee/lq-text/src/lqtext/RCS/Makefile,v 1.1 90/08/09 19:17:39 lee Exp Locker: lee $
d11 3
a101 56
ReadAhead.c:
ReadAhead.o: ReadAhead.c ../h/globals.h /usr/include/stdio.h
ReadAhead.o: /usr/include/fcntl.h ../h/Message.h
fileindex.c:
fileindex.o: fileindex.c ../h/globals.h /usr/include/stdio.h
fileindex.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
fileindex.o: /usr/include/malloc.h ../h/emalloc.h ../h/fileinfo.h
lqaddfile.c:
lqaddfile.o: lqaddfile.c /usr/include/stdio.h /usr/include/malloc.h
lqaddfile.o: /usr/include/ctype.h /usr/include/sys/types.h
lqaddfile.o: /usr/include/sys/sysmacros.h /usr/include/sys/stat.h
lqaddfile.o: /usr/include/strings.h ../h/globals.h ../h/fileinfo.h
lqaddfile.o: ../h/wordinfo.h ../h/pblock.h ../h/wordrules.h ../h/filter.h
lqaddfile.o: ../h/emalloc.h
lqbrowse.c:
lqbrowse.o: lqbrowse.c ../h/globals.h /usr/include/curses.h
lqbrowse.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
lqbrowse.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
lqbrowse.o: /usr/include/fcntl.h /usr/include/sys/types.h
lqbrowse.o: /usr/include/sys/sysmacros.h /usr/include/malloc.h
lqbrowse.o: /usr/include/string.h ../h/wordinfo.h ../h/pblock.h ../h/pblock.h
lqbrowse.o: ../h/phrase.h
lqphrase.c:
lqphrase.o: lqphrase.c ../h/globals.h /usr/include/stdio.h /usr/include/fcntl.h
lqphrase.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
lqphrase.o: /usr/include/malloc.h ../h/emalloc.h ../h/fileinfo.h
lqphrase.o: ../h/wordinfo.h ../h/pblock.h ../h/pblock.h ../h/phrase.h
lqshow.c:
lqshow.o: lqshow.c ../h/globals.h /usr/include/curses.h /usr/include/stdio.h
lqshow.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h
lqshow.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
lqshow.o: /usr/include/malloc.h /usr/include/fcntl.h /usr/include/ctype.h
lqshow.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
lqshow.o: /usr/include/sys/stat.h ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h
lqshow.o: ../h/wordrules.h ../h/pblock.h ../h/emalloc.h
lqword.c:
lqword.o: lqword.c ../h/globals.h /usr/include/stdio.h /usr/include/sys/types.h
lqword.o: /usr/include/sys/sysmacros.h /usr/include/malloc.h
lqword.o: /usr/include/fcntl.h /usr/include/ctype.h /usr/include/sys/param.h
lqword.o: /usr/include/machine/param.h /usr/include/signal.h
lqword.o: /usr/include/sys/types.h ../h/fileinfo.h ../h/wordinfo.h
lqword.o: ../h/pblock.h ../h/smalldb.h ../h/sdbm.h ../h/pblock.h
lqword.o: ../h/wordrules.h ../h/emalloc.h
sizes.c:
sizes.o: sizes.c ../h/globals.h /usr/include/stdio.h /usr/include/malloc.h
sizes.o: /usr/include/ctype.h /usr/include/sys/types.h
sizes.o: /usr/include/sys/sysmacros.h /usr/include/fcntl.h ../h/smalldb.h
sizes.o: ../h/sdbm.h ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h
sizes.o: ../h/pblock.h ../h/wordrules.h ../h/wordindex.h ../h/emalloc.h
wordtable.c:
wordtable.o: wordtable.c ../h/globals.h /usr/include/stdio.h
wordtable.o: /usr/include/malloc.h /usr/include/ctype.h
wordtable.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
wordtable.o: /usr/include/fcntl.h ../h/smalldb.h ../h/sdbm.h ../h/fileinfo.h
wordtable.o: ../h/wordinfo.h ../h/pblock.h ../h/pblock.h ../h/wordrules.h
wordtable.o: ../h/wordindex.h ../h/emalloc.h
@


1.1
log
@Initial revision
@
text
@d7 1
a7 1
# $Header$
d10 3
a12 1
# $Log$
d14 1
a23 1
OWNER=lee
d43 3
a48 2
	chmod $(MODE) "$(DESTDIR)/$$i" ; \
	chown $(OWNER) "$(DESTDIR)/$$i" ; \
d50 1
a50 2
	mv lq $(DESTDIR)/lq; chmod $(MODE) $(DESTDIR)/lq; \
	chown $(OWNER) $(DESTDIR)/lq
d74 1
a74 1
				$(TEXTLIB) $(MALLOC) $(DBMLIBS)
@
