1 # Makefile for www gateway utility
5 # Revision 1.1 1995/10/20 11:49:24 adam
6 # First version of www gateway.
10 #CFLAGS=-g -Wall -pedantic -ansi
11 OLIB=../lib/libres+log.a
21 HTTPDDIR=/usr/local/etc/httpd
22 CGIBIN=$(HTTPDDIR)/cgi-bin
23 HTDOCS=$(HTTPDDIR)/htdocs
25 all: $(TPROG1) $(TPROG2) $(TPROG3)
28 $(CC) $(CFLAGS) -o $(TPROG1) $(P1) $(OLIB)
31 $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB)
34 $(CC) $(CFLAGS) -o $(TPROG3) $(P3) $(OLIB)
36 install: $(TPROG1) $(TPROG2) $(TPROG3)
37 @for x in $(TPROG1) $(TPROG2) $(TPROG3); do \
38 echo Installing $$x; \
40 chmod +x $(CGIBIN)/$$x; \
44 $(CC) -c $(DEFS) $(CFLAGS) $<
47 rm -f *.log *.[oa] $(TPROG1) $(TPROG2) $(TPROG3)
48 rm -f core mon.out gmon.out errlist *~
53 sed '/^#Depend/q' <Makefile >Makefile.tmp
54 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
55 mv -f Makefile.tmp Makefile
58 $(CPP) $(DEFS) -M *.c >.depend
60 #GNU make style depend
61 ifeq (.depend,$(wildcard .depend))
65 #Depend --- DOT NOT DELETE THIS LINE