Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/conf Add CFLAGS, CPPFLAGS, and CWARNFLAGS from options t...



details:   https://anonhg.NetBSD.org/src/rev/5c063bf0ce4f
branches:  trunk
changeset: 992382:5c063bf0ce4f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 05:35:22 2018 +0000

description:
Add CFLAGS, CPPFLAGS, and CWARNFLAGS from options to .c files.

diffstat:

 sys/conf/Makefile.kern.inc |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r f2566428e791 -r 5c063bf0ce4f sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Mon Aug 27 05:35:11 2018 +0000
+++ b/sys/conf/Makefile.kern.inc        Mon Aug 27 05:35:22 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.kern.inc,v 1.264 2018/02/17 22:47:14 joerg Exp $
+#      $NetBSD: Makefile.kern.inc,v 1.265 2018/08/27 05:35:22 riastradh Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -439,6 +439,12 @@
 CPPFLAGS+=     ${CPPFLAGS.${.IMPSRC:T}}
 CWARNFLAGS+=   ${CWARNFLAGS.${.IMPSRC:T}}
 
+.for _v in CFLAGS CPPFLAGS CWARNFLAGS
+.for _c in ${CSRCS}
+${_v}.${_c:T}+=${OPT.${_c:T}:@.o.@${${_v}.${.o.}}@}
+.endfor
+.endfor
+
 .MAIN: all
 all: .gdbinit
 .for k in ${KERNELS}



Home | Main Index | Thread Index | Old Index