Updated makefiles to work with YC automatically.
[idzebra-moved-to-github.git] / rset / 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:51 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/rset.a
20 PROG=
21 PO=rset.o rstemp.o rsisam.o rsnull.o rsbool.o rsisamc.o rsm_or.o
22
23 all: $(LIB)
24
25 $(LIB): $(PO)
26         rm -f $(LIB)
27         ar qc $(LIB) $(PO)
28         $(RANLIB) $(LIB)
29
30 .c.o:
31         $(CC) -c $(DEFS) $(CFLAGS) $<
32
33 clean:
34         rm -f *.[oa] core mon.out gmon.out errlist
35
36 depend:
37         sed '/^#Depend/q' <Makefile >Makefile.tmp
38         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
39         mv -f Makefile.tmp Makefile
40
41 #Depend --- DOT NOT DELETE THIS LINE