NetBSD/libexec/httpd/libbozohttpd/Makefile

37 lines
589 B
Makefile

# $eterna: Makefile,v 1.1 2010/05/10 02:24:31 mrg Exp $
.PATH: $(.CURDIR)/..
# build bozohttpd library
LIB= bozohttpd
COPTS+= -I$(.CURDIR)/..
COPTS+= -DDO_HTPASSWD
CPPFLAGS+= -DDO_HTPASSWD
SRCS= bozohttpd.c ssl-bozo.c auth-bozo.c cgi-bozo.c daemon-bozo.c
SRCS+= tilde-luzah-bozo.c dir-index-bozo.c content-bozo.c
LDADD= -lcrypt
DPADD= ${LIBCRYPT}
MAN= libbozohttpd.3
WARNS= 4
INCS= bozohttpd.h
INCSDIR= /usr/include
.include <bsd.own.mk>
.if ${MKCRYPTO} != "no"
LDADD+= -lssl -lcrypto
DPADD+= ${LIBSSL} ${LIBCRYPTO}
.else
COPTS+= -DNO_SSL_SUPPORT
.endif
.include <bsd.lib.mk>