X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=Makefile;h=18c317ca2eeda0f4f15fc6313f7f61a6d28d1d30;hp=76b421e50d23d9b9288eb06f6a1b4ae9a346c4fc;hb=8de81d57ebf189d37a160fe66df667b50ba7cb86;hpb=abda0ffc1ac8fca34535f39c6581ed16e70e15f9 diff --git a/Makefile b/Makefile index 76b421e..18c317c 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.30 1996-10-07 15:28:56 quinn Exp $ +# $Id: Makefile,v 1.38 1998-04-02 14:33:29 adam Exp $ # Uncomment the lines below to enable mOSI communcation. #ODEFS=-DUSE_XTIMOSI @@ -10,12 +10,22 @@ #XMOSI=xmosi.o CDEFS=$(ODEFS) + +#INCLUDE=-I../z39.50 -I. -I../include +#MOD=z39.50 + +INCLUDE=-I. -I../include +MOD=asn + #CC= SHELL=/bin/sh MAKE=make -SUBDIR=util odr asn $(RFC1006) ccl comstack retrieval client server makelib +SUBDIR=$(MOD) util odr $(RFC1006) ccl comstack retrieval client server ztest makelib # Add external libraries to the ELIBS macro ELIBS= +# For Solaris add use: +#ELIBS=-lnsl -lsocket + CONTROL=RANLIB="ranlib" ELIBS="$(ELIBS)" # Installation directories, etc. @@ -29,16 +39,23 @@ YAZDIR=/usr/local/lib/yaz all: for i in $(SUBDIR); do cd $$i; if $(MAKE) $(CONTROL) \ - CFLAGS="$(CFLAGS) $(CDEFS)" LIBMOSI="$(LIBMOSI)" XMOSI="$(XMOSI)";\ + INCLUDE="$(INCLUDE)" 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) INCLUDE="$(INCLUDE)" 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 +133,4 @@ install.misc: wc: wc `find . -name '*.[ch]'` - +