Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk If mkldscript.sh is used to build ${PROG}, depend o...
details: https://anonhg.NetBSD.org/src/rev/e755a4e9bb73
branches: trunk
changeset: 333664:e755a4e9bb73
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Thu Nov 13 01:09:59 2014 +0000
description:
If mkldscript.sh is used to build ${PROG}, depend on it.
diffstat:
share/mk/bsd.kmodule.mk | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 07232c00cac1 -r e755a4e9bb73 share/mk/bsd.kmodule.mk
--- a/share/mk/bsd.kmodule.mk Wed Nov 12 23:12:27 2014 +0000
+++ b/share/mk/bsd.kmodule.mk Thu Nov 13 01:09:59 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.kmodule.mk,v 1.50 2014/11/12 19:33:32 christos Exp $
+# $NetBSD: bsd.kmodule.mk,v 1.51 2014/11/13 01:09:59 uebayasi Exp $
# We are not building this with PIE
MKPIE=no
@@ -106,7 +106,8 @@
${XOBJS}: ${DPSRCS}
.endif
-${PROG}: ${XOBJS} ${XSRCS} ${DPSRCS} ${DPADD}
+${PROG}: ${XOBJS} ${XSRCS} ${DPSRCS} ${DPADD} \
+ ${"${MKLDSCRIPT}" == "yes":?$S/conf/mkldscript.sh ${KMODSCRIPTSRC}:}
${_MKTARGET_LINK}
.if ${MKLDSCRIPT} == "yes"
@rm -f ${KMODSCRIPT}
@@ -160,7 +161,8 @@
-o ${.TARGET} ${KMOD}_tmp.o ${KMOD}_tramp.o
.endif
.else
-${PROG}: ${OBJS} ${DPADD}
+${PROG}: ${OBJS} ${DPADD} \
+ ${"${MKLDSCRIPT}" == "yes":?$S/conf/mkldscript.sh ${KMODSCRIPTSRC}:}
${_MKTARGET_LINK}
.if ${MKLDSCRIPT} == "yes"
@rm -f ${KMODSCRIPT}
Home |
Main Index |
Thread Index |
Old Index