source: trunk/minix/commands/httpd/Makefile@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.7 KB
Line 
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
9CFLAGS= -O -D_MINIX -D_POSIX_SOURCE -DDAEMON=1
10#CFLAGS= -O -D_MINIX -D_POSIX_SOURCE -DDAEMON=1 -DDEBUG=9
11LDFLAGS=-i
12BINDIR=/usr/local/bin
13
14HTTPD_OBJS= httpd.o utility.o request.o process.o reply.o \
15 police.o cgiexec.o net.o config.o pass.o proxy.o
16DIR2HTML_OBJS= dir2html.o
17
18all: httpd dir2html
19
20httpd: $(HTTPD_OBJS)
21 $(CC) $(LDFLAGS) -o $@ $(HTTPD_OBJS)
22 install -S 16kw $@
23
24dir2html: $(DIR2HTML_OBJS)
25 $(CC) $(LDFLAGS) -o $@ $(DIR2HTML_OBJS)
26 install -S 8kw $@
27
28clean:
29 rm -f httpd $(HTTPD_OBJS) dir2html $(DIR2HTML_OBJS) *.bak
30
31install: $(BINDIR)/httpd $(BINDIR)/in.httpd $(BINDIR)/dir2html
32
33tar:
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
45httpd.o: httpd.c http.h utility.h net.h config.h
46utility.o: utility.c utility.h config.h
47request.o: request.c http.h utility.h config.h
48process.o: process.c http.h utility.h
49reply.o: reply.c http.h utility.h net.h config.h
50police.o: police.c http.h utility.h config.h pass.h
51cgiexec.o: cgiexec.c http.h config.h
52net.o: net.c net.h
53config.o: config.c utility.h config.h
54pass.o: pass.c pass.h
55proxy.o: proxy.c http.h
56dir2html.o: dir2html.c
57
58installman:
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
Note: See TracBrowser for help on using the repository browser.