- simplify findhole() for use for 1 page only
[minix.git] / commands / httpd0995 / Makefile
blob19b52c4cb9642a470b5d78000a6854299de8b006
1 # Makefile for httpd
3 # 02/17/1996 Michael Temari <Michael@TemWare.Com>
4 # 07/07/1996 Initial Release Michael Temari <Michael@TemWare.Com>
5 # 12/29/2002 Michael Temari <Michael@TemWare.Com>
6 # 07/07/2003 Al Woodhull <asw@woodhull.com>
9 CFLAGS= -O -D_MINIX -D_POSIX_SOURCE -DDAEMON=1
10 #CFLAGS= -O -D_MINIX -D_POSIX_SOURCE -DDAEMON=1 -DDEBUG=9
11 LDFLAGS=-i
12 BINDIR=/usr/local/bin
14 HTTPD_OBJS= httpd.o utility.o request.o process.o reply.o \
15 police.o cgiexec.o net.o config.o pass.o proxy.o
16 DIR2HTML_OBJS= dir2html.o
18 all: httpd dir2html
20 httpd: $(HTTPD_OBJS)
21 $(CC) $(LDFLAGS) -o $@ $(HTTPD_OBJS)
22 install -S 16kw $@
24 dir2html: $(DIR2HTML_OBJS)
25 $(CC) $(LDFLAGS) -o $@ $(DIR2HTML_OBJS)
26 install -S 8kw $@
28 clean:
29 rm -f httpd $(HTTPD_OBJS) dir2html $(DIR2HTML_OBJS) *.bak
31 install: $(BINDIR)/httpd $(BINDIR)/in.httpd $(BINDIR)/dir2html
33 tar:
34 tar cvf ../httpd.tar Makefile README *.c *.h *.sh *.conf *.mtype
36 $(BINDIR)/httpd: httpd
37 install -cs -o bin $? $@
39 $(BINDIR)/in.httpd: $(BINDIR)/httpd
40 install -l $? $@
42 $(BINDIR)/dir2html: dir2html
43 install -cs -o bin $? $@
45 httpd.o: httpd.c http.h utility.h net.h config.h
46 utility.o: utility.c utility.h config.h
47 request.o: request.c http.h utility.h config.h
48 process.o: process.c http.h utility.h
49 reply.o: reply.c http.h utility.h net.h config.h
50 police.o: police.c http.h utility.h config.h pass.h
51 cgiexec.o: cgiexec.c http.h config.h
52 net.o: net.c net.h
53 config.o: config.c utility.h config.h
54 pass.o: pass.c pass.h
55 proxy.o: proxy.c http.h
56 dir2html.o: dir2html.c
58 installman:
59 mkdir -p /usr/local/man/man5
60 mkdir -p /usr/local/man/man8
61 cp -p httpd.conf.5 http_status.5 /usr/local/man/man5
62 cp -p httpd.8 /usr/local/man/man8
63 makewhatis /usr/local/man