1# @(#)Makefile 2.8 06/07/93 2# 3# 4CFLAGS = -DBASEDIR=\"$(DEST_BASE)\" -DINCORE -fwritable-strings 5CC = cc $(CFLAGS) 6.c.o: 7 $(CC) -c $*.c 8 9INVo = invert.o streams.o makekey.o 10INVc = invert.c streams.c makekey.c 11LOOKo = lookup.o locate.o alpha.seek.o streams.o makekey.o 12LOOKc = lookup.c locate.c alpha.seek.c streams.c makekey.c 13BIBo = bib.o bibargs.o locate.o alpha.seek.o streams.o makekey.o 14BIBc = bib.c bibargs.c locate.c alpha.seek.c streams.c makekey.c 15LISTo = listrefs.o bibargs.o streams.o makekey.o 16LISTc = listrefs.c bibargs.c streams.c makekey.c 17BIBINCo = bibinc.o 18BIBINCc = bibinc.c 19 20SRCS = \ 21 adsdebug.h \ 22 bib.c \ 23 bibargs.c \ 24 bibinc.c \ 25 comments.h \ 26 alpha.seek.c \ 27 bib.h \ 28 invert.c \ 29 listrefs.c \ 30 locate.c \ 31 lookup.c \ 32 makekey.c \ 33 streams.c \ 34 streams.h 35 36all: invert lookup listrefs bib bibinc 37 38install: all 39 install -s -c bib $(DEST_BIN)/bib 40 install -s -c invert $(DEST_BIN)/invert 41 install -s -c lookup $(DEST_BIN)/lookup 42 install -s -c listrefs $(DEST_BIN)/listrefs 43 install -s -c bibinc $(DEST_BIN)/bibinc 44 install -c bib2tib $(DEST_BIN)/bib2tib 45 46invert: $(INVo) 47 $(CC) $(INVo) -o invert 48 49invert.lint: $(INVc) bib.h streams.h 50 lint $(INVc) >invert.lint 51 52lookup: $(LOOKo) 53 $(CC) $(LOOKo) -o lookup 54 55lookup.lint: $(LOOKc) bib.h streams.h 56 lint $(LOOKc) >lookup.lint 57 58bibinc: $(BIBINCc) adsdebug.h comments.h streams.h 59 $(CC) $(BIBINCc) -o bibinc 60 61bib: $(BIBo) 62 $(CC) $(BIBo) -o bib 63 64bib.lint: $(BIBc) bib.h streams.h 65 lint $(BIBc) >bib.lint 66 67listrefs: $(LISTo) 68 $(CC) $(LISTo) -o listrefs 69 70bib.o: bib.h 71bibargs.o: bib.h 72listrefs.o: bib.h 73invert.o: streams.h bib.h 74 75locate.o: streams.h bib.h 76makekey.o: bib.h 77alpha.seek.o: streams.h 78streams.o: streams.h bib.h 79 80$(SRCS) : 81 sccs get $@ 82 83clean: 84 -rm -f *.o bib invert listrefs lookup tags bibinc 85