1TRESRC= ${.CURDIR}/../../contrib/tre/lib 2 3.PATH: ${TRESRC} ${.CURDIR}/../libc/tre-regex 4 5CMAPS+= ${.CURDIR}/tre-regex/Symbol.map 6 7SRCS+= tre-ast.c \ 8 tre-compile.c \ 9 tre-match-backtrack.c \ 10 tre-match-parallel.c \ 11 tre-mem.c \ 12 tre-parse.c \ 13 tre-stack.c \ 14 regcomp.c \ 15 regerror.c \ 16 regexec.c 17 18CFLAGS+= -I${.CURDIR}/../libc/tre-regex 19CFLAGS+= -I${.CURDIR}/../libc/locale 20CFLAGS+= -I${TRESRC} 21CFLAGS+= -DHAVE_CONFIG_H 22 23.if ${LIB} == "c" 24INCS= ${.CURDIR}/../libc/tre-regex/regex.h 25MAN+= regex.3 26MAN+= re_format.7 27 28MLINKS+=regex.3 regcomp.3 \ 29 regex.3 regcomp_l.3 \ 30 regex.3 regncomp.3 \ 31 regex.3 regncomp_l.3 \ 32 regex.3 regwcomp.3 \ 33 regex.3 regwcomp_l.3 \ 34 regex.3 regwncomp.3 \ 35 regex.3 regwncomp_l.3 \ 36 regex.3 regnexec.3 \ 37 regex.3 regwexec.3 \ 38 regex.3 regwnexec.3 \ 39 regex.3 regexec.3 \ 40 regex.3 regerror.3 \ 41 regex.3 regfree.3 42.endif 43