Module Name: src
Committed By: christos
Date: Thu Feb 14 01:58:00 UTC 2013
Modified Files:
src/share/mk: bsd.prog.mk
Log Message:
Add PROGDPLIBS
To generate a diff of this commit:
cvs rdiff -u -r1.280 -r1.281 src/share/mk/bsd.prog.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/bsd.prog.mk
diff -u src/share/mk/bsd.prog.mk:1.280 src/share/mk/bsd.prog.mk:1.281
--- src/share/mk/bsd.prog.mk:1.280 Sat Jan 26 16:49:20 2013
+++ src/share/mk/bsd.prog.mk Wed Feb 13 20:58:00 2013
@@ -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 @@ PROGS= ${PROG}
. 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.
#