1 # Copyright (C) 1994-1997, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.27 1998-05-18 10:10:01 adam Exp $
7 INCLUDE=-I../include -I.
10 DEFS=$(INCLUDE) $(CDEFS)
11 LIB=$(LIBDIR)/libutil.a
13 PO = options.o log.o marcdisp.o yaz-ccl.o pquery.o oid.o wrbuf.o nmemsdup.o \
14 xmalloc.o readconf.o tpath.o nmem.o yaz-util.o atoin.o # dmalloc.o
18 all: $(LIBDIR) $(LIB) marcdump
20 #test: test.o $(LIB) ../odr/odr.a
21 # $(CC) $(CFLAGS) $(INCLUDE) -o test test.o $(LIB) ../odr/odr.a
23 marcdump: marcdump.o $(LIB)
24 $(CC) $(CFLAGS) $(INCLUDE) -o marcdump marcdump.o $(LIB)
34 $(CC) -c $(DEFS) $(CFLAGS) $<
37 rm -f *.[oa] test marcdump core mon.out gmon.out errlist
42 sed '/^#Depend/q' <Makefile >Makefile.tmp
43 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
44 mv -f Makefile.tmp Makefile
47 $(CPP) $(DEFS) -M *.c >.depend
49 ifeq (.depend,$(wildcard .depend))
53 #Depend --- DOT NOT DELETE THIS LINE