265f71bf4d0df29c573074284be97419bf198cc4
[idzebra-moved-to-github.git] / bfile / Makefile.in
1 # Copyright (C) 1994-1998, Index Data ApS
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile.in,v 1.1 1998-09-02 14:15:27 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=-lyaz
15 YAZINC=-I../../yaz/include
16
17 INCLUDE=-I../include $(YAZINC)
18 TPROG=btest
19 DEFS=$(INCLUDE) $(CDEFS)
20 LIB=../lib/bfile.a
21 PO = bfile.o mfile.o cfile.o commit.o
22
23 all: $(LIB)
24
25 $(TPROG): $(TPROG).o $(LIB) $(YAZLIB)
26         $(CC) -o $(TPROG) $(TPROG).o $(LIB) $(YAZLIB)
27
28 $(LIB): $(PO)
29         rm -f $(LIB)
30         ar qc $(LIB) $(PO)
31         $(RANLIB) $(LIB)
32
33 .c.o:
34         $(CC) -c $(DEFS) $(CFLAGS) $<
35
36 clean:
37         rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist
38
39 depend:
40         sed '/^#Depend/q' <Makefile >Makefile.tmp
41         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
42         mv -f Makefile.tmp Makefile
43
44 #Depend --- DOT NOT DELETE THIS LINE