X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=Makefile;h=30368c3337c8747bbf2802249fe0646b2a3c15ff;hp=e8411ceb88715f629228cf6d6e40a9a6e3fe43ad;hb=6a39772ad0cbd1bcb5d0984cd783d4a9e06bdfdb;hpb=6517fa53d35512887780fd07de5667940da18a9e diff --git a/Makefile b/Makefile index e8411ce..30368c3 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.35 1997-09-17 12:10:27 adam Exp $ +# $Id: Makefile,v 1.40 1998-06-02 10:23:07 adam Exp $ # Uncomment the lines below to enable mOSI communcation. #ODEFS=-DUSE_XTIMOSI @@ -9,13 +9,31 @@ #LIBMOSI=../../xtimosi/src/libmosi.a ../lib/librfc.a #XMOSI=xmosi.o -CDEFS=$(ODEFS) # -DYAZ_UNICODE=0 +CDEFS=$(ODEFS) + +# Standard include path and original protocol encoders. +INCLUDE=-I. -I../include +MOD=asn + +# Uncomment the two lines below if you want to try the ASN.1 compiler +# (yc) for YAZ. Download yc separately and untar it along with YAZ: +# gunzip -c yaz.tar.gz | tar xvf - +# gunzip -c yc.tar.gz | tar xvf - +# cd yaz +# ln -s ../yc/z39.50 +# You must run 'make depend' before 'make'. +#INCLUDE=-I../z39.50 -I. -I../include +#MOD=z39.50 + #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= +# For Solaris use: +#ELIBS=-lnsl -lsocket + CONTROL=RANLIB="ranlib" ELIBS="$(ELIBS)" # Installation directories, etc. @@ -29,11 +47,11 @@ YAZDIR=/usr/local/lib/yaz all: for i in $(SUBDIR); do cd $$i; if $(MAKE) $(CONTROL) \ - CFLAGS="$(CFLAGS)" CDEFS="$(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) CDEFS="$(CDEFS)" depend;\ + for i in $(SUBDIR); do cd $$i; if $(MAKE) INCLUDE="$(INCLUDE)" CDEFS="$(CDEFS)" depend;\ then cd ..; else exit 1; fi; done clean: