Makefile revision 1.13
1# $NetBSD: Makefile,v 1.13 2013/07/11 08:32:39 mrg Exp $ 2# 3# $eterna: Makefile,v 1.30 2010/07/11 00:34:27 mrg Exp $ 4# 5# berkeley (netbsd) makefile. see Makefile.boot for other systems. 6 7# compile-time options are: 8# NO_DEBUG /* don't include debugging support */ 9# NO_USER_SUPPORT /* don't support /~user requests */ 10# NO_CGIBIN_SUPPORT /* don't support cgi-bin requests */ 11# NO_DIRINDEX_SUPPORT /* don't support directory indexing */ 12# NO_DAEMON_MODE /* don't support daemon mode */ 13# NO_DYNAMIC_CONTENT /* don't support dynamic content updates */ 14# NO_SSL_SUPPORT /* don't support ssl (https) */ 15# DO_HTPASSWD /* support .htpasswd files */ 16# 17# these are usually set via the "COPTS" variable, or some other method 18# for setting CFLAGS relevant to your make, eg 19# % make COPTS="-DDO_HTPASSWD" 20 21COPTS+= -DDO_HTPASSWD 22PROG= httpd 23MAN= httpd.8 24BUILDSYMLINKS+=bozohttpd.8 httpd.8 25SRCS= bozohttpd.c ssl-bozo.c auth-bozo.c cgi-bozo.c daemon-bozo.c \ 26 tilde-luzah-bozo.c dir-index-bozo.c content-bozo.c 27SRCS+= main.c 28 29LDADD= -lcrypt 30DPADD= ${LIBCRYPT} 31 32WARNS?= 4 33 34.include <bsd.own.mk> 35 36.if ${MKCRYPTO} != "no" 37 38LDADD+= -lssl -lcrypto 39DPADD+= ${LIBSSL} ${LIBCRYPTO} 40 41.else 42 43COPTS+= -DNO_SSL_SUPPORT 44 45.endif 46 47# 48# Build release things. 49# 50NROFF?= nroff 51 52PREHTMLFROB= sed \ 53 -e 's/&/\&/' \ 54 -e 's/</\</' \ 55 -e 's/>/\>/' 56 57HTMLFROB= sed \ 58 -e 's/\([MC] "[^"]*\)<dd>$$/\1<b>"<\/b><dd>/' \ 59 -e 's/'"''"'/\”/' \ 60 -e 's/""/\“/' \ 61 -e 's/<a href="\.\.\/html[^>]*>\(.*\)<\/a>/\1/' 62 63TXTFROB= col -b 64 65bozohttpd.8.html: bozohttpd.8 66 $(PREHTMLFROB) $> | $(NROFF) -mdoc2html | $(HTMLFROB) > $@ 67 68bozohttpd.8.txt: bozohttpd.8 69 $(NROFF) -mdoc -Tascii $> | $(TXTFROB) > $@ 70 71CLEANFILES+= bozohttpd.8.html bozohttpd.8.txt 72 73.include <bsd.prog.mk> 74