Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Make DPADD and LDADD specific to the test programs....
details: https://anonhg.NetBSD.org/src/rev/d2b502909772
branches: trunk
changeset: 781182:d2b502909772
user: jmmv <jmmv%NetBSD.org@localhost>
date: Fri Aug 24 20:28:19 2012 +0000
description:
Make DPADD and LDADD specific to the test programs. This allows mixing
C and C++ test programs in the same Makefile, and prevents regular programs
from being polluted by libraries that they may not need.
Suggested by Garrett Cooper in private mail, although I redid his patch.
diffstat:
share/mk/bsd.test.mk | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r f8d7dcbf3fb4 -r d2b502909772 share/mk/bsd.test.mk
--- a/share/mk/bsd.test.mk Fri Aug 24 20:26:24 2012 +0000
+++ b/share/mk/bsd.test.mk Fri Aug 24 20:28:19 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.test.mk,v 1.19 2011/09/10 16:57:35 apb Exp $
+# $NetBSD: bsd.test.mk,v 1.20 2012/08/24 20:28:19 jmmv Exp $
#
.include <bsd.init.mk>
@@ -15,10 +15,10 @@
.if defined(TESTS_C)
_TESTS+= ${TESTS_C}
PROGS+= ${TESTS_C}
-LDADD+= -latf-c
-DPADD+= ${LIBATF_C}
. for _T in ${TESTS_C}
BINDIR.${_T}= ${TESTSDIR}
+LDADD.${_T}+= -latf-c
+DPADD.${_T}+= ${LIBATF_C}
MAN.${_T}?= # empty
. endfor
.endif
@@ -26,10 +26,10 @@
.if defined(TESTS_CXX)
_TESTS+= ${TESTS_CXX}
PROGS_CXX+= ${TESTS_CXX}
-LDADD+= -latf-c++ -latf-c
-DPADD+= ${LIBATF_CXX} ${LIBATF_C}
. for _T in ${TESTS_CXX}
BINDIR.${_T}= ${TESTSDIR}
+LDADD.${_T}+= -latf-c++ -latf-c
+DPADD.${_T}+= ${LIBATF_CXX} ${LIBATF_C}
MAN.${_T}?= # empty
. endfor
.endif
Home |
Main Index |
Thread Index |
Old Index