Bug fix in routine find_entry: didn't take into account the len arg.
[idzebra-moved-to-github.git] / recctrl / Makefile
1 # Copyright (C) 1995-1996, Index Data I/S 
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.1 1996-10-11 10:57:22 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/recctrl.a
15 PROG=
16 PO=recctrl.o recgrs.o regxread.o sgmlread.o rectext.o
17 CPP=$(CC) -E
18
19 all: $(LIB)
20
21 $(LIB): $(PO)
22         rm -f $(LIB)
23         ar qc $(LIB) $(PO)
24         $(RANLIB) $(LIB)
25
26 .c.o:
27         $(CC) -c $(DEFS) $(CFLAGS) $<
28
29 clean:
30         rm -f *.[oa] core mon.out gmon.out errlist
31
32 depend: depend2
33
34 depend1:
35         sed '/^#Depend/q' <Makefile >Makefile.tmp
36         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
37         mv -f Makefile.tmp Makefile
38
39 depend2:
40         $(CPP) $(DEFS) -M *.c >.depend  
41
42 ifeq (.depend,$(wildcard .depend))
43 include .depend
44 endif
45
46 #Depend --- DOT NOT DELETE THIS LINE