head     1.7;
branch   ;
access   ;
symbols  ;
locks    lee:1.7;
comment  @# @;


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

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

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

1.4
date     92.01.21.19.15.52;  author lee;  state Exp;
branches ;
next     1.3;

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

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

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


desc
@@


1.7
log
@removed unneeded -D.
@
text
@# Makefile for LQ-Text, a full text retrieval package by Liam R. Quin
# This Makefile belongs in the "src/test" directory.
#
# Note that most of the actual configuration is done in ../Makefile and
# in ../h/global.h, and not here.
#
# $Id: Makefile,v 1.6 96/05/15 15:12:44 lee Exp $

PWD=test

# no rules for the first 4 yet, sorry
TARGETS = MaxWid TryHash put dbmtry TryRoot NumberTest free testnames
TESTPROGS = MaxWid TryHash put dbmtry TryRoot NumberTest free testnames

TESTBIN=../testbin

EXTRA=-I../h

all: $(TARGETS)

saber_src:

saber_obj:

LIAMLIB=../liblqutil/liblqutil.a ../liblqerror/liblqerror.a
TEXTLIB=../liblqtext/liblqtext.a

install: all
	@@test -d $(TESTBIN) || mkdir $(TESTBIN)
	for i in $(TESTPROGS); do cp "$$i" $(TESTBIN); \
	strip "$(TESTBIN)/$$i" ; \
	done

tidy:
	/bin/rm -f *.o core

clean: tidy
	/bin/rm -f $(TARGETS) $(TEST) numbers.c

depend:
	mkdep $(CFLAGS) *.c

free: free.o $(TEXTLIB) $(LIAMLIB)
	$(CC) $(CFLAGS) -o free free.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)

MaxWid: MaxWid.o $(TEXTLIB) $(LIAMLIB)
	$(CC) $(CFLAGS) -o MaxWid MaxWid.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)

TryHash: TryHash.o $(TEXTLIB) $(LIAMLIB)
	$(CC) $(CFLAGS) -o TryHash TryHash.o $(TEXTLIB)

TryNum: TryNum.o $(TEXTLIB) $(LIAMLIB)
	$(CC) $(CFLAGS) -o TryNum TryNum.o $(TEXTLIB) $(LIAMLIB)

TryRoot: TryRoot.o $(TEXTLIB) $(LIAMLIB)
	$(CC) $(CFLAGS) -o TryRoot TryRoot.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)

testnames: testnames.o $(TEXTLIB) $(LIAMLIB)
	$(CC) $(CFLAGS) -o testnames testnames.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)

dbmtry: dbmtry.o $(TEXTLIB) $(LIAMLIB)
	$(CC) $(CFLAGS) -o dbmtry dbmtry.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)

put: put.o
	$(CC) $(CFLAGS) -o put put.o

put4: put4.o
	$(CC) $(CFLAGS) -o put4 put4.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)

numbers.c: ../liblqtext/numbers.c
	/bin/rm -f numbers.c
	cp ../liblqtext/numbers.c .

NumberTest: NumberTest.o
	$(CC) $(CFLAGS) -o NumberTest NumberTest.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)

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

MaxWid.o: MaxWid.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
MaxWid.o: ../h/port2.h ../h/error.h 
MaxWid.o: ../h/liblqtext.h ../h/wordinfo.h
MaxWid.o: ../h/pblock.h ../h/wordplace.h ../h/fileinfo.h
MaxWid.o: ../h/phrase.h ../h/lqconfig.h
NumberTest.o: NumberTest.c ../h/error.h 
NumberTest.o: ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
NumberTest.o: ../h/port2.h ../h/lqtrace.h ../h/numbers.h ../h/liblqtext.h
NumberTest.o: ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h ../h/fileinfo.h
NumberTest.o: ../h/phrase.h ../h/lqconfig.h
TryHash.o: TryHash.c ../h/globals.h ../h/port.h
TryHash.o: ../h/wordrules.h ../h/api.h ../h/port2.h
TryNum.o: TryNum.c ../h/globals.h ../h/port.h
TryNum.o: ../h/wordrules.h ../h/api.h ../h/port2.h ../h/numbers.h
TryNum.o: ../h/emalloc.h
TryRoot.o: TryRoot.c ../h/error.h 
TryRoot.o: ../h/globals.h
TryRoot.o: ../h/port.h ../h/wordrules.h ../h/api.h ../h/port2.h ../h/fileinfo.h
TryRoot.o: ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h ../h/wordrules.h
TryRoot.o: ../h/liblqtext.h 
TryRoot.o: ../h/phrase.h ../h/lqconfig.h
bitmod.o: bitmod.c 
charfreq.o: charfreq.c 
dbmtry.o: dbmtry.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
dbmtry.o: ../h/port2.h ../h/error.h 
dbmtry.o: ../h/smalldb.h
dbmtry.o: ../h/liblqtext.h ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h
dbmtry.o: ../h/fileinfo.h 
dbmtry.o: ../h/phrase.h ../h/lqconfig.h ../h/lqutil.h ../h/range.h
dbmtry.o: ../h/liblqtext.h 
free.o: free.c ../h/globals.h ../h/port.h ../h/wordrules.h ../h/api.h
free.o: ../h/port2.h ../h/error.h 
free.o: ../h/fileinfo.h
free.o: ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h ../h/wordrules.h
free.o: ../h/pblock.h ../h/emalloc.h ../h/range.h ../h/lqutil.h
free.o: ../h/liblqtext.h 
free.o: ../h/phrase.h ../h/lqconfig.h ../h/lqtrace.h
lqmalloc.o: lqmalloc.c 
put.o: put.c 
size.o: size.c 
testnames.o: testnames.c ../h/error.h ../h/globals.h ../h/port.h
testnames.o: ../h/wordrules.h ../h/api.h ../h/port2.h 
testnames.o: ../h/emalloc.h
testnames.o: ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h ../h/wordplace.h
testnames.o: ../h/pblock.h ../h/phrase.h ../h/lqutil.h ../h/range.h
testnames.o: ../h/liblqtext.h 
testnames.o: ../h/lqconfig.h ../h/lqtrace.h ../h/namespace.h

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
@


