3821a3d7ab
need for hack workarounds in tools/lib32/build32.sh.
30 lines
558 B
Makefile
30 lines
558 B
Makefile
# $FreeBSD$
|
|
|
|
SUBDIR+= doc
|
|
|
|
LIB= gnuregex
|
|
SHLIB_MAJOR= 2
|
|
|
|
SRCS= gnuregex.c
|
|
INCSGROUPS= INCS WRINCS PXINCS
|
|
INCS= regex.h.patched
|
|
CLEANFILES+= regex.h.patched gnuregex.c
|
|
INCSNAME= regex.h
|
|
INCSDIR= ${INCLUDEDIR}/gnu
|
|
WRINCS= gnuregex.h
|
|
PXINCS= posix/regex.h
|
|
PXINCSDIR= ${INCLUDEDIR}/gnu/posix
|
|
NOMAN= noman
|
|
|
|
CFLAGS+=-D_REGEX_RE_COMP -DSTDC_HEADERS
|
|
|
|
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>
|