Module Name: src Committed By: uebayasi Date: Sat Aug 29 05:02:43 UTC 2015
Modified Files: src/sys/conf: Makefile.kern.inc Log Message: Define some suffix rules. Not used and harmless, because all rules are explicit now. To generate a diff of this commit: cvs rdiff -u -r1.198 -r1.199 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.198 src/sys/conf/Makefile.kern.inc:1.199 --- src/sys/conf/Makefile.kern.inc:1.198 Sat Aug 29 04:46:27 2015 +++ src/sys/conf/Makefile.kern.inc Sat Aug 29 05:02:43 2015 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.kern.inc,v 1.198 2015/08/29 04:46:27 uebayasi Exp $ +# $NetBSD: Makefile.kern.inc,v 1.199 2015/08/29 05:02:43 uebayasi Exp $ # # This file contains common `MI' targets and definitions and it is included # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. @@ -307,6 +307,15 @@ SYSTEM_LD_TAIL_STAGE2+= ${SYSTEM_LD_TAIL ## ## (6) port independent targets and dependencies: assym.h, vers.o ## + +.SUFFIXES: .genassym .assym.h +.genassym.assym.h: + ${_MKTARGET_CREATE} + cat $< | \ + ${GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} ${CPPFLAGS} ${PROF} \ + ${GENASSYM_CPPFLAGS} > $@.tmp && \ + mv -f $@.tmp $@ + assym.h: ${GENASSYM_CONF} ${GENASSYM_EXTRAS} $S/conf/genassym.cf ${_MKTARGET_CREATE} cat ${GENASSYM_CONF} ${GENASSYM_EXTRAS} $S/conf/genassym.cf | \ @@ -402,6 +411,12 @@ CSRCS=${MD_CFILES} ${MI_CFILES} ${CFILES SRCS=${SSRCS} ${CSRCS} DEPS= ${SRCS:T:u:R:S/$/.d/g} +.SUFFIXES: .S .d +.S.d: + ${_MKTARGET_CREATE} + ${MKDEP} -f ${.TARGET} -- ${MKDEP_AFLAGS} \ + ${CPPFLAGS} ${CPPFLAGS.${_s:T}} $< + .for _s in ${SSRCS} .if !target(${_s:T:R}.d) ${_s:T:R}.d: ${_s} assym.h @@ -410,6 +425,13 @@ ${_s:T:R}.d: ${_s} assym.h ${CPPFLAGS} ${CPPFLAGS.${_s:T}} ${_s} .endif .endfor + +.SUFFIXES: .c .d +.c.d: + ${_MKTARGET_CREATE} + ${MKDEP} -f ${.TARGET} -- ${MKDEP_CFLAGS} \ + ${CPPFLAGS} ${CPPFLAGS.${_s:T}} $< + .for _s in ${CSRCS} .if !target(${_s:T:R}.d) ${_s:T:R}.d: ${_s}