Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf Define two suffix rules, .c -> .o and .S -> .o, usi...
details: https://anonhg.NetBSD.org/src/rev/a92b489c17e0
branches: trunk
changeset: 340264:a92b489c17e0
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sat Aug 29 16:07:07 2015 +0000
description:
Define two suffix rules, .c -> .o and .S -> .o, using ${NORMAL_C} and
${NORMAL_S} respectively. Use the .c rule to build devsw.c, ioconf.c, and
param.c. Other .c/.S files have explicit rules in the generated `Makefile',
and unaffected.
diffstat:
sys/conf/Makefile.kern.inc | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diffs (44 lines):
diff -r 1fb493a79636 -r a92b489c17e0 sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Sat Aug 29 15:58:38 2015 +0000
+++ b/sys/conf/Makefile.kern.inc Sat Aug 29 16:07:07 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.208 2015/08/29 15:58:38 uebayasi Exp $
+# $NetBSD: Makefile.kern.inc,v 1.209 2015/08/29 16:07:07 uebayasi Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -163,6 +163,14 @@
${LD} -r ${LINKFORMAT} -Map=${.TARGET}.map -o ${.TARGET} ${.ALLSRC} && \
${LD} -r ${LINKFORMAT} -Map=${.TARGET}.map -o ${.TARGET} ${.ALLSRC}
+.SUFFIXES: .c .o
+.c.o:
+ ${NORMAL_C}
+
+.SUFFIXES: .S .o
+.S.o:
+ ${NORMAL_S}
+
##
## (3) libkern and compat
##
@@ -196,6 +204,7 @@
## Each port should have a corresponding section with settings for
## MD_CFILES, MD_SFILES, and MD_OBJS, along with build rules for same.
##
+
MI_CFILES=devsw.c ioconf.c param.c
# the need for a MI_SFILES variable is dubitable at best
MI_OBJS=${MI_CFILES:S/.c/.o/}
@@ -205,11 +214,6 @@
rm -f param.c
cp $S/conf/param.c .
-.for _cfile in ${MI_CFILES}
-${_cfile:T:R}.o: ${_cfile}
- ${NORMAL_C}
-.endfor
-
##
## (5) link settings
##
Home |
Main Index |
Thread Index |
Old Index