X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=Makefile;h=db6b7883a61128862790d8936557ec2903de73ea;hb=4b867394d5d5dda2be8427c96e0fb0fd07eddbdc;hp=09d3083f73a1f3c8284315dc7ad294d0f68ab4ac;hpb=84704ab102d3e9eb5a95061b141264d846c54628;p=yaz-moved-to-github.git diff --git a/Makefile b/Makefile index 09d3083..db6b788 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ -# Copyright (C) 1995-1997, Index Data I/S +# Copyright (C) 1995-1998, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.33 1997-09-01 08:47:18 adam Exp $ +# $Id: Makefile,v 1.37 1998-03-31 15:13:19 adam Exp $ # Uncomment the lines below to enable mOSI communcation. #ODEFS=-DUSE_XTIMOSI @@ -10,10 +10,17 @@ #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 ztest makelib +SUBDIR=$(MOD) util odr $(RFC1006) ccl comstack retrieval client server ztest makelib # Add external libraries to the ELIBS macro ELIBS= CONTROL=RANLIB="ranlib" ELIBS="$(ELIBS)" @@ -29,11 +36,12 @@ 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 @@ -122,4 +130,4 @@ install.misc: wc: wc `find . -name '*.[ch]'` - +