Extra parameter decode added to search routines to implement
[idzebra-moved-to-github.git] / isam / Makefile
1 # Copyright (C) 1994-1997, Index Data I/S 
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.21 1997-09-17 12:19:20 adam Exp $
5
6 SHELL=/bin/sh
7 RANLIB=ranlib
8
9 YAZLIB=../../yaz/lib/libyaz.a
10 YAZINC=-I../../yaz/include
11
12 INCLUDE=-I../include $(YAZINC)
13 DEFS=$(INCLUDE)
14 LIB=../lib/isam.a
15 PO = isam.o isutil.o rootblk.o memory.o physical.o
16 CPP=$(CC) -E
17
18 all: $(LIB)
19
20 alll: $(LIB) # isam-test issh
21
22 test: test.c $(LIB)
23         $(CC) -g -o test -I../include test.c \
24         ../lib/isam.a ../lib/bfile.a ../lib/zebrautl.a $(YAZLIB)
25
26 isam-test: isam-test.c $(LIB)
27         $(CC) -g -o isam-test -I../include isam-test.c \
28         ../lib/isam.a ../lib/bfile.a ../lib/zebrautl.a $(YAZLIB)
29
30 issh: issh.c $(LIB)
31         $(CC) -g -o issh $(INCLUDE) issh.c \
32         ../lib/isam.a ../lib/bfile.a ../lib/zebrautl.a $(YAZLIB)
33
34 #$(TPROG): $(TPROG).o $(LIB) 
35 #       $(CC) -o $(TPROG) $(TPROG).o $(LIB)
36
37 $(LIB): $(PO)
38         rm -f $(LIB)
39         ar qc $(LIB) $(PO)
40         $(RANLIB) $(LIB)
41
42 .c.o:
43         $(CC) -c $(DEFS) $(CFLAGS) $<
44
45 clean:
46         rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist test isam-test issh
47
48 depend: depend2
49
50 depend1:
51         sed '/^#Depend/q' <Makefile >Makefile.tmp
52         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
53         mv -f Makefile.tmp Makefile
54
55 depend2:
56         $(CPP) $(DEFS) -M *.c >.depend  
57
58 ifeq (.depend,$(wildcard .depend))
59 include .depend
60 endif
61
62 #Depend --- DOT NOT DELETE THIS LINE