Lots of changes. They aren't visible though.
[egate.git] / Makefile
index b1383ed..1d12172 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 # Top level Makefile for Email gateway.
 # Europagate, 1994-1995.
 #
-# $Id: Makefile,v 1.26 1995/10/20 11:49:11 adam Exp $
+# $Id: Makefile,v 1.29 1996/02/29 15:33:18 adam Exp $
 #
 SHELL=/bin/sh
 MAKE=make
@@ -10,12 +10,21 @@ CPP=$(CC) -E
 LIBDIR=/usr/local/lib/emailgw
 
 # GNU regex package location
-#REGEXOBJ=../../regex-0.12/regex.o
-#REGEXINC=-I../../regex-0.12
+#REGEXOBJ=../../../pd-src/regex-0.12/regex.o
+#REGEXINC=-I../../../pd-src/regex-0.12
 
 # 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
@@ -31,12 +40,12 @@ ZDEFS=
 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); \