Source-Changes-HG archive

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

[src/trunk]: src/sys/conf Build param.c under conf/ using suffix rules in `-S...



details:   https://anonhg.NetBSD.org/src/rev/5725501a135b
branches:  trunk
changeset: 810525:5725501a135b
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Wed Sep 02 15:35:52 2015 +0000

description:
Build param.c under conf/ using suffix rules in `-S' mode.

diffstat:

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

diffs (33 lines):

diff -r 7eff7d2c9f53 -r 5725501a135b sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Wed Sep 02 15:29:23 2015 +0000
+++ b/sys/conf/Makefile.kern.inc        Wed Sep 02 15:35:52 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.kern.inc,v 1.223 2015/09/02 15:29:23 uebayasi Exp $
+#      $NetBSD: Makefile.kern.inc,v 1.224 2015/09/02 15:35:52 uebayasi Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -194,18 +194,22 @@
 ## MD_CFILES, MD_SFILES, and MD_OBJS, along with build rules for same.
 ##
 
+.if !defined(___USE_SUFFIX_RULES___)
 MI_CFILES=     param.c
-.if !defined(___USE_SUFFIX_RULES___)
 MI_CFILES+=    devsw.c ioconf.c
+.else
+MI_CFILES=     conf/param.c
 .endif
 
 # the need for a MI_SFILES variable is dubitable at best
 MI_OBJS=${MI_CFILES:S/.c/.o/}
 
+.if !defined(___USE_SUFFIX_RULES___)
 param.c: $S/conf/param.c
        ${_MKTARGET_CREATE}
        rm -f param.c
        cp $S/conf/param.c .
+.endif
 
 ##
 ## (5) link settings



Home | Main Index | Thread Index | Old Index