# Top level Makefile for Email gateway.
# Europagate, 1994-1995.
#
-# $Id: Makefile,v 1.15 1995/02/23 10:07:53 adam Exp $
+# $Id: Makefile,v 1.16 1995/03/01 14:31:03 adam Exp $
#
SHELL=/bin/sh
MAKE=make
SUBDIR=res+log util fml ccl zlayer kernel
CFLAGS=-Wall -g -pedantic -ansi
-#CC=gcc
+CC=gcc
CPP=$(CC) -E
+# GNU regex package location
+#REGEXOBJ=/usr/local/gnu/regex-0.12/regex.o
+#REGEXINC=-I/usr/local/gnu/regex-0.12
+
# For sun-sparc-solaris
#ZPRE=/usr/local/emailgw/src/zdist102b1-1/libz3950
#ZDEFS=-DHIGH_TO_LOW -Dfar=
ZDEFS=-DLOW_TO_HIGH -Dfar=
all:
- for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" ZPRE="$(ZPRE)" CPP="$(CPP)" NETLIB="$(NETLIB)" ZDEFS="$(ZDEFS)"; then cd ..; else exit 1; fi; done
+ for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" ZPRE="$(ZPRE)" CPP="$(CPP)" NETLIB="$(NETLIB)" REGEXOBJ="$(REGEXOBJ)" REGEXINC="$(REGEXINC)" ZDEFS="$(ZDEFS)"; then cd ..; else exit 1; fi; done
dep depend:
- for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" ZPRE="$(ZPRE)" CPP="$(CPP)" ZDEFS="$(ZDEFS)" depend; then cd ..; else exit 1; fi; done
+ for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" ZPRE="$(ZPRE)" CPP="$(CPP)" REGEXINC="$(REGEXINC)" ZDEFS="$(ZDEFS)" depend; then cd ..; else exit 1; fi; done
clean:
-rm -f lib/*.a