1 # Makefile for www gateway utility
5 # Revision 1.7 1995/10/31 16:56:23 adam
8 # Revision 1.6 1995/10/27 17:30:15 adam
9 # First search request/response that works.
11 # Revision 1.5 1995/10/27 15:12:02 adam
12 # IrTcl incorporated in the gateway.
13 # Better separation of script types.
14 # Z39.50 gateway scripts entered.
16 # Revision 1.4 1995/10/23 17:04:16 adam
17 # Added some initial z39 gateway scripts.
19 # Revision 1.3 1995/10/23 16:55:33 adam
20 # A lot of changes - really.
22 # Revision 1.2 1995/10/20 14:02:40 adam
23 # First version of WWW gateway with embedded Tcl.
25 # Revision 1.1 1995/10/20 11:49:24 adam
26 # First version of www gateway.
31 ZINC=-I../../yaz/include
32 ZLIB=../../yaz/lib/libyaz.a
33 MOSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a
34 LIBIRTCL=/usr/local/lib/libirtcl.a $(ZLIB) $(MOSILIB)
36 OLIB=../lib/libres+log.a
37 TCLLIB=/usr/local/lib/libtcl7.4.a
39 WSCRIPTS=egwscript targets.egw query.egw search.egw showfull.egw
40 HSCRIPTS=egwindex.html
41 CONFFILES=ztargets.conf
47 P2=wproto.o winterp.o wsh.o wtcl.o whtml.o wirtcl.o
51 INCLUDE=-I../include $(ZINC)
52 DEFS=$(INCLUDE) $(ZDEFS)
54 HTTPDDIR=/usr/local/etc/httpd
55 CGIBIN=$(HTTPDDIR)/cgi-bin
56 HTDOCS=$(HTTPDDIR)/htdocs
57 CONFDIR=$(HTTPDDIR)/conf
60 all: $(TPROG1) $(TPROG2)
63 $(CC) $(CFLAGS) -o $(TPROG1) $(P1) $(OLIB)
66 $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB) $(LIBIRTCL) $(TCLLIB) -lm
69 $(CC) $(CFLAGS) -o $(TPROG3) $(P3) $(OLIB)
71 install: install.prog install.script
73 install.prog: $(TPROG1) $(TPROG2)
74 @for x in $(TPROG1) $(TPROG2); do \
75 echo Installing $$x; \
77 chmod +x $(CGIBIN)/$$x; \
79 ln -f $(CGIBIN)/$(TPROG2) $(CGIBIN)/egwtcl; \
80 ln -f $(CGIBIN)/$(TPROG2) $(CGIBIN)/egwirtcl; \
81 ln -f $(CGIBIN)/$(TPROG2) $(CGIBIN)/egwhtml
84 @for x in $(WSCRIPTS); do \
85 echo Installing $$x; \
88 @for x in $(HSCRIPTS); do \
89 echo Installing $$x; \
92 @for x in $(CONFFILES); do \
93 echo Installing $$x; \
96 @for x in $(GIFFILES); do \
97 echo Installing $$x; \
102 $(CC) -c $(DEFS) $(CFLAGS) $<
105 rm -f *.log *.[oa] $(TPROG1) $(TPROG2) $(TPROG3)
106 rm -f core mon.out gmon.out errlist *~
111 sed '/^#Depend/q' <Makefile >Makefile.tmp
112 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
113 mv -f Makefile.tmp Makefile
116 $(CPP) $(DEFS) -M *.c >.depend
118 #GNU make style depend
119 ifeq (.depend,$(wildcard .depend))
123 #Depend --- DOT NOT DELETE THIS LINE