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