summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-11-25 16:57:27 +0000
committerbapt <bapt@FreeBSD.org>2014-11-25 16:57:27 +0000
commita191ba5195ecb988c5e5c3b13fc364bde87bd41c (patch)
tree41890d809d5cd369a149d9fe8cd22b45310c700a /usr.sbin/ppp
parenta755ca9f3133785c8638591a5f79e27878062707 (diff)
downloadFreeBSD-src-a191ba5195ecb988c5e5c3b13fc364bde87bd41c.zip
FreeBSD-src-a191ba5195ecb988c5e5c3b13fc364bde87bd41c.tar.gz
Convert usr.sbin to LIBADD
Reduce overlinking
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/Makefile18
1 files changed, 6 insertions, 12 deletions
diff --git a/usr.sbin/ppp/Makefile b/usr.sbin/ppp/Makefile
index dda493e..30de68c 100644
--- a/usr.sbin/ppp/Makefile
+++ b/usr.sbin/ppp/Makefile
@@ -41,8 +41,7 @@ BINOWN= root
BINGRP= network
M4FLAGS=
-LDADD= -lcrypt -lmd -lutil -lz
-DPADD= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ}
+LIBADD= md util z
.if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR)
CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\"
@@ -60,8 +59,7 @@ CFLAGS+=-DNOINET6
CFLAGS+=-DNONAT
.else
SRCS+= nat_cmd.c
-LDADD+= -lalias
-DPADD+= ${LIBALIAS}
+LIBADD+= alias
.endif
.if defined(PPP_NO_ATM)
@@ -80,24 +78,21 @@ SRCS+= id.c
CFLAGS+=-DNODES
.else
SRCS+= chap_ms.c mppe.c
-LDADD+= -lcrypto
-DPADD+= ${LIBCRYPTO}
+LIBADD+= crypto
.endif
.if defined(PPP_NO_RADIUS)
CFLAGS+=-DNORADIUS
.else
SRCS+= radius.c
-LDADD+= -lradius
-DPADD+= ${LIBRADIUS}
+LIBADD+= radius
.endif
.if defined(PPP_NO_NETGRAPH)
CFLAGS+=-DNONETGRAPH
.else
SRCS+= ether.c
-LDADD+= -lnetgraph
-DPADD+= ${LIBNETGRAPH}
+LIBADD+= netgraph
.if defined(EXPERIMENTAL_NETGRAPH)
CFLAGS+=-DEXPERIMENTAL_NETGRAPH
SRCS+= netgraph.c
@@ -107,8 +102,7 @@ SRCS+= netgraph.c
.if defined(PPP_NO_PAM)
CFLAGS+=-DNOPAM
.else
-LDADD+= ${MINUSLPAM}
-DPADD+= ${LIBPAM}
+LIBADD+= pam
.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud