1 # Makefile for www gateway utility
5 # Revision 1.4 1995/10/23 17:04:16 adam
6 # Added some initial z39 gateway scripts.
8 # Revision 1.3 1995/10/23 16:55:33 adam
9 # A lot of changes - really.
11 # Revision 1.2 1995/10/20 14:02:40 adam
12 # First version of WWW gateway with embedded Tcl.
14 # Revision 1.1 1995/10/20 11:49:24 adam
15 # First version of www gateway.
19 #CFLAGS=-g -Wall -pedantic -ansi
20 OLIB=../lib/libres+log.a
21 TCLLIB=/usr/local/lib/libtcl7.5.a
22 WSCRIPTS=egwscript targets.egw query.egw search.egw
23 HSCRIPTS=egwindex.html
24 CONFFILES=ztargets.conf
30 P2=wproto.o winterp.o wsh.o wtcl.o whtml.o
35 HTTPDDIR=/usr/local/etc/httpd
36 CGIBIN=$(HTTPDDIR)/cgi-bin
37 HTDOCS=$(HTTPDDIR)/htdocs
38 CONFDIR=$(HTTPDDIR)/conf
41 all: $(TPROG1) $(TPROG2)
44 $(CC) $(CFLAGS) -o $(TPROG1) $(P1) $(OLIB)
47 $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB) $(TCLLIB) -lm
50 $(CC) $(CFLAGS) -o $(TPROG3) $(P3) $(OLIB)
52 install: $(TPROG1) $(TPROG2)
53 @for x in $(TPROG1) $(TPROG2); do \
54 echo Installing $$x; \
56 chmod +x $(CGIBIN)/$$x; \
58 ln -f $(CGIBIN)/$(TPROG2) $(CGIBIN)/egwtcl; \
59 ln -f $(CGIBIN)/$(TPROG2) $(CGIBIN)/egwhtml
60 @for x in $(WSCRIPTS); do \
61 echo Installing $$x; \
64 @for x in $(HSCRIPTS); do \
65 echo Installing $$x; \
68 @for x in $(CONFFILES); do \
69 echo Installing $$x; \
72 @for x in $(GIFFILES); do \
73 echo Installing $$x; \
78 $(CC) -c $(DEFS) $(CFLAGS) $<
81 rm -f *.log *.[oa] $(TPROG1) $(TPROG2) $(TPROG3)
82 rm -f core mon.out gmon.out errlist *~
87 sed '/^#Depend/q' <Makefile >Makefile.tmp
88 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
89 mv -f Makefile.tmp Makefile
92 $(CPP) $(DEFS) -M *.c >.depend
94 #GNU make style depend
95 ifeq (.depend,$(wildcard .depend))
99 #Depend --- DOT NOT DELETE THIS LINE