Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Add PROGDPLIBS
details: https://anonhg.NetBSD.org/src/rev/976921477627
branches: trunk
changeset: 784918:976921477627
user: christos <christos%NetBSD.org@localhost>
date: Thu Feb 14 01:58:00 2013 +0000
description:
Add PROGDPLIBS
diffstat:
share/mk/bsd.prog.mk | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 47625f0ae857 -r 976921477627 share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk Thu Feb 14 01:57:42 2013 +0000
+++ b/share/mk/bsd.prog.mk Thu Feb 14 01:58:00 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prog.mk,v 1.280 2013/01/26 21:49:20 christos Exp $
+# $NetBSD: bsd.prog.mk,v 1.281 2013/02/14 01:58:00 christos Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.ifndef HOSTPROG
@@ -377,6 +377,23 @@
. endif
.endif
+##### Libraries that this may depend upon.
+.if defined(PROGDPLIBS) # {
+.for _lib _dir in ${PROGDPLIBS}
+.if !defined(BINDO.${_lib})
+BINDO.${_lib}!= cd "${_dir}" && ${PRINTOBJDIR}
+.MAKEOVERRIDES+=BINDO.${_lib}
+.endif
+LDADD+= -L${BINDO.${_lib}} -l${_lib}
+.if ${MKPICLIB} != "no"
+DPADD+= ${BINDO.${_lib}}/libamu_pic.a
+.elif ${MKPIC} != "no"
+DPADD+= ${BINDO.${_lib}}/libamu.so
+.else
+DPADD+= ${BINDO.${_lib}}/libamu.a
+.endif
+.endfor
+.endif # }
#
# Per-program definitions and targets.
#
Home |
Main Index |
Thread Index |
Old Index