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
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
21 $(CC
) $(LDFLAGS
) -o
$@
$(HTTPD_OBJS
)
24 dir2html
: $(DIR2HTML_OBJS
)
25 $(CC
) $(LDFLAGS
) -o
$@
$(DIR2HTML_OBJS
)
29 rm -f httpd
$(HTTPD_OBJS
) dir2html
$(DIR2HTML_OBJS
) *.bak
31 install: $(BINDIR
)/httpd
$(BINDIR
)/in.httpd
$(BINDIR
)/dir2html
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
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
53 config.o
: config.c utility.h config.h
55 proxy.o
: proxy.c http.h
56 dir2html.o
: dir2html.c
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