Home | History | Annotate | Line # | Download | only in httpd
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 
     19 PROG=	bozohttpd
     20 MAN=	bozohttpd.8
     21 SRCS=	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 
     24 WARNS=	3
     25 
     26 check:
     27 	cd $(.CURDIR)/testsuite; $(MAKE) check
     28 
     29 clean:
     30 	cd $(.CURDIR)/testsuite; $(MAKE) clean
     31 
     32 CRYPTOLIBS=	-lcrypto -lssl
     33 CRYPTODEPS=	$(LIBCRYPTO) $(LIBSSL)
     34 
     35 NROFF?=		nroff
     36 
     37 # if not defining -DNO_SSL_SUPPORT
     38 LDADD=	$(CRYPTOLIBS)
     39 DPADD=	$(CRYPTODEPS)
     40 
     41 PREHTMLFROB=	sed \
     42 		    -e 's/&/\&/' \
     43 		    -e 's/</\&lt;/' \
     44 		    -e 's/>/\&gt;/'
     45 
     46 HTMLFROB=	sed \
     47 		    -e 's/\([MC] "[^"]*\)<dd>$$/\1<b>"<\/b><dd>/' \
     48 		    -e 's/'"''"'/\&rdquo;/' \
     49 		    -e 's/""/\&ldquo;/' \
     50 		    -e 's/<a href="\.\.\/html[^>]*>\(.*\)<\/a>/\1/'
     51 
     52 TXTFROB=	col -b
     53 
     54 bozohttpd.8.html: bozohttpd.8
     55 	$(PREHTMLFROB) $> | $(NROFF) -mdoc2html | $(HTMLFROB) > $@
     56 
     57 bozohttpd.8.txt: bozohttpd.8
     58 	$(NROFF) -mdoc -Tascii $> | $(TXTFROB) > $@
     59 
     60 CLEANFILES+=	bozohttpd.8.html bozohttpd.8.txt
     61 
     62 .include <bsd.prog.mk>
     63