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