Module Name: src
Committed By: riastradh
Date: Mon Aug 27 05:35:22 UTC 2018
Modified Files:
src/sys/conf: Makefile.kern.inc
Log Message:
Add CFLAGS, CPPFLAGS, and CWARNFLAGS from options to .c files.
To generate a diff of this commit:
cvs rdiff -u -r1.264 -r1.265 src/sys/conf/Makefile.kern.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.264 src/sys/conf/Makefile.kern.inc:1.265
--- src/sys/conf/Makefile.kern.inc:1.264 Sat Feb 17 22:47:14 2018
+++ src/sys/conf/Makefile.kern.inc Mon Aug 27 05:35:22 2018
@@ -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 @@ CFLAGS+= ${COPTS.${.IMPSRC:T}} ${CPUFLAG
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}