Better debugging for NMEM routines.
[yaz-moved-to-github.git] / util / Makefile.in
1 # Copyright (C) 1994-1998, Index Data
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile.in,v 1.8 1999-07-13 13:28:24 adam Exp $
5
6 SHELL=/bin/sh
7
8 CC=@CC@
9 CPP=@CPP@
10 RANLIB=@RANLIB@
11 CDEFS=@DEFS@
12 LIBS=@LIBS@
13
14 INCLUDE=-I../include -I.
15 LIBDIR=../lib
16
17 DEFS=$(INCLUDE) $(CDEFS)
18 LIB=$(LIBDIR)/libutil.a
19 PO = options.o log.o marcdisp.o oid.o wrbuf.o nmemsdup.o \
20    xmalloc.o readconf.o tpath.o nmem.o matchstr.o atoin.o 
21
22 all: $(LIB) marcdump
23
24 marcdump: marcdump.o $(LIB)
25         $(CC) $(CFLAGS) $(INCLUDE) -o marcdump marcdump.o $(LIB) $(LIBS)
26
27 alll:
28
29 $(LIB): $(PO)
30         rm -f $(LIB)
31         ar qc $(LIB) $(PO)
32         $(RANLIB) $(LIB)
33
34 .c.o:
35         $(CC) -c $(DEFS) $(CFLAGS) $<
36
37 clean:
38         rm -f *.[oa] test marcdump core mon.out gmon.out errlist
39
40 depend:
41         sed '/^#Depend/q' <Makefile >Makefile.tmp
42         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
43         mv -f Makefile.tmp Makefile
44
45 #Depend --- DOT NOT DELETE THIS LINE