freebsd-dev/lib/libcompat/Makefile
Ed Schouten 763ed73371 Trim down libcompat by removing <regexp.h>.
Erwin ran an exp-run with libcompat and <regexp.h> removed. It turns out
the regexp library is almost entirely unused. In fact, it looks like it
is sometimes used by accident. Because these function names clash with
libc's <regex.h>, some application use both <regex.h> and libcompat,
which means they link against the wrong regex library.

This commit removes the regexp library and reimplements re_comp() and
re_exec() using <regex.h>. It seems the grammar of the regular
expressions accepted by these functions is similar to POSIX EREs.

After this commit, 1 low-profile port will be broken, but the maintainer
already has a patch for it sitting in his mailbox.
2010-03-14 10:18:58 +00:00

33 lines
553 B
Makefile

# @(#)Makefile 8.1 (Berkeley) 6/4/93
# $FreeBSD$
LIB= compat
CFLAGS+=-DLIBC_SCCS -DSYSLIBC_SCCS -I${.CURDIR}/../libc/locale
NO_PIC=
WARNS?= 0
.PATH: ${.CURDIR}/4.1 ${.CURDIR}/4.3 ${.CURDIR}/4.4
# compat 4.1 sources
SRCS+= ascftime.c cftime.c ftime.c getpw.c
MAN+= 4.1/ftime.3 4.1/getpw.3
MAN+= 4.1/cftime.3
MLINKS+=cftime.3 ascftime.3
# compat 4.3 sources
SRCS+= cfree.c re_comp.c rexec.c
MAN+= 4.3/cfree.3 4.3/re_comp.3 4.3/rexec.3
MLINKS+=re_comp.3 re_exec.3
# compat 4.4 sources
SRCS+= cuserid.c
MAN+= 4.4/cuserid.3
.include <bsd.lib.mk>