diff options
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r-- | share/mk/bsd.prog.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 742eba9..3307dba 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -90,7 +90,7 @@ OBJS+= ${SRCS:N*.h:R:S/$/.o/g} beforelinking: ${OBJS} ${PROG_FULL}: beforelinking .endif -${PROG_FULL}: ${OBJS} +${PROG_FULL}: ${OBJS} ${OP_META} .if defined(PROG_CXX) ${CXX:N${CCACHE_BIN}} ${CXXFLAGS:N-M*} ${LDFLAGS} -o ${.TARGET} \ ${OBJS} ${LDADD} @@ -122,7 +122,7 @@ OBJS+= ${PROG}.o beforelinking: ${OBJS} ${PROG_FULL}: beforelinking .endif -${PROG_FULL}: ${OBJS} +${PROG_FULL}: ${OBJS} ${OP_META} .if defined(PROG_CXX) ${CXX:N${CCACHE_BIN}} ${CXXFLAGS:N-M*} ${LDFLAGS} -o ${.TARGET} \ ${OBJS} ${LDADD} @@ -138,11 +138,11 @@ ${PROG_FULL}: ${OBJS} .endif # !defined(SRCS) .if ${MK_DEBUG_FILES} != "no" -${PROG}: ${PROG_FULL} ${PROGNAME}.debug +${PROG}: ${PROG_FULL} ${PROGNAME}.debug ${OP_META} ${OBJCOPY} --strip-debug --add-gnu-debuglink=${PROGNAME}.debug \ ${PROG_FULL} ${.TARGET} -${PROGNAME}.debug: ${PROG_FULL} +${PROGNAME}.debug: ${PROG_FULL} ${OP_META} ${OBJCOPY} --only-keep-debug ${PROG_FULL} ${.TARGET} .endif |