New update method: the 'old' keys are saved for each records.
[idzebra-moved-to-github.git] / index / Makefile
1 # Copyright (C) 1995, Index Data I/S 
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.21 1995-11-20 16:59:44 adam Exp $
5
6 SHELL=/bin/sh
7 RANLIB=ranlib
8
9 YAZLIB=../../yaz/lib/libyaz.a
10 YAZINC=-I../../yaz/include
11 OSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a
12 #NETLIB=-lnsl -lsocket
13
14 INCLUDE=-I../include $(YAZINC)
15 TPROG1=index
16 TPROG2=kdump
17 TPROG3=zserver
18 DEFS=$(INCLUDE)
19 O1 = main.o dir.o dirs.o trav.o extract.o kinput.o kcompare.o \
20  symtab.o text.o recctrl.o structrec.o recindex.o
21 O2 = kdump.o
22 O3 = zserver.o kcompare.o zrpn.o zsets.o text.o recctrl.o structrec.o  \
23         attribute.o recindex.o zlogs.o
24 CPP=$(CC) -E
25
26 all: $(TPROG1) $(TPROG2) $(TPROG3)
27
28 $(TPROG1): $(O1) ../lib/dict.a \
29                 ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a 
30         $(CC) $(CFLAGS) -o $(TPROG1) $(O1) ../lib/dict.a \
31                 ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a \
32                 $(YAZLIB)
33
34 $(TPROG2): $(O2)
35         $(CC) $(CFLAGS) -o $(TPROG2) $(O2) $(YAZLIB)
36
37 $(TPROG3): $(O3) \
38                 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/bfile.a \
39                 ../lib/dfa.a ../lib/alexutil.a
40         $(CC) $(CFLAGS) -o $(TPROG3) $(O3) \
41                 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/bfile.a \
42                 ../lib/dfa.a ../lib/alexutil.a \
43                 $(YAZLIB) $(OSILIB) $(NETLIB) -lm
44
45 .c.o:
46         $(CC) -c $(DEFS) $(CFLAGS) $<
47
48 clean:
49         rm -f *.[oa] $(TPROG1) $(TPROG2) $(TPROG3)
50         rm -f core mon.out gmon.out errlist
51
52 depend: depend2
53
54 depend1:
55         sed '/^#Depend/q' <Makefile >Makefile.tmp
56         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
57         mv -f Makefile.tmp Makefile
58
59 depend2:
60         $(CPP) $(DEFS) -M *.c >.depend  
61
62 ifeq (.depend,$(wildcard .depend))
63 include .depend
64 endif
65
66 #Depend --- DOT NOT DELETE THIS LINE