aboutsummaryrefslogtreecommitdiff
path: root/lib/libregex/Makefile
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-01-22 02:44:41 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-01-22 02:44:41 +0000
commitb37f6c9805edb4b89f0a8c2b78f78a3dcfc0647b (patch)
tree249678d6d01d0b5c8b4e424257ccdfb6b1324358 /lib/libregex/Makefile
parent44c514b142775d66dddcef86adaf508528ac4980 (diff)
downloadsrc-b37f6c9805edb4b89f0a8c2b78f78a3dcfc0647b.tar.gz
src-b37f6c9805edb4b89f0a8c2b78f78a3dcfc0647b.zip
Add libregex, connect it to the build
libregex is a regex(3) implementation intended to feature GNU extensions and any other non-POSIX compliant extensions that are deemed worthy. These extensions are separated out into a separate library for the sake of not cluttering up libc further with them as well as not deteriorating the speed (or lack thereof) of the libc implementation. libregex is implemented as a build of the libc implementation with LIBREGEX defined to distinguish this from a libc build. The reasons for implementation like this are two-fold: 1.) Maintenance- This reduces the overhead induced by adding yet another regex implementation to base. 2.) Ease of use- Flipping on GNU extensions will be as simple as linking against libregex, and POSIX-compliant compilations can be guaranteed with a REG_POSIX cflag that should be ignored by libc/regex and disables extensions in libregex. It is also easier to keep REG_POSIX sane and POSIX pure when implemented in this fashion. Tests are added for future functionality, but left disconnected for the time being while other testing is done. Reviewed by: cem (previous version) Differential Revision: https://reviews.freebsd.org/D12934
Notes
Notes: svn path=/head/; revision=328240
Diffstat (limited to 'lib/libregex/Makefile')
-rw-r--r--lib/libregex/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/libregex/Makefile b/lib/libregex/Makefile
new file mode 100644
index 000000000000..71d5b2279cbb
--- /dev/null
+++ b/lib/libregex/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+.include <src.opts.mk>
+
+PACKAGE=lib${LIB}
+LIB= regex
+SHLIB_MAJOR= 1
+SHLIB_MINOR= 0
+
+CFLAGS+= -DLIBREGEX
+LIBC_SRCTOP= ${.CURDIR:H}/libc
+SYMBOL_MAPS= ${SYM_MAPS}
+
+#HAS_TESTS=
+SUBDIR.${MK_TESTS}+= tests
+
+.include "../Makefile.inc"
+.include "${LIBC_SRCTOP}/regex/Makefile.inc"
+.include <bsd.lib.mk>