920639759b8df8c8e6f1c2593fbe7d542bc66757
[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.6 1999-06-08 10:10:16 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../z39.50 -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 \
21    atoin.o # dmalloc.o 
22
23 all: $(LIB) marcdump
24
25 marcdump: marcdump.o $(LIB)
26         $(CC) $(CFLAGS) $(INCLUDE) -o marcdump marcdump.o $(LIB) $(LIBS)
27
28 alll:
29
30 $(LIB): $(PO)
31         rm -f $(LIB)
32         ar qc $(LIB) $(PO)
33         $(RANLIB) $(LIB)
34
35 .c.o:
36         $(CC) -c $(DEFS) $(CFLAGS) $<
37
38 clean:
39         rm -f *.[oa] test marcdump core mon.out gmon.out errlist
40
41 depend:
42         sed '/^#Depend/q' <Makefile >Makefile.tmp
43         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
44         mv -f Makefile.tmp Makefile
45
46 #Depend --- DOT NOT DELETE THIS LINE