xref: /openbsd/regress/lib/libc/regex/Makefile (revision 5af055cd)
1#	$OpenBSD: Makefile,v 1.10 2014/12/10 03:12:38 daniel Exp $
2#	$NetBSD: Makefile,v 1.2 1995/02/16 19:38:45 cgd Exp $
3
4PROG=	re
5SRCS=	main.c split.c debug.c regcomp.c regerror.c regexec.c regfree.c
6.PATH: ${.CURDIR}/../../../../lib/libc/regex
7CLEANFILES += t_exhaust
8
9CFLAGS+= -I${.CURDIR}/../../../../lib/libc/regex -DREDEBUG -DPOSIX_MISTAKE
10
11TESTS=	${.CURDIR}/tests
12
13REGRESS_TARGETS = do-reg do-reg-long do-reg-backref
14# cannot run with large limits
15#REGRESS_TARGETS += do-t_exhaust
16
17do-reg: ${PROG}
18	./re < ${TESTS}
19do-reg-long: ${PROG}
20	./re -el < ${TESTS}
21do-reg-backref: ${PROG}
22	./re -er < ${TESTS}
23#do-t_exhaust: t_exhaust
24#	./t_exhaust
25
26.include <bsd.regress.mk>
27