Makefile revision 1.1
1# $eterna: Makefile,v 1.26 2005/09/27 20:09:20 mrg Exp $ 2# 3# berkeley (netbsd) makefile. see Makefile.boot for other systems. 4 5# compile-time options are: 6# DEBUG /* include debugging support */ 7# NO_USER_SUPPORT /* don't support /~user requests */ 8# NO_CGIBIN_SUPPORT /* don't support cgi-bin requests */ 9# NO_DIRINDEX_SUPPORT /* don't support directory indexing */ 10# NO_DAEMON_MODE /* don't support daemon mode */ 11# NO_DYNAMIC_CONTENT /* don't support dynamic content updates */ 12# NO_SSL_SUPPORT /* don't support ssl (https) */ 13# DO_HTPASSWD /* support .htpasswd files */ 14# 15# these are usually set via the "COPTS" variable, or some other method 16# for setting CFLAGS relevant to your make, eg 17# % make COPTS="-DDEBUG -DDO_HTPASSWD" 18 19PROG= bozohttpd 20MAN= bozohttpd.8 21SRCS= bozohttpd.c ssl-bozo.c auth-bozo.c cgi-bozo.c daemon-bozo.c \ 22 tilde-luzah-bozo.c dir-index-bozo.c content-bozo.c 23 24WARNS= 3 25 26check: 27 cd $(.CURDIR)/testsuite; $(MAKE) check 28 29clean: 30 cd $(.CURDIR)/testsuite; $(MAKE) clean 31 32CRYPTOLIBS= -lcrypto -lssl 33CRYPTODEPS= $(LIBCRYPTO) $(LIBSSL) 34 35NROFF?= nroff 36 37# if not defining -DNO_SSL_SUPPORT 38LDADD= $(CRYPTOLIBS) 39DPADD= $(CRYPTODEPS) 40 41PREHTMLFROB= sed \ 42 -e 's/&/\&/' \ 43 -e 's/</\</' \ 44 -e 's/>/\>/' 45 46HTMLFROB= sed \ 47 -e 's/\([MC] "[^"]*\)<dd>$$/\1<b>"<\/b><dd>/' \ 48 -e 's/'"''"'/\”/' \ 49 -e 's/""/\“/' \ 50 -e 's/<a href="\.\.\/html[^>]*>\(.*\)<\/a>/\1/' 51 52TXTFROB= col -b 53 54bozohttpd.8.html: bozohttpd.8 55 $(PREHTMLFROB) $> | $(NROFF) -mdoc2html | $(HTMLFROB) > $@ 56 57bozohttpd.8.txt: bozohttpd.8 58 $(NROFF) -mdoc -Tascii $> | $(TXTFROB) > $@ 59 60CLEANFILES+= bozohttpd.8.html bozohttpd.8.txt 61 62.include <bsd.prog.mk> 63