1 # Makefile for www gateway utility
5 # Revision 1.3 1995/10/23 16:55:33 adam
6 # A lot of changes - really.
8 # Revision 1.2 1995/10/20 14:02:40 adam
9 # First version of WWW gateway with embedded Tcl.
11 # Revision 1.1 1995/10/20 11:49:24 adam
12 # First version of www gateway.
16 #CFLAGS=-g -Wall -pedantic -ansi
17 OLIB=../lib/libres+log.a
18 TCLLIB=/usr/local/lib/libtcl7.4.a
20 HSCRIPTS=egwindex.html
25 P2=wproto.o winterp.o wsh.o wtcl.o whtml.o
30 HTTPDDIR=/usr/local/etc/httpd
31 CGIBIN=$(HTTPDDIR)/cgi-bin
32 HTDOCS=$(HTTPDDIR)/htdocs
34 all: $(TPROG1) $(TPROG2)
37 $(CC) $(CFLAGS) -o $(TPROG1) $(P1) $(OLIB)
40 $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB) $(TCLLIB) -lm
43 $(CC) $(CFLAGS) -o $(TPROG3) $(P3) $(OLIB)
45 install: $(TPROG1) $(TPROG2)
46 @for x in $(TPROG1) $(TPROG2); do \
47 echo Installing $$x; \
49 chmod +x $(CGIBIN)/$$x; \
51 ln -f $(CGIBIN)/$(TPROG2) $(CGIBIN)/egwtcl; \
52 ln -f $(CGIBIN)/$(TPROG2) $(CGIBIN)/egwhtml
53 @for x in $(WSCRIPTS); do \
54 echo Installing $$x; \
57 @for x in $(HSCRIPTS); do \
58 echo Installing $$x; \
63 $(CC) -c $(DEFS) $(CFLAGS) $<
66 rm -f *.log *.[oa] $(TPROG1) $(TPROG2) $(TPROG3)
67 rm -f core mon.out gmon.out errlist *~
72 sed '/^#Depend/q' <Makefile >Makefile.tmp
73 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
74 mv -f Makefile.tmp Makefile
77 $(CPP) $(DEFS) -M *.c >.depend
79 #GNU make style depend
80 ifeq (.depend,$(wildcard .depend))
84 #Depend --- DOT NOT DELETE THIS LINE