1.include "../Makefile.inc"
2
3LIB=		greputils
4INTERNALLIB=	true
5
6CONTRIBDIR=	${BASEDIR}/lib
7.PATH:		${CONTRIBDIR} ${CONTRIBDIR}/uniwidth ${CONTRIBDIR}/unistr \
8		${CONTRIBDIR}/glthread
9
10CFLAGS+=	-I${CONTRIBDIR} -I${.CURDIR} -I${.OBJDIR}
11CFLAGS+=	-DHAVE_CONFIG_H
12
13SRCS=		argmatch.c \
14		c-strcasecmp.c \
15		c-strncasecmp.c \
16		cloexec.c \
17		close-stream.c \
18		closeout.c \
19		cycle-check.c \
20		opendir-safer.c \
21		dirname-lgpl.c \
22		basename-lgpl.c \
23		stripslash.c \
24		exclude.c \
25		exitfail.c \
26		creat-safer.c \
27		open-safer.c \
28		fcntl.c \
29		filenamecat-lgpl.c \
30		hash.c \
31		i-ring.c \
32		localcharset.c \
33		lock.c \
34		malloca.c \
35		mbchar.c \
36		mbscasecmp.c \
37		mbslen.c \
38		mbsstr.c \
39		memchr2.c \
40		openat-die.c \
41		openat-safer.c \
42		progname.c \
43		propername.c \
44		quotearg.c \
45		safe-read.c \
46		save-cwd.c \
47		striconv.c \
48		strnlen1.c \
49		trim.c \
50		dup-safer.c \
51		dup2.c \
52		fd-safer.c \
53		pipe-safer.c \
54		u8-mbtoucr.c \
55		u8-uctomb-aux.c \
56		width.c \
57		version-etc.c \
58		version-etc-fsf.c \
59		xmalloc.c \
60		xalloc-die.c \
61		xstriconv.c \
62		xstrtoimax.c \
63		xstrtol.c \
64		xstrtoul.c \
65		xstrtol-error.c \
66		colorize-posix.c \
67		chdir-long.c \
68		error.c \
69		fts.c \
70		getopt.c \
71		getopt1.c \
72		obstack.c \
73		openat-proc.c \
74		regex.c \
75		strstr.c \
76		strerror.c \
77		strerror-override.c
78
79# sources that produces empty objects
80#SRCS+=		binary-io.c \
81		bitrotate.c \
82		c-ctype.c \
83		fd-hook.c \
84		mbiter.c \
85		mbuiter.c \
86		threadlib.c \
87		unistd.c \
88		u8-uctomb.c
89
90.include <bsd.lib.mk>
91