X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2FMakefile;h=27481a6757ab72196ddac461f17bdfaee742f659;hp=924e66e062bcb15edf6d14f423a5481b2e4bcf99;hb=d1c517a616a425f6a6966ae1639176248e65e68a;hpb=549074d1394b37eb04b612c0f2f16fe1361d6243 diff --git a/util/Makefile b/util/Makefile index 924e66e..27481a6 100644 --- a/util/Makefile +++ b/util/Makefile @@ -1,7 +1,7 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.6 1995-04-17 09:37:50 quinn Exp $ +# $Id: Makefile,v 1.19 1996-02-20 16:41:36 adam Exp $ SHELL=/bin/sh INCLUDE=-I../include -I. @@ -9,10 +9,13 @@ LIBDIR=../lib LIBINCLUDE=-L$(LIBDIR) #CFLAGS=-g -Wall -pedantic -ansi DEFS=$(INCLUDE) +#DEFS=$(INCLUDE) -DTRACE_XMALLOC=1 LIB=$(LIBDIR)/libutil.a LIBS= -PO = dmalloc.o options.o log.o marcdisp.o +PO = options.o log.o marcdisp.o yaz-ccl.o pquery.o oid.o wrbuf.o \ + xmalloc.o readconf.o tpath.o nmem.o yaz-util.o # dmalloc.o CPP=$(CC) -E +RANLIB=ranlib all: $(LIBDIR) $(LIB) marcdump @@ -27,7 +30,7 @@ alll: $(LIB): $(PO) rm -f $(LIB) ar qc $(LIB) $(PO) - ranlib $(LIB) + $(RANLIB) $(LIB) $(LIBDIR): mkdir $(LIBDIR) @@ -36,15 +39,14 @@ $(LIBDIR): $(CC) -c $(DEFS) $(CFLAGS) $< clean: - rm -f *.[oa] test core mon.out gmon.out errlist + rm -f *.[oa] test marcdump core mon.out gmon.out errlist depend: depend2 depend1: - mv Makefile Makefile.tmp - sed '/^#Depend/q' Makefile - $(CPP) $(INCLUDE) -M *.c >>Makefile - -rm Makefile.tmp + sed '/^#Depend/q' Makefile.tmp + $(CPP) $(DEFS) -M *.c >>Makefile.tmp + mv -f Makefile.tmp Makefile depend2: $(CPP) $(INCLUDE) -M *.c >.depend