summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.prog.mk
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2012-12-31 21:54:43 +0000
committermarkj <markj@FreeBSD.org>2012-12-31 21:54:43 +0000
commit2286811d7ef3b92efb186c8a307ed19c1f0c518c (patch)
treefccbaa2d95bdd3759e5d8fd560466eaec35b8033 /share/mk/bsd.prog.mk
parenta381b052326c27add4032cb56b17b3749fb885c2 (diff)
downloadFreeBSD-src-2286811d7ef3b92efb186c8a307ed19c1f0c518c.zip
FreeBSD-src-2286811d7ef3b92efb186c8a307ed19c1f0c518c.tar.gz
Explicitly specify that the beforelinking target depends on the
generated object files, ensuring that the beforelinking recipe won't be executed until compilation has finished. Also define SHLIB_NAME_FULL to denote ${SHLIB_NAME}.debug if DEBUG_FILES is set and ${SHLIB_NAME} otherwise, which helps avoid obfuscating the compilation and linking rules. Reviewed by: emaste Approved by: emaste (co-mentor)
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r--share/mk/bsd.prog.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index 950d381..cfa07a3 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -46,6 +46,7 @@ PROG= ${PROG_CXX}
OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
.if target(beforelinking)
+beforelinking: ${OBJS}
${PROG}: beforelinking
.endif
${PROG}: ${OBJS}
@@ -75,6 +76,7 @@ SRCS= ${PROG}.c
OBJS= ${PROG}.o
.if target(beforelinking)
+beforelinking: ${OBJS}
${PROG}: beforelinking
.endif
${PROG}: ${OBJS}
OpenPOWER on IntegriCloud