aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/grep
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-11-25 14:29:10 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-11-25 14:29:10 +0000
commit3e11bd9e2a2b1cbd4283c87c93e3cc75e3f2dacb (patch)
treeddfef911600b923ca0abdbed4461a288b9249837 /usr.bin/grep
parent30fca3b0cc92ae380073c169d34b4cc3f27321e9 (diff)
downloadsrc-3e11bd9e2a2b1cbd4283c87c93e3cc75e3f2dacb.tar.gz
src-3e11bd9e2a2b1cbd4283c87c93e3cc75e3f2dacb.zip
Convert to usr.bin/ to LIBADD
Reduce overlinking
Notes
Notes: svn path=/head/; revision=275042
Diffstat (limited to 'usr.bin/grep')
-rw-r--r--usr.bin/grep/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.bin/grep/Makefile b/usr.bin/grep/Makefile
index 32941fd4ba4a..7dfde1409c40 100644
--- a/usr.bin/grep/Makefile
+++ b/usr.bin/grep/Makefile
@@ -40,12 +40,10 @@ MLINKS= grep.1 egrep.1 \
grep.1 lzfgrep.1
.endif
-LDADD= -lz
-DPADD= ${LIBZ}
+LIBADD= z
.if ${MK_LZMA_SUPPORT} != "no"
-LDADD+= -llzma
-DPADD+= ${LIBLZMA}
+LIBADD+= lzma
LINKS+= ${BINDIR}/${PROG} ${BINDIR}/xzgrep \
${BINDIR}/${PROG} ${BINDIR}/xzegrep \
@@ -58,8 +56,7 @@ CFLAGS+= -DWITHOUT_LZMA
.endif
.if ${MK_BZIP2_SUPPORT} != "no"
-LDADD+= -lbz2
-DPADD+= ${LIBBZ2}
+LIBADD+= bz2
.if ${MK_BSD_GREP} == "yes"
LINKS+= ${BINDIR}/grep ${BINDIR}/bzgrep \
@@ -75,8 +72,7 @@ CFLAGS+= -DWITHOUT_BZIP2
.if ${MK_GNU_GREP_COMPAT} != "no"
CFLAGS+= -I${DESTDIR}/usr/include/gnu
-LDADD+= -lgnuregex
-DPADD+= ${LIBGNUREGEX}
+LIBADD+= gnuregex
.endif
.if ${MK_NLS} != "no"