1 | # Makefile for httpd
|
---|
2 | #
|
---|
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 <awoodhull@hampshire.edu>
|
---|
7 | #
|
---|
8 |
|
---|
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
|
---|
13 |
|
---|
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
|
---|
17 |
|
---|
18 | all: httpd dir2html
|
---|
19 |
|
---|
20 | httpd: $(HTTPD_OBJS)
|
---|
21 | $(CC) $(LDFLAGS) -o $@ $(HTTPD_OBJS)
|
---|
22 | install -S 16kw $@
|
---|
23 |
|
---|
24 | dir2html: $(DIR2HTML_OBJS)
|
---|
25 | $(CC) $(LDFLAGS) -o $@ $(DIR2HTML_OBJS)
|
---|
26 | install -S 8kw $@
|
---|
27 |
|
---|
28 | clean:
|
---|
29 | rm -f httpd $(HTTPD_OBJS) dir2html $(DIR2HTML_OBJS) *.bak
|
---|
30 |
|
---|
31 | install: $(BINDIR)/httpd $(BINDIR)/in.httpd $(BINDIR)/dir2html
|
---|
32 |
|
---|
33 | tar:
|
---|
34 | tar cvf ../httpd.tar Makefile README *.c *.h *.sh *.conf *.mtype
|
---|
35 |
|
---|
36 | $(BINDIR)/httpd: httpd
|
---|
37 | install -cs -o bin $? $@
|
---|
38 |
|
---|
39 | $(BINDIR)/in.httpd: $(BINDIR)/httpd
|
---|
40 | install -l $? $@
|
---|
41 |
|
---|
42 | $(BINDIR)/dir2html: dir2html
|
---|
43 | install -cs -o bin $? $@
|
---|
44 |
|
---|
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
|
---|
57 |
|
---|
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
|
---|
64 |
|
---|
65 |
|
---|