1 # Makefile for www gateway utility
5 # Revision 1.20 1996/01/03 15:19:35 adam
8 # New maintanance function to print contact info, etc.
10 # Revision 1.19 1996/01/02 10:52:25 adam
11 # In images Alt=... are defined.
13 # Revision 1.18 1995/12/20 16:31:30 adam
14 # Bug fix: shell might terminate even though new request was initiated
15 # by the cgi interface program.
16 # Work on more simple user interface and Europagate buttons.
18 # Revision 1.17 1995/11/14 16:31:35 adam
19 # Temporary remove of ccl entry.
21 # Revision 1.16 1995/11/14 16:01:50 adam
22 # Bug fix: didn't use correct database(s) when 'all' checkbox was selected.
24 # Revision 1.15 1995/11/13 18:17:46 adam
25 # Better error handling.
27 # Revision 1.14 1995/11/13 15:41:40 adam
29 # Gateway uses record element set names B(rief) and F(ull).
30 # Bug fix. Didn't save idAuthentication correctly.
32 # Revision 1.13 1995/11/08 18:07:22 adam
35 # Revision 1.12 1995/11/08 16:14:32 adam
36 # Many improvements and bug fixes.
37 # First version that ran on dtbsun.
39 # Revision 1.11 1995/11/07 14:56:58 adam
40 # Work on search in multiple targets.
41 # New wtcl command: wlog.
42 # Optional timeout parameter to zwait.
44 # Revision 1.10 1995/11/07 10:44:29 adam
45 # Work on search in multiple targets.
47 # Revision 1.9 1995/11/06 17:44:20 adam
48 # State reestablised when shell restarts. History of previous
51 # Revision 1.8 1995/11/06 10:51:14 adam
52 # End of response marker in response from wsh/wproto to wcgi.
53 # Shells are respawned when necessary.
55 # Revision 1.7 1995/10/31 16:56:23 adam
56 # Record presentation.
58 # Revision 1.6 1995/10/27 17:30:15 adam
59 # First search request/response that works.
61 # Revision 1.5 1995/10/27 15:12:02 adam
62 # IrTcl incorporated in the gateway.
63 # Better separation of script types.
64 # Z39.50 gateway scripts entered.
66 # Revision 1.4 1995/10/23 17:04:16 adam
67 # Added some initial z39 gateway scripts.
69 # Revision 1.3 1995/10/23 16:55:33 adam
70 # A lot of changes - really.
72 # Revision 1.2 1995/10/20 14:02:40 adam
73 # First version of WWW gateway with embedded Tcl.
75 # Revision 1.1 1995/10/20 11:49:24 adam
76 # First version of www gateway.
81 #ZINC=-I../../yaz/include
83 MOSILIB=../../xtimosi/src/libmosi.a -lrfc
84 LIBIRTCL=/usr/local/lib/libirtcl.a $(ZLIB) $(MOSILIB)
85 #NETLIB=-lnsl -lsocket
87 OLIB=../lib/util.a ../lib/libres+log.a
88 TCLLIB=/usr/local/lib/libtcl7.4.a
90 WSCRIPTS=egwscript targets.egw query.egw search.egw showfull.egw z39util.tcl \
91 mtargets.egw mquery.egw msearch.egw history.egw
92 HSCRIPTS=egwindex.html
93 CONFFILES=ztargets.conf
98 P2=wproto.o winterp.o wsh.o wtcl.o whtml.o wirtcl.o
102 INCLUDE=-I../include $(ZINC)
103 DEFS=$(INCLUDE) $(ZDEFS)
105 HTTPDDIR=/usr/local/etc/httpd
106 CGIBIN=$(HTTPDDIR)/cgi-bin
107 HTDOCS=$(HTTPDDIR)/htdocs
108 CONFDIR=$(HTTPDDIR)/conf
111 all: $(TPROG1) $(TPROG2)
114 $(CC) $(CFLAGS) -o $(TPROG1) $(P1) $(OLIB)
117 $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB) $(LIBIRTCL) \
118 $(NETLIB) $(TCLLIB) -lm
121 $(CC) $(CFLAGS) -o $(TPROG3) $(P3) $(OLIB)
123 install: install.prog install.script
125 install.prog: $(TPROG1) $(TPROG2)
126 @for x in $(TPROG1) $(TPROG2); do \
127 echo Installing $$x; \
129 chmod +x $(CGIBIN)/$$x; \
131 for p in egwtcl egwirtcl egwhtml; do \
132 rm -f $(CGIBIN)/$$p; \
133 ln $(CGIBIN)/$(TPROG2) $(CGIBIN)/$$p; \
137 @for x in $(WSCRIPTS); do \
138 echo Installing $$x; \
141 @for x in $(HSCRIPTS); do \
142 echo Installing $$x; \
145 @for x in $(CONFFILES); do \
146 echo Installing $$x; \
149 @for x in gif/*.gif; do \
150 echo Installing $$x; \
155 $(CC) -c $(DEFS) $(CFLAGS) $<
158 rm -f *.log *.[oa] $(TPROG1) $(TPROG2) $(TPROG3)
159 rm -f core mon.out gmon.out errlist *~
164 sed '/^#Depend/q' <Makefile >Makefile.tmp
165 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
166 mv -f Makefile.tmp Makefile
169 $(CPP) $(DEFS) -M *.c >.depend
171 #GNU make style depend
172 ifeq (.depend,$(wildcard .depend))
176 #Depend --- DOT NOT DELETE THIS LINE