X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=Makefile;h=93d9fdb6584a6d0f632efa0a4da7a2152e36a9d9;hp=9c37e7ab7c913e140a875b19f6c457d5e29bcc66;hb=559aecba0e61eca34706023436692ba23faa29a7;hpb=c8dee83a98997f5aaf799aad6d6e30c93783bc2a diff --git a/Makefile b/Makefile index 9c37e7a..93d9fdb 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ -# Copyright (C) 1994, Index Data I/S +# Copyright (C) 1995-1998, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.29 1996-05-22 08:35:24 adam Exp $ +# $Id: Makefile,v 1.36 1998-01-29 13:43:03 adam Exp $ # Uncomment the lines below to enable mOSI communcation. #ODEFS=-DUSE_XTIMOSI @@ -13,7 +13,7 @@ CDEFS=$(ODEFS) #CC= SHELL=/bin/sh MAKE=make -SUBDIR=util odr asn $(RFC1006) ccl comstack retrieval client server makelib +SUBDIR=util odr asn $(RFC1006) ccl comstack retrieval client server ztest makelib # Add external libraries to the ELIBS macro ELIBS= CONTROL=RANLIB="ranlib" ELIBS="$(ELIBS)" @@ -29,16 +29,23 @@ YAZDIR=/usr/local/lib/yaz all: for i in $(SUBDIR); do cd $$i; if $(MAKE) $(CONTROL) \ - CFLAGS="$(CFLAGS) $(CDEFS)" LIBMOSI="$(LIBMOSI)" XMOSI="$(XMOSI)";\ + CFLAGS="$(CFLAGS)" CDEFS="$(CDEFS)" LIBMOSI="$(LIBMOSI)" XMOSI="$(XMOSI)";\ then cd ..; else exit 1; fi; done dep depend: - for i in $(SUBDIR); do cd $$i; if $(MAKE) depend; then cd ..; else exit 1; fi; done + for i in $(SUBDIR); do cd $$i; if $(MAKE) CDEFS="$(CDEFS)" depend;\ + then cd ..; else exit 1; fi; done clean: for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done -rm lib/*.a +oclean: + for i in $(SUBDIR); do (cd $$i; rm -f *.o); done + mv lib/libyaz.a .; rm -f lib/*.a; mv libyaz.a lib + cd client; strip client + cd server; strip ztest + cleanup: rm -f `find $(SUBDIR) -name "*.[oa]" -print` rm -f `find $(SUBDIR) -name "core" -print` @@ -116,4 +123,4 @@ install.misc: wc: wc `find . -name '*.[ch]'` - +