316c0088f0c544bfbbc977b2175ca466b9edd31c
[idzebra-moved-to-github.git] / isamc / Makefile.in
1 # Copyright (C) 1996-1998, Index Data 
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile.in,v 1.6 1999-07-14 13:21:34 heikki 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/include
16
17 INCLUDE=-I../include $(YAZINC)
18 TPROG1=isamctst
19 DEFS=$(CDEFS) $(INCLUDE)
20 LIB=../lib/isamc.a 
21 PO = isamc.o isamh.o isamd.o merge.o merge-d.o isams.o
22
23 all: $(LIB)
24
25 alll: $(LIB) 
26
27 $(TPROG1): $(TPROG1).o $(LIB) ../lib/bfile.a ../lib/zebrautl.a
28         $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) \
29                 ../lib/bfile.a ../lib/zebrautl.a $(YAZLIB)
30
31 $(LIB): $(PO)
32         rm -f $(LIB)
33         ar qc $(LIB) $(PO)
34         $(RANLIB) $(LIB)
35
36 .c.o:
37         $(CC) -c $(DEFS) $(CFLAGS) $<
38
39 clean:
40         rm -f *.[oa] $(TPROG1) core mon.out gmon.out errlist *~
41
42 depend:
43         sed '/^#Depend/q' <Makefile >Makefile.tmp
44         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
45         mv -f Makefile.tmp Makefile
46
47 #Depend --- DOT NOT DELETE THIS LINE