[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / libexec / httpd

Annotation of src/libexec/httpd/Makefile, Revision 1.1.1.3

1.1.1.3 ! mrg         1: #      $eterna: Makefile,v 1.29 2010/05/10 02:24:30 mrg Exp $
1.1       tls         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:
1.1.1.2   mrg        19: PROG?= bozohttpd
1.1       tls        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
1.1.1.3 ! mrg        23: SRCS+= main.c
1.1       tls        24:
1.1.1.3 ! mrg        25: WARNS?=        4
1.1       tls        26:
                     27: check:
1.1.1.2   mrg        28:        cd $(.CURDIR)/testsuite && $(MAKE) check
1.1       tls        29:
1.1.1.2   mrg        30: .if ${PROG} == "bozohttpd"
1.1       tls        31: clean:
1.1.1.2   mrg        32:        cd $(.CURDIR)/testsuite && $(MAKE) clean
                     33: .endif
1.1       tls        34:
                     35: CRYPTOLIBS=    -lcrypto -lssl
                     36: CRYPTODEPS=    $(LIBCRYPTO) $(LIBSSL)
                     37:
                     38: NROFF?=                nroff
                     39:
                     40: # if not defining -DNO_SSL_SUPPORT
                     41: LDADD= $(CRYPTOLIBS)
                     42: DPADD= $(CRYPTODEPS)
                     43:
                     44: PREHTMLFROB=   sed \
                     45:                    -e 's/&/\&/' \
                     46:                    -e 's/</\&lt;/' \
                     47:                    -e 's/>/\&gt;/'
                     48:
                     49: HTMLFROB=      sed \
                     50:                    -e 's/\([MC] "[^"]*\)<dd>$$/\1<b>"<\/b><dd>/' \
                     51:                    -e 's/'"''"'/\&rdquo;/' \
                     52:                    -e 's/""/\&ldquo;/' \
                     53:                    -e 's/<a href="\.\.\/html[^>]*>\(.*\)<\/a>/\1/'
                     54:
                     55: TXTFROB=       col -b
                     56:
                     57: bozohttpd.8.html: bozohttpd.8
                     58:        $(PREHTMLFROB) $> | $(NROFF) -mdoc2html | $(HTMLFROB) > $@
                     59:
                     60: bozohttpd.8.txt: bozohttpd.8
                     61:        $(NROFF) -mdoc -Tascii $> | $(TXTFROB) > $@
                     62:
                     63: CLEANFILES+=   bozohttpd.8.html bozohttpd.8.txt
                     64:
                     65: .include <bsd.prog.mk>

CVSweb <webmaster@jp.NetBSD.org>