# Top level Makefile for Email gateway.
# Europagate, 1994-1995.
#
-# $Id: Makefile,v 1.28 1996/01/09 16:16:02 adam Exp $
+# $Id: Makefile,v 1.29 1996/02/29 15:33:18 adam Exp $
#
SHELL=/bin/sh
MAKE=make
# Other libraries libraries needed on some systems
#NETLIB=-lnsl -lsocket
+# Location of Tcl
+TCLLIB=/usr/local/lib/libtcl7.5.a
+TCLINC=
+
+# Location of IrTcl
+IRTCLDIR=../../ir-tcl
+IRTCLLIB=$(IRTCLDIR)/libirtcl.a
+IRTCLINC=-I$(IRTCLDIR)
+
# If you are using YAZ uncomment these lines
ZACC=zlayer-yaz
ZINC=-I../../yaz/include
SUBDIR=res+log util ccl fml $(ZACC) kernel www
all:
- for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" ZINC="$(ZINC)" ZLIB="$(ZLIB)" CPP="$(CPP)" NETLIB="$(NETLIB)" REGEXOBJ="$(REGEXOBJ)" REGEXINC="$(REGEXINC)" ZDEFS="$(ZDEFS)"; then cd ..; else exit 1; fi; done
+ for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" ZINC="$(ZINC)" ZLIB="$(ZLIB)" CPP="$(CPP)" NETLIB="$(NETLIB)" REGEXOBJ="$(REGEXOBJ)" REGEXINC="$(REGEXINC)" ZDEFS="$(ZDEFS)" TCLLIB="$(TCLLIB)" TCLINC="$(TCLINC)" IRTCLLIB="$(IRTCLLIB)" IRTCLINC="$(IRTCLINC)"; then cd ..; else exit 1; fi; done
dep depend:
- for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" ZINC="$(ZINC)" CPP="$(CPP)" REGEXINC="$(REGEXINC)" ZDEFS="$(ZDEFS)" depend; then cd ..; else exit 1; fi; done
+ for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" ZINC="$(ZINC)" CPP="$(CPP)" REGEXINC="$(REGEXINC)" ZDEFS="$(ZDEFS)" TCLINC="$(TCLINC)" IRTCLINC="$(IRTCLINC)" depend; then cd ..; else exit 1; fi; done
-install:
+install:
@if [ ! -d $(LIBDIR) ]; then \
echo "Making directory $(LIBDIR)"; \
mkdir $(LIBDIR); \