diff --git a/share/mk/bsd.README b/share/mk/bsd.README index d2c396f637ab..5653cf80e86a 100644 --- a/share/mk/bsd.README +++ b/share/mk/bsd.README @@ -1,4 +1,4 @@ -# $NetBSD: bsd.README,v 1.320 2013/09/29 14:36:25 christos Exp $ +# $NetBSD: bsd.README,v 1.321 2013/10/28 01:47:13 mrg Exp $ # @(#)bsd.README 8.2 (Berkeley) 4/2/94 This is the README file for the make "include" files for the NetBSD @@ -1809,6 +1809,8 @@ MAKE make(1). [make] MKDEP Construct Makefile dependency list. [mkdep] +MKDEPCXX Construct Makefile dependency list for C++ files. [mkdep] + NM List symbols from object files. [nm] PC Pascal compiler. [pc] (Not present) diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index 14ce79a15fa8..a704869b6be5 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.dep.mk,v 1.77 2013/03/05 21:59:01 christos Exp $ +# $NetBSD: bsd.dep.mk,v 1.78 2013/10/28 01:47:13 mrg Exp $ ##### Basic targets realdepend: beforedepend .depend afterdepend @@ -8,6 +8,7 @@ beforedepend .depend afterdepend: # ensure existence ##### Default values MKDEP?= mkdep +MKDEPCXX?= mkdep MKDEP_SUFFIXES?= .o ##### Build rules @@ -61,25 +62,29 @@ _MKDEP_FILEFLAGS= ${_MKTARGET_CREATE} ${MKDEP} -f ${.TARGET} ${_MKDEP_FILEFLAGS} -- ${MKDEPFLAGS} \ ${CFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \ - ${CPPFLAGS} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} + ${CPPFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} \ + ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} .m.d: ${_MKTARGET_CREATE} ${MKDEP} -f ${.TARGET} ${_MKDEP_FILEFLAGS} -- ${MKDEPFLAGS} \ ${OBJCFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \ - ${CPPFLAGS} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} + ${CPPFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} \ + ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} .s.d .S.d: ${_MKTARGET_CREATE} ${MKDEP} -f ${.TARGET} ${_MKDEP_FILEFLAGS} -- ${MKDEPFLAGS} \ ${AFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \ - ${CPPFLAGS} ${CPPFLAGS.${.IMPSRC:T}} ${__acpp_flags} ${.IMPSRC} + ${CPPFLAGS} ${AFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} \ + ${__acpp_flags} ${.IMPSRC} .C.d .cc.d .cpp.d .cxx.d: ${_MKTARGET_CREATE} - ${MKDEP} -f ${.TARGET} ${_MKDEP_FILEFLAGS} -- ${MKDEPFLAGS} \ + ${MKDEPCXX} -f ${.TARGET} ${_MKDEP_FILEFLAGS} -- ${MKDEPFLAGS} \ ${CXXFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \ - ${CPPFLAGS} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} + ${CPPFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} \ + ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} .endif # defined(SRCS) && !empty(SRCS) # } diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index 4748d5f32ba0..9be3d4ce736d 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.753 2013/10/14 16:00:16 joerg Exp $ +# $NetBSD: bsd.own.mk,v 1.754 2013/10/28 01:47:13 mrg Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -271,6 +271,7 @@ LEX= ${TOOLDIR}/bin/${_TOOL_PREFIX}lex LINT= CC=${CC:Q} ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-lint LORDER= NM=${NM:Q} MKTEMP=${TOOL_MKTEMP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder MKDEP= CC=${CC:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep +MKDEPCXX= CC=${CXX:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep PAXCTL= ${TOOLDIR}/bin/${_TOOL_PREFIX}paxctl TSORT= ${TOOLDIR}/bin/${_TOOL_PREFIX}tsort -q YACC= ${TOOLDIR}/bin/${_TOOL_PREFIX}yacc diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 9ec5fe48dd96..a4425e0d153e 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.sys.mk,v 1.228 2013/10/26 03:26:57 mrg Exp $ +# $NetBSD: bsd.sys.mk,v 1.229 2013/10/28 01:47:13 mrg Exp $ # # Build definitions used for NetBSD source tree builds. @@ -176,6 +176,7 @@ HOST_SH?= /bin/sh ELF2ECOFF?= elf2ecoff MKDEP?= mkdep +MKDEPCXX?= mkdep OBJCOPY?= objcopy OBJDUMP?= objdump PAXCTL?= paxctl