From: Adam Dickmeiss Date: Thu, 25 Apr 1996 10:21:24 +0000 (+0000) Subject: Makefile enhanced. X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=90d9b8fc5a7b5cdbf67e6cdad8e1ab098c0ebef7;p=egate.git Makefile enhanced. --- diff --git a/Makefile b/Makefile index 1d12172..86c1331 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,30 @@ -# Top level Makefile for Email gateway. +# Top level Makefile for the Z39.50 gateway (WWW and email) # Europagate, 1994-1995. # -# $Id: Makefile,v 1.29 1996/02/29 15:33:18 adam Exp $ +# $Id: Makefile,v 1.30 1996/04/25 10:21:24 adam Exp $ # SHELL=/bin/sh MAKE=make #CC=checkergcc CPP=$(CC) -E -LIBDIR=/usr/local/lib/emailgw + +# Email gateway settings -------------------------------------- + +# Directory for the email gateway files +EMAILLIBDIR=/usr/local/lib/emailgw # GNU regex package location #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 +# WWW gateway settings ---------------------------------------- + +# Install directories +HTTPDDIR=/usr/local/etc/httpd +CGIDIR=$(HTTPDDIR)/cgi-bin +HTDOCS=$(HTTPDDIR)/htdocs +EGWDIR=$(HTTPDDIR)/egw +GIFDIR=$(HTDOCS)/egwgif # Location of Tcl TCLLIB=/usr/local/lib/libtcl7.5.a @@ -25,6 +35,11 @@ IRTCLDIR=../../ir-tcl IRTCLLIB=$(IRTCLDIR)/libirtcl.a IRTCLINC=-I$(IRTCLDIR) +# Common settings --------------------------------------------- + +# Other libraries libraries needed on some systems +#NETLIB=-lnsl -lsocket + # If you are using YAZ uncomment these lines ZACC=zlayer-yaz ZINC=-I../../yaz/include @@ -37,28 +52,43 @@ ZDEFS= #ZLIB=/home/proj/zdist/zdist102b1-1/libz3950/libz3950.a #ZDEFS=-DLOW_TO_HIGH -Dfar= +# End of settings --------------------------------------------- +# You probably don't have to edit the things below. + SUBDIR=res+log util ccl fml $(ZACC) kernel www +SUBDIREMAIL=res+log util ccl fml $(ZACC) kernel +SUBDIRWWW=res+log util $(ZACC) 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)" TCLLIB="$(TCLLIB)" TCLINC="$(TCLINC)" IRTCLLIB="$(IRTCLLIB)" IRTCLINC="$(IRTCLINC)"; 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)" EGWDIR="$(EGWDIR)"; then cd ..; else exit 1; fi; done + +email: + for i in $(SUBDIREMAIL); 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 + +egw: + for i in $(SUBDIRWWW); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" ZINC="$(ZINC)" ZLIB="$(ZLIB)" CPP="$(CPP)" NETLIB="$(NETLIB)" ZDEFS="$(ZDEFS)" TCLLIB="$(TCLLIB)" TCLINC="$(TCLINC)" IRTCLLIB="$(IRTCLLIB)" IRTCLINC="$(IRTCLINC)" EGWDIR="$(EGWDIR)"; 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)" TCLINC="$(TCLINC)" IRTCLINC="$(IRTCLINC)" depend; then cd ..; else exit 1; fi; done -install: - @if [ ! -d $(LIBDIR) ]; then \ - echo "Making directory $(LIBDIR)"; \ - mkdir $(LIBDIR); \ +install.email: + @if [ ! -d $(EMAILLIBDIR) ]; then \ + echo "Making directory $(EMAILLIBDIR)"; \ + mkdir $(EMAILLIBDIR); \ fi @cd kernel; for i in eti monitor kernel; do \ echo "Installing $$i"; \ - cp $$i $(LIBDIR); chmod +x $(LIBDIR)/$$i; \ + cp $$i $(EMAILLIBDIR); chmod +x $(EMAILLIBDIR)/$$i; \ done @cd kernel; for i in *.res *.bib *.fml; do \ echo "Installing $$i"; \ - cp $$i $(LIBDIR);\ + cp $$i $(EMAILLIBDIR);\ done - + +install.egw: + cd www; $(MAKE) HTTPDDIR="$(HTTPDDIR)" CGIDIR="$(CGIDIR)" HTDOCS="$(HTDOCS)" EGWDIR="$(EGWDIR)" GIFDIR="$(GIFDIR)" install + clean: -rm -f lib/*.a for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done @@ -88,4 +118,3 @@ gnudepend: wc: wc `find . -name '*.[ch]'` -