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
13.if defined(BOOTSTRAPPING)
14CFLAGS+=	-DBOOTSTRAPPING
15.endif
16
17SRCS=		argmatch.c \
18		c-strcasecmp.c \
19		c-strncasecmp.c \
20		cloexec.c \
21		close-stream.c \
22		closeout.c \
23		cycle-check.c \
24		opendir-safer.c \
25		dirname-lgpl.c \
26		basename-lgpl.c \
27		stripslash.c \
28		exclude.c \
29		exitfail.c \
30		creat-safer.c \
31		open-safer.c \
32		fcntl.c \
33		filenamecat-lgpl.c \
34		hash.c \
35		i-ring.c \
36		localcharset.c \
37		lock.c \
38		malloca.c \
39		mbchar.c \
40		mbscasecmp.c \
41		mbslen.c \
42		mbsstr.c \
43		memchr2.c \
44		openat-die.c \
45		openat-safer.c \
46		progname.c \
47		propername.c \
48		quotearg.c \
49		safe-read.c \
50		save-cwd.c \
51		striconv.c \
52		strnlen1.c \
53		trim.c \
54		dup-safer.c \
55		dup2.c \
56		fd-safer.c \
57		pipe-safer.c \
58		u8-mbtoucr.c \
59		u8-uctomb-aux.c \
60		width.c \
61		version-etc.c \
62		version-etc-fsf.c \
63		xmalloc.c \
64		xalloc-die.c \
65		xstriconv.c \
66		xstrtoimax.c \
67		xstrtol.c \
68		xstrtoul.c \
69		xstrtol-error.c \
70		colorize-posix.c \
71		chdir-long.c \
72		error.c \
73		fts.c \
74		getopt.c \
75		getopt1.c \
76		obstack.c \
77		openat-proc.c \
78		regex.c \
79		strstr.c \
80		strerror.c \
81		strerror-override.c
82
83# sources that produces empty objects
84#SRCS+=		binary-io.c \
85		bitrotate.c \
86		c-ctype.c \
87		fd-hook.c \
88		mbiter.c \
89		mbuiter.c \
90		threadlib.c \
91		unistd.c \
92		u8-uctomb.c
93
94.include <bsd.lib.mk>
95