X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2FMakefile;h=a30b8be2dc39d9f047c80534dad001032feb8068;hb=fb99bfcb44d29215f411d82646c59f2f74f5a25c;hp=80a0ff1293ec47f25d8be4ea262a6af8dd139399;hpb=4cb66a9e7b322dd58c9d52f1a660a271d6c384f4;p=idzebra-moved-to-github.git diff --git a/index/Makefile b/index/Makefile index 80a0ff1..a30b8be 100644 --- a/index/Makefile +++ b/index/Makefile @@ -1,38 +1,55 @@ -# Copyright (C) 1994, Index Data I/S +# Copyright (C) 1995, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.1 1995-08-31 14:50:24 adam Exp $ +# $Id: Makefile,v 1.6 1995-09-05 15:28:39 adam Exp $ SHELL=/bin/sh -INCLUDE=-I../include +RANLIB=ranlib +YAZ=../../yaz +YAZLIB=$(YAZ)/lib/libyaz.a +INCLUDE=-I../include -I$(YAZ)/include TPROG1=index +TPROG2=kdump +TPROG3=zserver DEFS=$(INCLUDE) -O = main.o +O1 = main.o dir.o trav.o extract.o kinput.o kcompare.o ksort.o +O2 = kdump.o +O3 = zserver.o kcompare.o zrpn.o zsets.o CPP=cc -E -all: $(TPROG1) +all: $(TPROG1) $(TPROG2) $(TPROG3) -$(TPROG1): $(O) ../lib/dict.a ../lib/bfile.a ../lib/util.a - $(CC) $(CFLAGS) -o $(TPROG1) $(O) ../lib/dict.a ../lib/bfile.a ../lib/util.a +$(TPROG1): $(O1) ../lib/dict.a \ + ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a $(YAZLIB) + $(CC) $(CFLAGS) -o $(TPROG1) $(O1) ../lib/dict.a \ + ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a $(YAZLIB) + +$(TPROG2): $(O2) $(YAZLIB) + $(CC) $(CFLAGS) -o $(TPROG2) $(O2) $(YAZLIB) + +$(TPROG3): $(O3) ../lib/rset.a \ + ../lib/dict.a ../lib/isam.a ../lib/bfile.a \ + ../lib/dfa.a ../lib/alexutil.a $(YAZLIB) + $(CC) $(CFLAGS) -o $(TPROG3) $(O3) ../lib/rset.a \ + ../lib/dict.a ../lib/isam.a ../lib/bfile.a \ + ../lib/dfa.a ../lib/alexutil.a $(YAZLIB) .c.o: $(CC) -c $(DEFS) $(CFLAGS) $< clean: - rm -f *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist - -$(O): index.h + rm -f *.[oa] $(TPROG1) $(TPROG2) $(TPROG3) + rm -f core mon.out gmon.out errlist depend: depend2 depend1: - mv Makefile Makefile.tmp - sed '/^#Depend/q' Makefile - $(CPP) $(INCLUDE) -M *.c >>Makefile - -rm Makefile.tmp + sed '/^#Depend/q' Makefile.tmp + $(CPP) $(DEFS) -M *.c >>Makefile.tmp + mv -f Makefile.tmp Makefile depend2: - $(CPP) $(INCLUDE) -M *.c >.depend + $(CPP) $(DEFS) -M *.c >.depend ifeq (.depend,$(wildcard .depend)) include .depend