File: Makefile

package info (click to toggle)
bozohttpd 20060517-6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 260 kB
  • ctags: 219
  • sloc: ansic: 2,486; makefile: 81; sh: 44
file content (62 lines) | stat: -rw-r--r-- 1,689 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#	$eterna: Makefile,v 1.26 2005/09/27 20:09:20 mrg Exp $
#
# berkeley (netbsd) makefile.  see Makefile.boot for other systems.

# compile-time options are:
#	DEBUG			/* include debugging support */
#	NO_USER_SUPPORT		/* don't support /~user requests */
#	NO_CGIBIN_SUPPORT	/* don't support cgi-bin requests */
#	NO_DIRINDEX_SUPPORT	/* don't support directory indexing */
#	NO_DAEMON_MODE		/* don't support daemon mode */
#	NO_DYNAMIC_CONTENT	/* don't support dynamic content updates */
#	NO_SSL_SUPPORT		/* don't support ssl (https) */
#	DO_HTPASSWD		/* support .htpasswd files */
#
# these are usually set via the "COPTS" variable, or some other method
# for setting CFLAGS relevant to your make, eg
#   % make COPTS="-DDEBUG -DDO_HTPASSWD"

PROG=	bozohttpd
MAN=	bozohttpd.8
SRCS=	bozohttpd.c ssl-bozo.c auth-bozo.c cgi-bozo.c daemon-bozo.c \
	tilde-luzah-bozo.c dir-index-bozo.c content-bozo.c

WARNS=	3

check:
	cd $(.CURDIR)/testsuite; $(MAKE) check

clean:
	cd $(.CURDIR)/testsuite; $(MAKE) clean

CRYPTOLIBS=	-lcrypto -lssl
CRYPTODEPS=	$(LIBCRYPTO) $(LIBSSL)

NROFF?=		nroff

# if not defining -DNO_SSL_SUPPORT
LDADD=	$(CRYPTOLIBS)
DPADD=	$(CRYPTODEPS)

PREHTMLFROB=	sed \
		    -e 's/&/\&/' \
		    -e 's/</\&lt;/' \
		    -e 's/>/\&gt;/'

HTMLFROB=	sed \
		    -e 's/\([MC] "[^"]*\)<dd>$$/\1<b>"<\/b><dd>/' \
		    -e 's/'"''"'/\&rdquo;/' \
		    -e 's/""/\&ldquo;/' \
		    -e 's/<a href="\.\.\/html[^>]*>\(.*\)<\/a>/\1/'

TXTFROB=	col -b

bozohttpd.8.html: bozohttpd.8
	$(PREHTMLFROB) $> | $(NROFF) -mdoc2html | $(HTMLFROB) > $@

bozohttpd.8.txt: bozohttpd.8
	$(NROFF) -mdoc -Tascii $> | $(TXTFROB) > $@

CLEANFILES+=	bozohttpd.8.html bozohttpd.8.txt

.include <bsd.prog.mk>