Makefile revision 1.12
11.12Smrg#	$NetBSD: Makefile,v 1.12 2010/09/20 23:11:38 mrg Exp $
21.2Stls#
31.12Smrg#	$eterna: Makefile,v 1.30 2010/07/11 00:34:27 mrg Exp $
41.11Smrg#
51.11Smrg# berkeley (netbsd) makefile.  see Makefile.boot for other systems.
61.1Stls
71.1Stls# compile-time options are:
81.12Smrg#	NO_DEBUG		/* don't include debugging support */
91.1Stls#	NO_USER_SUPPORT		/* don't support /~user requests */
101.1Stls#	NO_CGIBIN_SUPPORT	/* don't support cgi-bin requests */
111.1Stls#	NO_DIRINDEX_SUPPORT	/* don't support directory indexing */
121.1Stls#	NO_DAEMON_MODE		/* don't support daemon mode */
131.1Stls#	NO_DYNAMIC_CONTENT	/* don't support dynamic content updates */
141.1Stls#	NO_SSL_SUPPORT		/* don't support ssl (https) */
151.1Stls#	DO_HTPASSWD		/* support .htpasswd files */
161.12Smrg#
171.12Smrg# these are usually set via the "COPTS" variable, or some other method
181.12Smrg# for setting CFLAGS relevant to your make, eg
191.12Smrg#   % make COPTS="-DDO_HTPASSWD"
201.12Smrg
211.3SreedCOPTS+=	-DDO_HTPASSWD
221.2StlsPROG=	httpd
231.2StlsMAN=	httpd.8
241.6SmrgBUILDSYMLINKS+=bozohttpd.8 httpd.8
251.1StlsSRCS=	bozohttpd.c ssl-bozo.c auth-bozo.c cgi-bozo.c daemon-bozo.c \
261.1Stls	tilde-luzah-bozo.c dir-index-bozo.c content-bozo.c
271.11SmrgSRCS+=	main.c
281.1Stls
291.5SmrgLDADD=	-lcrypt
301.5SmrgDPADD=	${LIBCRYPT}
311.5Smrg
321.11SmrgWARNS?=	4
331.11Smrg
341.10Smrg.include <bsd.own.mk>
351.10Smrg
361.5Smrg.if ${MKCRYPTO} != "no"
371.5Smrg
381.5SmrgLDADD+=	-lssl -lcrypto
391.5SmrgDPADD+=	${LIBSSL} ${LIBCRYPTO}
401.5Smrg
411.5Smrg.else
421.5Smrg
431.5SmrgCOPTS+=	-DNO_SSL_SUPPORT
441.1Stls
451.5Smrg.endif
461.1Stls
471.1Stls.include <bsd.prog.mk>
48