# Top level Makefile for Email gateway. # Europagate, 1994-1995. # # $Log: Makefile,v $ # Revision 1.6 1995/02/16 14:47:31 quinn # Removed CC # # Revision 1.5 1995/02/15 17:40:47 adam # New module kernel. # # Revision 1.4 1995/02/13 12:34:56 adam # New module ccl. # # Revision 1.3 1995/02/10 17:21:17 adam # FML is add as sub Makefile. # # Revision 1.2 1995/02/10 16:48:52 adam # Minor changes. # # Revision 1.1.1.1 1995/02/09 17:27:11 adam # Initial version of email gateway under CVS control. # SHELL=/bin/sh MAKE=make SUBDIR=res+log util fml ccl kernel CFLAGS=-Wall -g -pedantic -ansi #CC=gcc all: for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)"; 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 clean: rm -f lib/*.a for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done cleanup: rm -f lib `find $(SUBDIR) -name "*.[oa]" -print` rm -f `find $(SUBDIR) -name "core" -print` rm -f `find $(SUBDIR) -name "errlist" -print` rm -f `find $(SUBDIR) -name "a.out" -print` distclean: cleanup clean for i in $(SUBDIR); do (cd $$i; \ mv Makefile Makefile.old; \ sed '/^#Depend/q' Makefile; \ rm Makefile.old); done usedepend1: for i in $(SUBDIR); do (cd $$i; \ mv Makefile Makefile.tmp; \ sed 's/^if/#if/' Makefile; \ rm Makefile.tmp); done usedepend2: for i in $(SUBDIR); do (cd $$i; \ mv Makefile Makefile.tmp; \ sed '/^#Depend/q' Makefile; \ rm Makefile.tmp); done wc: wc `find . -name '*.[ch]'`