summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libregex/Makefile
blob: db874164ab15546c31a9aa30d351e6b282a0d235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $FreeBSD$

SUBDIR=		doc

LIB=		gnuregex
SHLIB_MAJOR=	5

REGEXDIR=	${.CURDIR}/../../../contrib/libgnuregex
.PATH:		${REGEXDIR}

SRCS=		gnuregex.c
INCSGROUPS=	INCS WRINCS PXINCS
INCS=		regex.h.patched
INCSNAME=	regex.h
INCSDIR=	${INCLUDEDIR}/gnu
WRINCS=		gnuregex.h
PXINCS=		${REGEXDIR}/regex.h
PXINCSDIR=	${INCSDIR}/posix

CFLAGS+=	-D__attribute_warn_unused_result__=""
CFLAGS+=	-DHAVE_CONFIG_H -I${.CURDIR} -I${REGEXDIR}

CLEANFILES=	regex.h.patched gnuregex.c
regex.h.patched: regex.h
	sed 's=<posix/regex\.h>=<gnu/posix/regex.h>=g' \
		< ${.ALLSRC} > ${.TARGET}

gnuregex.c: regex.c
	sed 's=<regex\.h>=<gnu/regex.h>=g' \
		< ${.ALLSRC} > ${.TARGET}

.include <bsd.lib.mk>
OpenPOWER on IntegriCloud