1.6
log
@cleaned up a bit & ported deps.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.5 92/02/15 06:57:39 lee Exp $
d75 1
a75 1
	$(CC) $(CFLAGS) -DTESTNUMBERS -o NumberTest NumberTest.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)
@


1.5
log
@Added extra libs.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.4 92/01/21 19:15:52 lee Exp $
a8 17
#
# $Log:	Makefile,v $
# Revision 1.4  92/01/21  19:15:52  lee
# removed spurious dependencies on $DBMLIB.
# 
# Revision 1.3  90/10/08  21:15:10  lee
# Cope with non-writeable numbers.c and SixBit.c
# 
# Revision 1.2  90/10/06  01:27:05  lee
# Prepared for first Beta release.
# 
# Revision 1.1  90/08/09  19:17:53  lee
# Initial revision
# 
# 
#

d12 2
a13 2
TARGETS = MaxWid TryHash put trywid dbmtry TryRoot TryNum NumberTest
TESTPROGS = MaxWid TryHash put trywid dbmtry TryRoot TryNum NumberTest 
a15 2
MODE=755
OWNER=lee
d25 2
a26 6
# 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
# DBMLIBS=ndbm.o bcopy.o
a27 3
LIAMLIB=../lib/liblq.a ../lib/liblqutil.a ../lib/liblqerror.a
TEXTLIB=../lib/liblqtext.a

d43 3
d58 3
d67 2
a68 2
trywid: trywid.o $(TEXTLIB) $(LIAMLIB)
	$(CC) $(CFLAGS) -o trywid trywid.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)
d74 2
a75 2
NumberTest: numbers.o
	$(CC) $(CFLAGS) -DTESTNUMBERS -o NumberTest numbers.c
d80 48
@


1.4
log
@removed spurious dependencies on $DBMLIB.
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.3 90/10/08 21:15:10 lee Exp Locker: lee $
d11 3
d29 2
a30 2
TARGETS = MaxWid TryHash put trywid dbmtry TryRoot TestSix TryNum NumberTest
TESTPROGS = MaxWid TryHash put trywid dbmtry TryRoot TestSix TryNum NumberTest 
d51 1
a51 1
LIAMLIB=../lib/liblq.a
a57 2
	chmod $(MODE) "$(TESTBIN)/$$i" ; \
	chown $(OWNER) "$(TESTBIN)/$$i" ; \
d64 1
a64 1
	/bin/rm -f $(TARGETS) $(TEST) numbers.c SixBit.c
a88 7

SixBit.c: ../liblqtext/SixBit.c
	cp ../liblqtext/SixBit.c .

TestSix: SixBit.c
	$(CC) $(CFLAGS) -DTESTSIX SixBit.c -o TestSix
	/bin/rm -f SixBit.c
@


1.3
log
@Cope with non-writeable numbers.c and SixBit.c
@
text
@d7 1
a7 1
# $Id: Makefile,v 1.2 90/10/06 01:27:05 lee Exp $
d11 3
d68 1
a68 1
MaxWid: MaxWid.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)
d77 1
a77 1
TryRoot: TryRoot.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)
d80 1
a80 1
dbmtry: dbmtry.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)
d86 1
a86 1
trywid: trywid.o $(TEXTLIB) $(LIAMLIB) $(DBMLIBS)
@


1.2
log
@Prepared for first Beta release.
@
text
@d7 1
a7 1
# $Id$
d11 3
d60 1
a60 1
	/bin/rm -f $(TARGETS) $(TEST)
d94 1
@


1.1
log
@Initial revision
@
text
@d7 1
a7 1
# $Header$
d10 3
a12 1
# $Log$
d14 1
d88 1
a88 1
	/bin/rm SixBit.c
a98 23

MaxWid.c:
MaxWid.o: MaxWid.c ../h/globals.h /usr/include/stdio.h
TryHash.c:
TryHash.o: TryHash.c /usr/include/stdio.h ../h/globals.h
TryNum.c:
TryNum.o: TryNum.c /usr/include/stdio.h ../h/globals.h ../h/numbers.h
TryNum.o: ../h/emalloc.h
TryRoot.c:
TryRoot.o: TryRoot.c /usr/include/stdio.h /usr/include/ctype.h
TryRoot.o: /usr/include/sys/types.h /usr/include/sys/sysmacros.h
TryRoot.o: ../h/fileinfo.h ../h/wordinfo.h ../h/pblock.h ../h/wordrules.h
dbmtry.c:
dbmtry.o: dbmtry.c ../h/globals.h /usr/include/stdio.h /usr/include/fcntl.h
dbmtry.o: ../h/smalldb.h ../h/sdbm.h
numbers.c:
numbers.o: numbers.c ../h/globals.h /usr/include/stdio.h ../h/numbers.h
put.c:
put.o: put.c /usr/include/stdio.h /usr/include/ctype.h
trywid.c:
trywid.o: trywid.c ../h/globals.h /usr/include/sys/types.h
trywid.o: /usr/include/sys/sysmacros.h /usr/include/stdio.h ../h/fileinfo.h
trywid.o: ../h/wordinfo.h ../h/pblock.h
@
