summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gnu/lib/libdialog/Makefile3
-rw-r--r--gnu/lib/libgcc/Makefile6
-rw-r--r--gnu/lib/libreadline/readline/Makefile3
-rw-r--r--gnu/lib/libstdc++/Makefile4
-rw-r--r--gnu/usr.bin/dialog/Makefile3
-rw-r--r--gnu/usr.bin/diff/Makefile3
-rw-r--r--gnu/usr.bin/gdb/gdb/Makefile5
-rw-r--r--gnu/usr.bin/gdb/gdbtui/Makefile5
-rw-r--r--gnu/usr.bin/gdb/kgdb/Makefile7
-rw-r--r--gnu/usr.bin/grep/Makefile6
-rw-r--r--libexec/atf/atf-check/Makefile4
-rw-r--r--libexec/atf/atf-sh/Makefile4
-rw-r--r--libexec/atrun/Makefile3
-rw-r--r--libexec/casper/dns/Makefile3
-rw-r--r--libexec/casper/grp/Makefile3
-rw-r--r--libexec/casper/pwd/Makefile3
-rw-r--r--libexec/casper/random/Makefile3
-rw-r--r--libexec/casper/sysctl/Makefile3
-rw-r--r--libexec/dma/Makefile3
-rw-r--r--libexec/fingerd/Makefile3
-rw-r--r--libexec/ftpd/Makefile12
-rw-r--r--libexec/getty/Makefile3
-rw-r--r--libexec/mail.local/Makefile6
-rw-r--r--libexec/pppoed/Makefile3
-rw-r--r--libexec/rlogind/Makefile3
-rw-r--r--libexec/rpc.rquotad/Makefile3
-rw-r--r--libexec/rpc.rstatd/Makefile3
-rw-r--r--libexec/rpc.rusersd/Makefile3
-rw-r--r--libexec/rpc.rwalld/Makefile3
-rw-r--r--libexec/rpc.sprayd/Makefile3
-rw-r--r--libexec/rshd/Makefile3
-rw-r--r--libexec/rtld-elf/Makefile6
-rw-r--r--libexec/smrsh/Makefile6
-rw-r--r--libexec/tcpd/Makefile3
-rw-r--r--libexec/telnetd/Makefile9
-rw-r--r--libexec/tftpd/Makefile3
-rw-r--r--libexec/ulog-helper/Makefile3
-rw-r--r--libexec/ypxfr/Makefile3
-rw-r--r--secure/lib/libssh/Makefile10
-rw-r--r--secure/lib/libssl/Makefile3
-rw-r--r--secure/libexec/sftp-server/Makefile7
-rw-r--r--secure/libexec/ssh-keysign/Makefile7
-rw-r--r--secure/libexec/ssh-pkcs11-helper/Makefile7
-rw-r--r--secure/usr.bin/bdes/Makefile3
-rw-r--r--secure/usr.bin/openssl/Makefile3
-rw-r--r--secure/usr.bin/scp/Makefile7
-rw-r--r--secure/usr.bin/sftp/Makefile7
-rw-r--r--secure/usr.bin/ssh-add/Makefile7
-rw-r--r--secure/usr.bin/ssh-agent/Makefile7
-rw-r--r--secure/usr.bin/ssh-keygen/Makefile11
-rw-r--r--secure/usr.bin/ssh-keyscan/Makefile7
-rw-r--r--secure/usr.bin/ssh/Makefile14
-rw-r--r--secure/usr.sbin/sshd/Makefile20
53 files changed, 89 insertions, 186 deletions
diff --git a/gnu/lib/libdialog/Makefile b/gnu/lib/libdialog/Makefile
index 3945cc0..1df11ec 100644
--- a/gnu/lib/libdialog/Makefile
+++ b/gnu/lib/libdialog/Makefile
@@ -13,8 +13,7 @@ SRCS= argv.c arrows.c buildlist.c buttons.c calendar.c checklist.c \
INCS= dialog.h dlg_colors.h dlg_config.h dlg_keys.h
MAN= dialog.3
-DPADD= ${LIBNCURSESW} ${LIBM}
-LDADD= -lncursesw -lm
+LIBADD= ncursesw m
CFLAGS+= -I${.CURDIR} -I${DIALOG} -D_XOPEN_SOURCE_EXTENDED -DGCC_UNUSED=__unused
.PATH: ${DIALOG}
diff --git a/gnu/lib/libgcc/Makefile b/gnu/lib/libgcc/Makefile
index 4fd8b8d..e7d10b2 100644
--- a/gnu/lib/libgcc/Makefile
+++ b/gnu/lib/libgcc/Makefile
@@ -28,8 +28,7 @@ CFLAGS+= -DIN_GCC -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \
-I${.CURDIR}/../../usr.bin/cc/cc_tools
LDFLAGS+= -nodefaultlibs
-DPADD+= ${LIBC}
-LDADD+= -lc
+LIBADD+= c
OBJS= # added to below in various ways depending on TARGET_CPUARCH
@@ -119,8 +118,7 @@ LIB1ASMSRC = lib1funcs.asm
LIB1ASMFUNCS = _dvmd_tls _bb_init_func
LIB2ADDEH = unwind-arm.c libunwind.S pr-support.c unwind-c.c
# Some compilers generate __aeabi_ functions libgcc_s is missing
-DPADD+= ${LIBCOMPILER_RT}
-LDADD+= -lcompiler_rt
+LIBADD+= compiler_rt
.endif
.if ${TARGET_CPUARCH} == mips
diff --git a/gnu/lib/libreadline/readline/Makefile b/gnu/lib/libreadline/readline/Makefile
index f09e943..2afeafc 100644
--- a/gnu/lib/libreadline/readline/Makefile
+++ b/gnu/lib/libreadline/readline/Makefile
@@ -23,7 +23,6 @@ ${.OBJDIR}/${_h}: ${SRCDIR}/${_h}
${INSTALL} ${.ALLSRC} ${.TARGET}
.endfor
-DPADD= ${LIBTERMCAPW}
-LDADD= -ltermcapw
+LIBADD= ncursesw
.include <bsd.lib.mk>
diff --git a/gnu/lib/libstdc++/Makefile b/gnu/lib/libstdc++/Makefile
index 98a08f4..d55b67e 100644
--- a/gnu/lib/libstdc++/Makefile
+++ b/gnu/lib/libstdc++/Makefile
@@ -23,8 +23,8 @@ CXXFLAGS+= -fno-implicit-templates -ffunction-sections -fdata-sections \
-Wno-deprecated
PO_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections}
-DPADD= ${LIBM}
-LDADD= -lm -Wl,-f,libsupc++.so.1
+LIBADD+= m
+LDADD= -Wl,-f,libsupc++.so.1
# libstdc++ sources
SRCS+= bitmap_allocator.cc pool_allocator.cc \
diff --git a/gnu/usr.bin/dialog/Makefile b/gnu/usr.bin/dialog/Makefile
index f9281c8..ae1f1ab 100644
--- a/gnu/usr.bin/dialog/Makefile
+++ b/gnu/usr.bin/dialog/Makefile
@@ -3,8 +3,7 @@
DIALOG= ${.CURDIR}/../../../contrib/dialog
PROG= dialog
-DPADD= ${LIBDIALOG} ${LIBNCURSESW} ${LIBM}
-LDADD= -ldialog -lncursesw -lm
+LIBADD= dialog ncursesw m
CFLAGS+= -I${.CURDIR} -I${DIALOG}
.PATH: ${DIALOG}
diff --git a/gnu/usr.bin/diff/Makefile b/gnu/usr.bin/diff/Makefile
index 6b29df5..03d2fec 100644
--- a/gnu/usr.bin/diff/Makefile
+++ b/gnu/usr.bin/diff/Makefile
@@ -26,8 +26,7 @@ CFLAGS+=-I${DESTDIR}/usr/include/gnu
SUBDIR+=doc
-DPADD= ${LIBGNUREGEX}
-LDADD= -lgnuregex
+LIBADD+= gnuregex
.if ${MK_TESTS} != "no"
SUBDIR+= tests
diff --git a/gnu/usr.bin/gdb/gdb/Makefile b/gnu/usr.bin/gdb/gdb/Makefile
index 900fbcc..7e64ed1 100644
--- a/gnu/usr.bin/gdb/gdb/Makefile
+++ b/gnu/usr.bin/gdb/gdb/Makefile
@@ -11,8 +11,9 @@ GDBLIBS= ${OBJ_GDB}/libgdb/libgdb.a
# global symbols visible.
LDFLAGS+= -Wl,-E
-DPADD= ${GDBLIBS} ${BULIBS} ${LIBM} ${LIBREADLINE} ${LIBTERMCAPW} ${LIBGNUREGEX}
-LDADD= ${GDBLIBS} ${BULIBS} -lm ${LDREADLINE} -ltermcapw -lgnuregex
+DPADD= ${GDBLIBS} ${BULIBS}
+LDADD= ${GDBLIBS} ${BULIBS}
+LIBADD+= m readline ncursesw gnuregex
.include <bsd.prog.mk>
CFLAGS+= -DDEBUGDIR=\"${DEBUGDIR}\"
diff --git a/gnu/usr.bin/gdb/gdbtui/Makefile b/gnu/usr.bin/gdb/gdbtui/Makefile
index 4ee9415..7912d04 100644
--- a/gnu/usr.bin/gdb/gdbtui/Makefile
+++ b/gnu/usr.bin/gdb/gdbtui/Makefile
@@ -12,7 +12,8 @@ GDBLIBS= ${OBJ_GDB}/libgdb/libgdb.a
# global symbols visible.
LDFLAGS+= -Wl,-E
-DPADD= ${GDBLIBS} ${BULIBS} ${LIBM} ${LIBREADLINE} ${LIBTERMCAPW} ${LIBGNUREGEX}
-LDADD= ${GDBLIBS} ${BULIBS} -lm ${LDREADLINE} -ltermcapw -lgnuregex
+DPADD= ${GDBLIBS} ${BULIBS}
+LDADD= ${GDBLIBS} ${BULIBS}
+LIBADD+= m readline ncursesw gnuregex
.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/gdb/kgdb/Makefile b/gnu/usr.bin/gdb/kgdb/Makefile
index 04c14b3..8af2e18 100644
--- a/gnu/usr.bin/gdb/kgdb/Makefile
+++ b/gnu/usr.bin/gdb/kgdb/Makefile
@@ -8,10 +8,9 @@ BULIBS= ${OBJ_BU}/libbfd/libbfd.a ${OBJ_BU}/libopcodes/libopcodes.a \
${OBJ_BU}/libiberty/libiberty.a
GDBLIBS= ${OBJ_GDB}/libgdb/libgdb.a
-DPADD= ${GDBLIBS} ${BULIBS} ${LIBKVM} ${LIBM} ${LIBREADLINE} ${LIBTERMCAPW} \
- ${LIBGNUREGEX}
-LDADD= ${GDBLIBS} ${BULIBS} -lkvm${GDB_SUFFIX} -lm ${LDREADLINE} -ltermcapw \
- -lgnuregex
+DPADD= ${GDBLIBS} ${BULIBS} ${LIBKVM}
+LDADD= ${GDBLIBS} ${BULIBS} -lkvm${GDB_SUFFIX}
+LIBADD+= m readline ncursesw gnuregex
.if defined(GDB_CROSS_DEBUGGER)
CFLAGS+= -Wl,-export-dynamic
diff --git a/gnu/usr.bin/grep/Makefile b/gnu/usr.bin/grep/Makefile
index 5221f2f..3669d1f 100644
--- a/gnu/usr.bin/grep/Makefile
+++ b/gnu/usr.bin/grep/Makefile
@@ -22,8 +22,7 @@ LINKS+= ${BINDIR}/grep ${BINDIR}/egrep \
MLINKS= grep.1 egrep.1 grep.1 fgrep.1
.endif
-DPADD= ${LIBGNUREGEX} ${LIBBZ2}
-LDADD= -lgnuregex -lbz2
+LIBADD= gnuregex bz2
.if ${MK_BSD_GREP} != "yes"
LINKS+= ${BINDIR}/grep ${BINDIR}/bzgrep \
@@ -33,8 +32,7 @@ MLINKS+=grep.1 bzgrep.1 grep.1 bzegrep.1 grep.1 bzfgrep.1
.endif
.if defined(GREP_LIBZ) && !empty(GREP_LIBZ)
-LDADD+= -lz
-DPADD+= ${LIBZ}
+LIBADD+= z
CFLAGS+=-DHAVE_LIBZ=1
.if ${MK_BSD_GREP} != "yes"
LINKS+= ${BINDIR}/grep ${BINDIR}/zgrep \
diff --git a/libexec/atf/atf-check/Makefile b/libexec/atf/atf-check/Makefile
index 2a9851e..5bef488 100644
--- a/libexec/atf/atf-check/Makefile
+++ b/libexec/atf/atf-check/Makefile
@@ -38,9 +38,7 @@ MAN= atf-check.1
CFLAGS+= -I${ATF}
CFLAGS+= -DATF_SHELL='"/bin/sh"'
-DPADD+= ${LIBATF_CXX} ${LIBATF_C}
-LDADD+= ${LDATF_CXX} ${LDATF_C}
-USEPRIVATELIB= atf-c++ atf-c
+LIBADD= atf_cxx
.if ${MK_TESTS} != "no"
SUBDIR+= tests
diff --git a/libexec/atf/atf-sh/Makefile b/libexec/atf/atf-sh/Makefile
index 4e14643..f00683f 100644
--- a/libexec/atf/atf-sh/Makefile
+++ b/libexec/atf/atf-sh/Makefile
@@ -42,9 +42,7 @@ CFLAGS+= -DATF_PKGDATADIR='"${SHAREDIR}/atf"'
CFLAGS+= -DATF_SHELL='"/bin/sh"'
CFLAGS+= -I${ATF}
-DPADD+= ${LIBATF_C} ${LIBATF_CXX}
-LDADD+= ${LDATF_C} ${LDATF_CXX}
-USEPRIVATELIB= atf-c++ atf-c
+LIBADD= atf_cxx
FILESGROUPS= SUBR
diff --git a/libexec/atrun/Makefile b/libexec/atrun/Makefile
index 2730559..39952fc 100644
--- a/libexec/atrun/Makefile
+++ b/libexec/atrun/Makefile
@@ -17,8 +17,7 @@ CFLAGS+=-DLOGIN_CAP -DPAM
WARNS?= 2
WFORMAT=0
-DPADD= ${LIBPAM} ${LIBUTIL}
-LDADD= ${MINUSLPAM} -lutil
+LIBADD= pam util
atrun.8: atrun.man
@${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \
diff --git a/libexec/casper/dns/Makefile b/libexec/casper/dns/Makefile
index 245493e..b101891 100644
--- a/libexec/casper/dns/Makefile
+++ b/libexec/casper/dns/Makefile
@@ -6,8 +6,7 @@ PROG= dns
SRCS= dns.c
-DPADD= ${LIBCAPSICUM} ${LIBCASPER} ${LIBNV} ${LIBPJDLOG} ${LIBUTIL}
-LDADD= -lcapsicum -lcasper -lnv -lpjdlog -lutil
+LIBADD= casper nv
BINDIR= /libexec/casper
diff --git a/libexec/casper/grp/Makefile b/libexec/casper/grp/Makefile
index 502cd26..75274d1 100644
--- a/libexec/casper/grp/Makefile
+++ b/libexec/casper/grp/Makefile
@@ -6,8 +6,7 @@ PROG= grp
SRCS= grp.c
-DPADD= ${LIBCAPSICUM} ${LIBCASPER} ${LIBNV} ${LIBPJDLOG} ${LIBUTIL}
-LDADD= -lcapsicum -lcasper -lnv -lpjdlog -lutil
+LIBADD= casper nv pjdlog
BINDIR= /libexec/casper
diff --git a/libexec/casper/pwd/Makefile b/libexec/casper/pwd/Makefile
index ebf6cac..23ad3f2 100644
--- a/libexec/casper/pwd/Makefile
+++ b/libexec/casper/pwd/Makefile
@@ -6,8 +6,7 @@ PROG= pwd
SRCS= pwd.c
-DPADD= ${LIBCAPSICUM} ${LIBCASPER} ${LIBNV} ${LIBPJDLOG} ${LIBUTIL}
-LDADD= -lcapsicum -lcasper -lnv -lpjdlog -lutil
+LIBADD= casper nv pjdlog
BINDIR= /libexec/casper
diff --git a/libexec/casper/random/Makefile b/libexec/casper/random/Makefile
index 46c9739..3b5d155 100644
--- a/libexec/casper/random/Makefile
+++ b/libexec/casper/random/Makefile
@@ -6,8 +6,7 @@ PROG= random
SRCS= random.c
-DPADD= ${LIBCAPSICUM} ${LIBCASPER} ${LIBNV} ${LIBPJDLOG} ${LIBUTIL}
-LDADD= -lcapsicum -lcasper -lnv -lpjdlog -lutil
+LIBADD= casper nv
BINDIR= /libexec/casper
diff --git a/libexec/casper/sysctl/Makefile b/libexec/casper/sysctl/Makefile
index 432008e..24152ab 100644
--- a/libexec/casper/sysctl/Makefile
+++ b/libexec/casper/sysctl/Makefile
@@ -6,8 +6,7 @@ PROG= sysctl
SRCS= sysctl.c
-DPADD= ${LIBCAPSICUM} ${LIBCASPER} ${LIBNV} ${LIBPJDLOG} ${LIBUTIL}
-LDADD= -lcapsicum -lcasper -lnv -lpjdlog -lutil
+LIBADD= casper nv pjdlog
BINDIR= /libexec/casper
diff --git a/libexec/dma/Makefile b/libexec/dma/Makefile
index 757faf4..65c73820 100644
--- a/libexec/dma/Makefile
+++ b/libexec/dma/Makefile
@@ -8,8 +8,7 @@ CFLAGS= -I${.CURDIR}/../../contrib/dma \
-DLIBEXEC_PATH='"/usr/libexec"' -DDMA_VERSION='"v0.9+"' \
-DDMA_ROOT_USER='"mailnull"' \
-DDMA_GROUP='"mail"'
-DPADD= ${LIBSSL} ${LIBCRYPTO}
-LDADD= -lssl -lcrypto
+LIBADD= ssl crypto
PROG= dma
SRCS= aliases_parse.y \
diff --git a/libexec/fingerd/Makefile b/libexec/fingerd/Makefile
index b6382ad..f710173 100644
--- a/libexec/fingerd/Makefile
+++ b/libexec/fingerd/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PROG= fingerd
-DPADD= ${LIBUTIL}
-LDADD= -lutil
+LIBADD= util
MAN= fingerd.8
WARNS?= 2
diff --git a/libexec/ftpd/Makefile b/libexec/ftpd/Makefile
index 0c7c982..da41967 100644
--- a/libexec/ftpd/Makefile
+++ b/libexec/ftpd/Makefile
@@ -13,19 +13,16 @@ YFLAGS=
WARNS?= 2
WFORMAT=0
-DPADD= ${LIBUTIL} ${LIBCRYPT}
-LDADD= -lutil -lcrypt
+LIBADD= util crypt
# XXX Kluge! Conversation mechanism needs to be fixed.
-DPADD+= ${LIBOPIE} ${LIBMD}
-LDADD+= -lopie -lmd
+LIBADD+= opie md
LSDIR= ../../bin/ls
.PATH: ${.CURDIR}/${LSDIR}
SRCS+= ls.c cmp.c print.c util.c
CFLAGS+=-Dmain=ls_main -I${.CURDIR}/${LSDIR}
-DPADD+= ${LIBM}
-LDADD+= -lm
+LIBADD+= m
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+=-DINET6
@@ -33,8 +30,7 @@ CFLAGS+=-DINET6
.if ${MK_PAM_SUPPORT} != "no"
CFLAGS+=-DUSE_PAM
-DPADD+= ${LIBPAM}
-LDADD+= ${MINUSLPAM}
+LIBADD+= pam
.endif
.include <bsd.prog.mk>
diff --git a/libexec/getty/Makefile b/libexec/getty/Makefile
index f967958..976d62a 100644
--- a/libexec/getty/Makefile
+++ b/libexec/getty/Makefile
@@ -3,8 +3,7 @@
PROG= getty
SRCS= main.c init.c subr.c chat.c
-DPADD= ${LIBUTIL}
-LDADD= -lutil
+LIBADD= util
MAN= gettytab.5 ttys.5 getty.8
WARNS?= 1
diff --git a/libexec/mail.local/Makefile b/libexec/mail.local/Makefile
index 3e59609..018357c 100644
--- a/libexec/mail.local/Makefile
+++ b/libexec/mail.local/Makefile
@@ -12,11 +12,7 @@ CFLAGS+=-I${SENDMAIL_DIR}/include -I.
WARNS?= 2
WFORMAT=0
-LIBSMDIR= ${.OBJDIR}/../../lib/libsm
-LIBSM= ${LIBSMDIR}/libsm.a
-
-DPADD= ${LIBSM}
-LDADD= ${LIBSM}
+LIBADD= sm
SRCS+= sm_os.h
CLEANFILES+=sm_os.h
diff --git a/libexec/pppoed/Makefile b/libexec/pppoed/Makefile
index 1ffaffe..09c3ee6 100644
--- a/libexec/pppoed/Makefile
+++ b/libexec/pppoed/Makefile
@@ -1,8 +1,7 @@
# $FreeBSD$
PROG= pppoed
-DPADD= ${LIBNETGRAPH}
-LDADD= -lnetgraph
+LIBADD= netgraph
MAN= pppoed.8
WARNS?= 1
diff --git a/libexec/rlogind/Makefile b/libexec/rlogind/Makefile
index de0fb20..282ec63 100644
--- a/libexec/rlogind/Makefile
+++ b/libexec/rlogind/Makefile
@@ -5,8 +5,7 @@
PROG= rlogind
MAN= rlogind.8
-DPADD= ${LIBUTIL}
-LDADD= -lutil
+LIBADD= util
WARNS?= 2
.if ${MK_INET6_SUPPORT} != "no"
diff --git a/libexec/rpc.rquotad/Makefile b/libexec/rpc.rquotad/Makefile
index 95d4415..21cb45d 100644
--- a/libexec/rpc.rquotad/Makefile
+++ b/libexec/rpc.rquotad/Makefile
@@ -4,7 +4,6 @@ PROG = rpc.rquotad
SRCS = rquotad.c
MAN = rpc.rquotad.8
-DPADD= ${LIBRPCSVC} ${LIBUTIL}
-LDADD= -lrpcsvc -lutil
+LIBADD= rpcsvc util
.include <bsd.prog.mk>
diff --git a/libexec/rpc.rstatd/Makefile b/libexec/rpc.rstatd/Makefile
index a42225f..f408d4a 100644
--- a/libexec/rpc.rstatd/Makefile
+++ b/libexec/rpc.rstatd/Makefile
@@ -4,8 +4,7 @@ PROG = rpc.rstatd
SRCS = rstatd.c rstat_proc.c
MAN = rpc.rstatd.8
-DPADD= ${LIBRPCSVC} ${LIBUTIL} ${LIBDEVSTAT} ${LIBKVM}
-LDADD= -lrpcsvc -lutil -ldevstat -lkvm
+LIBADD= rpcsvc devstat
WARNS?= 1
diff --git a/libexec/rpc.rusersd/Makefile b/libexec/rpc.rusersd/Makefile
index df2be37..9f7240a 100644
--- a/libexec/rpc.rusersd/Makefile
+++ b/libexec/rpc.rusersd/Makefile
@@ -4,8 +4,7 @@ PROG = rpc.rusersd
SRCS = rusersd.c rusers_proc.c extern.h
MAN = rpc.rusersd.8
-DPADD= ${LIBRPCSVC} ${LIBUTIL}
-LDADD= -lrpcsvc -lutil
+LIBADD= rpcsvc
#.if exists(/usr/X11R6/include/X11/extensions/xidle.h)
#CFLAGS+= -DXIDLE
diff --git a/libexec/rpc.rwalld/Makefile b/libexec/rpc.rwalld/Makefile
index b09d663..6606a17 100644
--- a/libexec/rpc.rwalld/Makefile
+++ b/libexec/rpc.rwalld/Makefile
@@ -4,8 +4,7 @@ PROG = rpc.rwalld
SRCS = rwalld.c
MAN = rpc.rwalld.8
-DPADD= ${LIBUTIL}
-LDADD= -lutil
+LIBADD= util
WARNS?= 2
diff --git a/libexec/rpc.sprayd/Makefile b/libexec/rpc.sprayd/Makefile
index 5b1cb24..51ac6bf 100644
--- a/libexec/rpc.sprayd/Makefile
+++ b/libexec/rpc.sprayd/Makefile
@@ -4,8 +4,7 @@ PROG = rpc.sprayd
SRCS = sprayd.c
MAN = rpc.sprayd.8
-DPADD= ${LIBRPCSVC}
-LDADD= -lrpcsvc
+LIBADD= rpcsvc
WARNS?= 2
diff --git a/libexec/rshd/Makefile b/libexec/rshd/Makefile
index f6881e8..c856995 100644
--- a/libexec/rshd/Makefile
+++ b/libexec/rshd/Makefile
@@ -7,7 +7,6 @@ MAN= rshd.8
WARNS?= 3
WFORMAT=0
-DPADD= ${LIBUTIL} ${LIBPAM}
-LDADD= -lutil ${MINUSLPAM}
+LIBADD= util pam
.include <bsd.prog.mk>
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile
index cc30132..09dc4ab 100644
--- a/libexec/rtld-elf/Makefile
+++ b/libexec/rtld-elf/Makefile
@@ -43,16 +43,14 @@ CFLAGS+= -fpic
.endif
CFLAGS+= -DPIC $(DEBUG)
LDFLAGS+= -shared -Wl,-Bsymbolic
-DPADD= ${LIBC_PIC}
-LDADD= -lc_pic
+LIBADD= c_pic
.if ${MACHINE_CPUARCH} == "arm"
# Some of the required math functions (div & mod) are implemented in
# libcompiler_rt on ARM. The library also needs to be placed first to be
# correctly linked. As some of the functions are used before we have
# shared libraries.
-DPADD+= ${LIBCOMPILER_RT}
-LDADD+= -lcompiler_rt
+LIBADD+= compiler_rt
.endif
diff --git a/libexec/smrsh/Makefile b/libexec/smrsh/Makefile
index ae86155..7e82b22 100644
--- a/libexec/smrsh/Makefile
+++ b/libexec/smrsh/Makefile
@@ -9,11 +9,7 @@ SRCS= smrsh.c
MAN= smrsh.8
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
-LIBSMDIR= ${.OBJDIR}/../../lib/libsm
-LIBSM= ${LIBSMDIR}/libsm.a
-
-DPADD= ${LIBSM}
-LDADD= ${LIBSM}
+LIBADD= sm
WARNS?= 2
diff --git a/libexec/tcpd/Makefile b/libexec/tcpd/Makefile
index f3fbf29..03e8c52 100644
--- a/libexec/tcpd/Makefile
+++ b/libexec/tcpd/Makefile
@@ -15,8 +15,7 @@ CFLAGS+=-DREAL_DAEMON_DIR=\"/usr/libexec\" \
CFLAGS+=-DINET6
.endif
-DPADD= ${LIBWRAP}
-LDADD= -lwrap
+LIBADD= wrap
WARNS?= 1
diff --git a/libexec/telnetd/Makefile b/libexec/telnetd/Makefile
index 07de197..7cb9bc9 100644
--- a/libexec/telnetd/Makefile
+++ b/libexec/telnetd/Makefile
@@ -29,20 +29,17 @@ CFLAGS+= -I${TELNETDIR}/telnet
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
-DPADD= ${LIBUTIL} ${LIBTERMCAPW} ${LIBTELNET}
-LDADD= -lutil -ltermcapw ${LIBTELNET}
+LIBADD= telnet util ncursesw
.if ${MK_OPENSSL} != "no"
SRCS+= authenc.c
CFLAGS+= -DAUTHENTICATION -DENCRYPTION
-DPADD+= ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} ${LIBPAM}
-LDADD+= -lmp -lcrypto -lcrypt ${MINUSLPAM}
+LIBADD+= mp crypto pam
.endif
.if ${MK_KERBEROS_SUPPORT} != "no"
CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
-DPADD+= ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR}
-LDADD+= -lkrb5 -lhx509 -lasn1 -lroken -lcom_err
+LIBADD+= krb5 roken
.endif
.include <bsd.prog.mk>
diff --git a/libexec/tftpd/Makefile b/libexec/tftpd/Makefile
index f005001..015458c 100644
--- a/libexec/tftpd/Makefile
+++ b/libexec/tftpd/Makefile
@@ -7,7 +7,6 @@ SRCS= tftp-file.c tftp-io.c tftp-options.c tftp-transfer.c tftp-utils.c
SRCS+= tftpd.c
WFORMAT=0
-DPADD= ${LIBWRAP}
-LDADD= -lwrap
+LIBADD= wrap
.include <bsd.prog.mk>
diff --git a/libexec/ulog-helper/Makefile b/libexec/ulog-helper/Makefile
index 764f0de..b763643 100644
--- a/libexec/ulog-helper/Makefile
+++ b/libexec/ulog-helper/Makefile
@@ -5,7 +5,6 @@ BINOWN= root
BINMODE=4555
MAN=
-DPADD= ${LIBULOG}
-LDADD= -lulog
+LIBADD= ulog
.include <bsd.prog.mk>
diff --git a/libexec/ypxfr/Makefile b/libexec/ypxfr/Makefile
index 476a296..d1a2f57 100644
--- a/libexec/ypxfr/Makefile
+++ b/libexec/ypxfr/Makefile
@@ -16,8 +16,7 @@ CFLAGS+= -I.
WARNS?= 2
WFORMAT=0
-DPADD= ${LIBRPCSVC}
-LDADD= -lrpcsvc
+LIBADD= rpcsvc
CLEANFILES= ${GENSRCS}
diff --git a/secure/lib/libssh/Makefile b/secure/lib/libssh/Makefile
index 36b4d76..d23330d 100644
--- a/secure/lib/libssh/Makefile
+++ b/secure/lib/libssh/Makefile
@@ -34,17 +34,14 @@ SRCS+= getrrsetbyname.c
LDNSDIR= ${.CURDIR}/../../../contrib/ldns
CFLAGS+= -DHAVE_LDNS=1 -I${LDNSDIR}
SRCS+= getrrsetbyname-ldns.c
-DPADD+= ${LIBLDNS}
-LDADD+= ${LDLDNS}
-USEPRIVATELIB+= ldns
+LIBADD+= ldns
.endif
CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
.if ${MK_KERBEROS_SUPPORT} != "no"
CFLAGS+= -include krb5_config.h
-DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBMD} ${LIBROKEN}
-LDADD+= -lgssapi -lkrb5 -lhx509 -lasn1 -lcom_err -lmd -lroken
+LIBADD+= gssapi krb5 hx509 asn1 com_err md roken
.endif
.if ${MK_OPENSSH_NONE_CIPHER} != "no"
@@ -53,8 +50,7 @@ CFLAGS+= -DNONE_CIPHER_ENABLED
NO_LINT=
-DPADD+= ${LIBCRYPTO} ${LIBCRYPT} ${LIBZ}
-LDADD+= -lcrypto -lcrypt -lz
+LIBADD+= crypto crypt z
.include <bsd.lib.mk>
diff --git a/secure/lib/libssl/Makefile b/secure/lib/libssl/Makefile
index f03eb70..b39858f 100644
--- a/secure/lib/libssl/Makefile
+++ b/secure/lib/libssl/Makefile
@@ -21,8 +21,7 @@ SRCS= bio_ssl.c d1_both.c d1_clnt.c d1_enc.c d1_lib.c d1_meth.c d1_pkt.c \
INCS= dtls1.h kssl.h srtp.h ssl.h ssl2.h ssl23.h ssl3.h tls1.h
INCSDIR=${INCLUDEDIR}/openssl
-DPADD= ${LIBCRYPTO}
-LDADD= -lcrypto
+LIBADD= crypto
.include <bsd.lib.mk>
diff --git a/secure/libexec/sftp-server/Makefile b/secure/libexec/sftp-server/Makefile
index ebddba9..3e55cc9 100644
--- a/secure/libexec/sftp-server/Makefile
+++ b/secure/libexec/sftp-server/Makefile
@@ -12,9 +12,7 @@ CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
SRCS+= roaming_dummy.c
.endif
-DPADD= ${LIBSSH}
-LDADD= ${LDSSH}
-USEPRIVATELIB= ssh
+LIBADD= ssh
.if ${MK_LDNS} != "no"
CFLAGS+= -DHAVE_LDNS=1
@@ -23,8 +21,7 @@ CFLAGS+= -DHAVE_LDNS=1
#USEPRIVATELIB+= ldns
.endif
-DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD+= -lcrypt -lcrypto -lz
+LIBADD+= crypto crypto z
.include <bsd.prog.mk>
diff --git a/secure/libexec/ssh-keysign/Makefile b/secure/libexec/ssh-keysign/Makefile
index f248666..01e51ef 100644
--- a/secure/libexec/ssh-keysign/Makefile
+++ b/secure/libexec/ssh-keysign/Makefile
@@ -8,9 +8,7 @@ MAN= ssh-keysign.8
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
BINMODE=4555
-DPADD= ${LIBSSH}
-LDADD= ${LDSSH}
-USEPRIVATELIB= ssh
+LIBADD= ssh
.if ${MK_LDNS} != "no"
CFLAGS+= -DHAVE_LDNS=1
@@ -19,8 +17,7 @@ CFLAGS+= -DHAVE_LDNS=1
#USEPRIVATELIB+= ldns
.endif
-DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD+= -lcrypt -lcrypto -lz
+LIBADD+= crypt crypto z
.include <bsd.prog.mk>
diff --git a/secure/libexec/ssh-pkcs11-helper/Makefile b/secure/libexec/ssh-pkcs11-helper/Makefile
index b73416f..55f151a 100644
--- a/secure/libexec/ssh-pkcs11-helper/Makefile
+++ b/secure/libexec/ssh-pkcs11-helper/Makefile
@@ -12,9 +12,7 @@ CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
SRCS+= roaming_dummy.c
.endif
-DPADD= ${LIBSSH}
-LDADD= ${LDSSH}
-USEPRIVATELIB= ssh
+LIBADD= ssh
.if ${MK_LDNS} != "no"
CFLAGS+= -DHAVE_LDNS=1
@@ -23,8 +21,7 @@ CFLAGS+= -DHAVE_LDNS=1
#USEPRIVATELIB+= ldns
.endif
-DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD+= -lcrypt -lcrypto -lz
+LIBADD+= crypt crypto z
.include <bsd.prog.mk>
diff --git a/secure/usr.bin/bdes/Makefile b/secure/usr.bin/bdes/Makefile
index 306fc2c..ceadd12 100644
--- a/secure/usr.bin/bdes/Makefile
+++ b/secure/usr.bin/bdes/Makefile
@@ -5,7 +5,6 @@ PROG= bdes
WARNS?= 2
-DPADD= ${LIBCRYPTO}
-LDADD= -lcrypto
+LIBADD= crypto
.include <bsd.prog.mk>
diff --git a/secure/usr.bin/openssl/Makefile b/secure/usr.bin/openssl/Makefile
index 89deb68..ccc1b6f 100644
--- a/secure/usr.bin/openssl/Makefile
+++ b/secure/usr.bin/openssl/Makefile
@@ -2,8 +2,7 @@
PROG= openssl
-DPADD= ${LIBSSL} ${LIBCRYPTO}
-LDADD= -lssl -lcrypto
+LIBADD= ssl crypto
.if exists(Makefile.man)
.include "Makefile.man"
diff --git a/secure/usr.bin/scp/Makefile b/secure/usr.bin/scp/Makefile
index 1d77d4f..12a3caf 100644
--- a/secure/usr.bin/scp/Makefile
+++ b/secure/usr.bin/scp/Makefile
@@ -11,9 +11,7 @@ CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
SRCS+= roaming_dummy.c
.endif
-DPADD= ${LIBSSH}
-LDADD= ${LDSSH}
-USEPRIVATELIB= ssh
+LIBADD= ssh
.if ${MK_LDNS} != "no"
CFLAGS+= -DHAVE_LDNS=1
@@ -22,8 +20,7 @@ CFLAGS+= -DHAVE_LDNS=1
#USEPRIVATELIB+= ldns
.endif
-DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD+= -lcrypt -lcrypto -lz
+LIBADD+= crypt crypto z
.include <bsd.prog.mk>
diff --git a/secure/usr.bin/sftp/Makefile b/secure/usr.bin/sftp/Makefile
index 96f9d04..ef130d8 100644
--- a/secure/usr.bin/sftp/Makefile
+++ b/secure/usr.bin/sftp/Makefile
@@ -11,9 +11,7 @@ CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
SRCS+= roaming_dummy.c
.endif
-DPADD= ${LIBSSH} ${LIBEDIT} ${LIBNCURSESW}
-LDADD= ${LDSSH} -ledit -lncursesw
-USEPRIVATELIB= ssh
+LIBADD= ssh edit
.if ${MK_LDNS} != "no"
CFLAGS+= -DHAVE_LDNS=1
@@ -22,8 +20,7 @@ CFLAGS+= -DHAVE_LDNS=1
#USEPRIVATELIB+= ldns
.endif
-DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD+= -lcrypt -lcrypto -lz
+LIABDD+= crypt crypto z
.include <bsd.prog.mk>
diff --git a/secure/usr.bin/ssh-add/Makefile b/secure/usr.bin/ssh-add/Makefile
index fe8739b..2484a7b 100644
--- a/secure/usr.bin/ssh-add/Makefile
+++ b/secure/usr.bin/ssh-add/Makefile
@@ -11,9 +11,7 @@ CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
SRCS+= roaming_dummy.c
.endif
-DPADD= ${LIBSSH}
-LDADD= ${LDSSH}
-USEPRIVATELIB= ssh
+LIBADD= ssh
.if ${MK_LDNS} != "no"
CFLAGS+= -DHAVE_LDNS=1
@@ -22,8 +20,7 @@ CFLAGS+= -DHAVE_LDNS=1
#USEPRIVATELIB+= ldns
.endif
-DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD+= -lcrypt -lcrypto -lz
+LIBADD+= crypt crypto z
.include <bsd.prog.mk>
diff --git a/secure/usr.bin/ssh-agent/Makefile b/secure/usr.bin/ssh-agent/Makefile
index b5c98b7..807f747 100644
--- a/secure/usr.bin/ssh-agent/Makefile
+++ b/secure/usr.bin/ssh-agent/Makefile
@@ -11,9 +11,7 @@ CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
SRCS+= roaming_dummy.c
.endif
-DPADD= ${LIBSSH}
-LDADD= ${LDSSH}
-USEPRIVATELIB= ssh
+LIBADD= ssh
.if ${MK_LDNS} != "no"
CFLAGS+= -DHAVE_LDNS=1
@@ -22,8 +20,7 @@ CFLAGS+= -DHAVE_LDNS=1
#USEPRIVATELIB+= ldns
.endif
-DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD+= -lcrypt -lcrypto -lz
+LIBADD+= crypt crypto z
.include <bsd.prog.mk>
diff --git a/secure/usr.bin/ssh-keygen/Makefile b/secure/usr.bin/ssh-keygen/Makefile
index 62e3927..c2654ba 100644
--- a/secure/usr.bin/ssh-keygen/Makefile
+++ b/secure/usr.bin/ssh-keygen/Makefile
@@ -11,19 +11,14 @@ CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
SRCS+= roaming_dummy.c
.endif
-DPADD= ${LIBSSH}
-LDADD= ${LDSSH}
-USEPRIVATELIB= ssh
+LIBADD= ssh
.if ${MK_LDNS} != "no"
CFLAGS+= -DHAVE_LDNS=1
-DPADD+= ${LIBLDNS}
-LDADD+= ${LDLDNS}
-USEPRIVATELIB+= ldns
+LIBADD+= ldns
.endif
-DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD+= -lcrypt -lcrypto -lz
+LIBADD+= crypt crypto z
.include <bsd.prog.mk>
diff --git a/secure/usr.bin/ssh-keyscan/Makefile b/secure/usr.bin/ssh-keyscan/Makefile
index 4465918..b4f97a5 100644
--- a/secure/usr.bin/ssh-keyscan/Makefile
+++ b/secure/usr.bin/ssh-keyscan/Makefile
@@ -6,9 +6,7 @@ PROG= ssh-keyscan
SRCS= ssh-keyscan.c roaming_dummy.c
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
-DPADD= ${LIBSSH}
-LDADD= ${LDSSH}
-USEPRIVATELIB= ssh
+LIBADD= ssh
.if ${MK_LDNS} != "no"
CFLAGS+= -DHAVE_LDNS=1
@@ -17,8 +15,7 @@ CFLAGS+= -DHAVE_LDNS=1
#USEPRIVATELIB+= ldns
.endif
-DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD+= -lcrypt -lcrypto -lz
+LIBADD+= crypt crypto z
.include <bsd.prog.mk>
diff --git a/secure/usr.bin/ssh/Makefile b/secure/usr.bin/ssh/Makefile
index 3c969cd..2f2f97b 100644
--- a/secure/usr.bin/ssh/Makefile
+++ b/secure/usr.bin/ssh/Makefile
@@ -15,29 +15,23 @@ SRCS= ssh.c readconf.c clientloop.c sshtty.c \
# gss-genr.c really belongs in libssh; see src/secure/lib/libssh/Makefile
SRCS+= gss-genr.c
-DPADD= ${LIBSSH} ${LIBUTIL}
-LDADD= ${LDSSH} -lutil
-USEPRIVATELIB= ssh
+LIBADD= ssh util
.if ${MK_LDNS} != "no"
CFLAGS+= -DHAVE_LDNS=1
-DPADD+= ${LIBLDNS}
-LDADD+= ${LDLDNS}
-USEPRIVATELIB+= ldns
+LIBADD+= ldns
.endif
.if ${MK_KERBEROS_SUPPORT} != "no"
CFLAGS+= -include krb5_config.h
-DPADD+= ${LIBGSSAPI}
-LDADD+= -lgssapi
+LIBADD+= gssapi
.endif
.if ${MK_OPENSSH_NONE_CIPHER} != "no"
CFLAGS+= -DNONE_CIPHER_ENABLED
.endif
-DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD+= -lcrypt -lcrypto -lz
+LIBADD+= crypt crypto z
.if defined(LOCALBASE)
CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\"
diff --git a/secure/usr.sbin/sshd/Makefile b/secure/usr.sbin/sshd/Makefile
index 7215315..f95c8c6 100644
--- a/secure/usr.sbin/sshd/Makefile
+++ b/secure/usr.sbin/sshd/Makefile
@@ -25,9 +25,7 @@ SRCS+= gss-genr.c
MAN= sshd.8 sshd_config.5
CFLAGS+=-I${SSHDIR} -include ssh_namespace.h
-DPADD= ${LIBSSH} ${LIBUTIL} ${LIBWRAP} ${LIBPAM}
-LDADD= ${LDSSH} -lutil -lwrap ${MINUSLPAM}
-USEPRIVATELIB= ssh
+LIBADD= ssh util wrap pam
.if ${MK_LDNS} != "no"
CFLAGS+= -DHAVE_LDNS=1
@@ -38,33 +36,29 @@ CFLAGS+= -DHAVE_LDNS=1
.if ${MK_AUDIT} != "no"
CFLAGS+= -DUSE_BSM_AUDIT -DHAVE_GETAUDIT_ADDR
-DPADD+= ${LIBBSM}
-LDADD+= -lbsm
+LIBADD+= bsm
.endif
.if ${MK_KERBEROS_SUPPORT} != "no"
CFLAGS+= -include krb5_config.h
-DPADD+= ${LIBGSSAPI_KRB5} ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBASN1} \
- ${LIBCOM_ERR} ${LIBROKEN} ${LIBWIND} ${LIBHEIMBASE} ${LIBHEIMIPCC}
-LDADD+= -lgssapi_krb5 -lgssapi -lkrb5 -lhx509 -lasn1 \
- -lcom_err -lroken -lwind -lheimbase ${LDHEIMIPCC}
+LIBADD+= gssapi_krb5 gssapi krb5 hx509 asn1 com_err roken wind heimbase \
+ heimipcc
.endif
.if ${MK_OPENSSH_NONE_CIPHER} != "no"
CFLAGS+= -DNONE_CIPHER_ENABLED
.endif
-DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
-LDADD+= -lcrypt -lcrypto -lz
+LIBADD+= crypt crypto z
# Fix the order of NEEDED entries for libthr and libc. The libthr
# needs to interpose libc symbols, leaving the libthr loading as
# dependency of krb causes reversed order and broken interposing. Put
# the threading library last on the linker command line, just before
# the -lc added by a compiler driver.
+# XXX In theory the framework now takes care of that, it needs to be checked
.if ${MK_KERBEROS_SUPPORT} != "no"
-DPADD+= ${LIBPTHREAD}
-LDADD+= -lpthread
+LIBADD+= pthread
.endif
.if defined(LOCALBASE)
OpenPOWER on IntegriCloud