# $NetBSD: Makefile,v 1.4 2023/02/24 19:01:11 agc Exp $

LIB=		agcre
SRCS+=		agcre.c
MAN=		libagcre.3 agcre_format.7
MLINKS+=	libagcre.3 agcre_regcomp.3
MLINKS+=	libagcre.3 agcre_regexec.3
MLINKS+=	libagcre.3 agcre_rev_regexec.3
MLINKS+=	libagcre.3 agcre_regfree.3
MLINKS+=	libagcre.3 agcre_regerror.3
MLINKS+=	libagcre.3 agcre_regnsub.3
MLINKS+=	libagcre.3 agcre_regasub.3
WARNS=		5

CPPFLAGS+=	-I${DIST}

.sinclude "../namespace.mk"

.ifndef PRODUCTION
CPPFLAGS+=	-g -O0
LDFLAGS+=	-g -O0
.endif

DIST=	${.CURDIR}/../dist
.PATH: ${DIST}

INCS=		agcre.h
INCSDIR=	/usr/include

.include <bsd.lib.mk>
