Loading...
--- Libc/Libc-262.3.2/regex/Makefile.inc
+++ Libc/Libc-391/regex/Makefile.inc
@@ -4,13 +4,19 @@
# regex sources
.PATH: ${.CURDIR}/regex
-CFLAGS+=-DPOSIX_MISTAKE
+.include "Makefile.fbsd_begin"
+FBSDMISRCS= regcomp.c regerror.c regexec.c regfree.c
+CFLAGS-regcomp-fbsd.c+= -DPOSIX_MISTAKE
+FBSDHDRS= cclass.h cname.h engine.c regex2.h utils.h
+.include "Makefile.fbsd_end"
-SRCS+= regcomp.c regerror.c regexec.c regfree.c
+UNIX03SRCS += regcomp.c
.if ${LIB} == "c"
-MAN3+= regex.3
-MAN7+= re_format.7
+.include "Makefile.fbsd_begin"
+FBSDMAN3= regex.3
+FBSDMAN7= re_format.7
+.include "Makefile.fbsd_end"
MLINKS+=regex.3 regcomp.3 regex.3 regexec.3 regex.3 regerror.3
MLINKS+=regexec.3 regfree.3