1 # Makefile for www gateway utility
5 # Revision 1.2 1995/10/20 14:02:40 adam
6 # First version of WWW gateway with embedded Tcl.
8 # Revision 1.1 1995/10/20 11:49:24 adam
9 # First version of www gateway.
13 #CFLAGS=-g -Wall -pedantic -ansi
14 OLIB=../lib/libres+log.a
15 TCLLIB=/usr/local/lib/libtcl7.5.a
17 HSCRIPTS=egwindex.html
22 P2=wproto.o winterp.o wsh.o wtcl.o whtml.o
27 HTTPDDIR=/usr/local/etc/httpd
28 CGIBIN=$(HTTPDDIR)/cgi-bin
29 HTDOCS=$(HTTPDDIR)/htdocs
31 all: $(TPROG1) $(TPROG2)
34 $(CC) $(CFLAGS) -o $(TPROG1) $(P1) $(OLIB)
37 $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB) $(TCLLIB) -lm
40 $(CC) $(CFLAGS) -o $(TPROG3) $(P3) $(OLIB)
42 install: $(TPROG1) $(TPROG2)
43 @for x in $(TPROG1) $(TPROG2); do \
44 echo Installing $$x; \
46 chmod +x $(CGIBIN)/$$x; \
48 @for x in $(WSCRIPTS); do \
49 echo Installing $$x; \
52 @for x in $(HSCRIPTS); do \
53 echo Installing $$x; \
58 $(CC) -c $(DEFS) $(CFLAGS) $<
61 rm -f *.log *.[oa] $(TPROG1) $(TPROG2) $(TPROG3)
62 rm -f core mon.out gmon.out errlist *~
67 sed '/^#Depend/q' <Makefile >Makefile.tmp
68 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
69 mv -f Makefile.tmp Makefile
72 $(CPP) $(DEFS) -M *.c >.depend
74 #GNU make style depend
75 ifeq (.depend,$(wildcard .depend))
79 #Depend --- DOT NOT DELETE THIS LINE