X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=www%2FMakefile;h=e473d744dee8b9d2b4e9439e979abf11cf18abb9;hb=3871eda3b3a1518d4d18c1ffc0ed0375cb88bdf5;hp=8d73a0eeb77e8d6111d116329f8d8fabdc215def;hpb=d66a4b9debb168d9a03368429bcc933c57553c74;p=egate.git diff --git a/www/Makefile b/www/Makefile index 8d73a0e..e473d74 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1,65 +1,101 @@ # Makefile for www gateway utility # Europagate, 1995 # -# $Log: Makefile,v $ -# Revision 1.4 1995/10/23 17:04:16 adam -# Added some initial z39 gateway scripts. +# $Id: Makefile,v 1.31 1996/02/20 16:07:39 adam Exp $ # -# Revision 1.3 1995/10/23 16:55:33 adam -# A lot of changes - really. -# -# Revision 1.2 1995/10/20 14:02:40 adam -# First version of WWW gateway with embedded Tcl. +SHELL=/bin/sh # -# Revision 1.1 1995/10/20 11:49:24 adam -# First version of www gateway. +ZDEFS= +#ZINC=-I../../yaz/include +ZLIB=../../yaz/lib/libyaz.a +#ZLIB=-lyaz +#MOSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a +LIBIRTCL=../../ir-tcl/libirtcl.a $(ZLIB) $(MOSILIB) +#NETLIB=-lnsl -lsocket # -SHELL=/bin/sh -INCLUDE=-I../include -#CFLAGS=-g -Wall -pedantic -ansi -OLIB=../lib/libres+log.a +OLIB=../lib/util.a ../lib/libres+log.a TCLLIB=/usr/local/lib/libtcl7.5.a -WSCRIPTS=egwscript targets.egw query.egw search.egw +TCLINC=-I../../ir-tcl +# +WSCRIPTS=egwscript targets.egw query.egw search.egw showfull.egw z39util.tcl \ + mtargets.egw mquery.egw msearch.egw history.egw tform.egw tdefine.egw HSCRIPTS=egwindex.html -CONFFILES=ztargets.conf -GIFFILES=webgate.gif +CONFFILES=egw.res ztargets.conf TPROG1=egwcgi TPROG2=egwsh TPROG3=wtest P1=wcgi.o -P2=wproto.o winterp.o wsh.o wtcl.o whtml.o +P2=wproto.o winterp.o wsh.o wtcl.o whtml.o wirtcl.o P3=wproto.o wtest.o CPP=$(CC) -E -DEFS=$(INCLUDE) HTTPDDIR=/usr/local/etc/httpd -CGIBIN=$(HTTPDDIR)/cgi-bin +CGIDIR=$(HTTPDDIR)/cgi-bin HTDOCS=$(HTTPDDIR)/htdocs -CONFDIR=$(HTTPDDIR)/conf -GIFDIR=$(HTDOCS)/gif +EGWDIR=$(HTTPDDIR)/egw +LOGDIR=$(HTTPDDIR)/logs +GIFDIR=$(HTDOCS)/egwgif + +#HTTPDDIR=/usr/local/www +#CGIDIR=/usr/local/www/cgi-bin +#HTDOCS=/data2/html/egw/html +#EGWDIR=/data2/html/egw/scripts +#LOGDIR=/data2/html/egw/logs +#GIFDIR=/data2/html/egw/gif + +INCLUDE=-I../include $(ZINC) $(TCLINC) +DEFS=$(INCLUDE) $(ZDEFS) -DEGWDIR=\"$(EGWDIR)\" all: $(TPROG1) $(TPROG2) -$(TPROG1): $(P1) - $(CC) $(CFLAGS) -o $(TPROG1) $(P1) $(OLIB) +$(TPROG1): $(P1) $(OLIB) + $(CC) $(CFLAGS) -o $(TPROG1) $(P1) $(OLIB) $(ZLIB) -$(TPROG2): $(P2) - $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB) $(TCLLIB) -lm +$(TPROG2): $(P2) $(OLIB) + $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB) $(LIBIRTCL) \ + $(NETLIB) $(TCLLIB) -lm -$(TPROG3): $(P3) - $(CC) $(CFLAGS) -o $(TPROG3) $(P3) $(OLIB) +$(TPROG3): $(P3) $(OLIB) + $(CC) $(CFLAGS) -o $(TPROG3) $(P3) $(OLIB) $(ZLIB) -install: $(TPROG1) $(TPROG2) - @for x in $(TPROG1) $(TPROG2); do \ +install: install.prog install.script install.gif + +install.prog: $(TPROG1) $(TPROG2) + @if [ ! -d $(CGIDIR) ]; then \ + echo "Making directory $(CGIDIR)"; \ + mkdir $(CGIDIR); \ + fi + @if [ ! -d $(EGWDIR) ]; then \ + echo "Making directory $(EGWDIR)"; \ + mkdir $(EGWDIR); \ + fi + @for x in $(TPROG1); do \ + echo Installing $$x; \ + cp $$x $(CGIDIR); \ + chmod a+x $(CGIDIR)/$$x; \ + done; \ + for x in $(TPROG2); do \ echo Installing $$x; \ - cp $$x $(CGIBIN); \ - chmod +x $(CGIBIN)/$$x; \ + cp $$x $(EGWDIR); \ + chmod a+x $(EGWDIR)/$$x; \ done; \ - ln -f $(CGIBIN)/$(TPROG2) $(CGIBIN)/egwtcl; \ - ln -f $(CGIBIN)/$(TPROG2) $(CGIBIN)/egwhtml + for p in egwtcl egwirtcl egwhtml; do \ + rm -f $(EGWDIR)/$$p; \ + ln $(EGWDIR)/$(TPROG2) $(EGWDIR)/$$p; \ + done + +install.script: + @if [ ! -d $(EGWDIR) ]; then \ + echo "Making directory $(EGWDIR)"; \ + mkdir $(EGWDIR); \ + fi + @if [ ! -d $(HTDOCS) ]; then \ + echo "Making directory $(HTDOCS)"; \ + mkdir $(HTDOCS); \ + fi @for x in $(WSCRIPTS); do \ echo Installing $$x; \ - cp $$x $(CGIBIN); \ + cp $$x $(EGWDIR)/$$x; \ done @for x in $(HSCRIPTS); do \ echo Installing $$x; \ @@ -67,9 +103,15 @@ install: $(TPROG1) $(TPROG2) done @for x in $(CONFFILES); do \ echo Installing $$x; \ - cp $$x $(CONFDIR); \ + cp $$x $(EGWDIR); \ done - @for x in $(GIFFILES); do \ + +install.gif: + @if [ ! -d $(GIFDIR) ]; then \ + echo "Making directory $(GIFDIR)"; \ + mkdir $(GIFDIR); \ + fi + @for x in gif/*.gif; do \ echo Installing $$x; \ cp $$x $(GIFDIR); \ done