Module Name: src
Committed By: joerg
Date: Tue May 17 07:16:03 UTC 2011
Modified Files:
src/sys/conf: Makefile.kern.inc
Log Message:
Add support for source specific AFLAGS and COPTS.
To generate a diff of this commit:
cvs rdiff -u -r1.132 -r1.133 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.132 src/sys/conf/Makefile.kern.inc:1.133
--- src/sys/conf/Makefile.kern.inc:1.132 Wed May 11 16:03:56 2011
+++ src/sys/conf/Makefile.kern.inc Tue May 17 07:16:02 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.132 2011/05/11 16:03:56 jakllsch Exp $
+# $NetBSD: Makefile.kern.inc,v 1.133 2011/05/17 07:16:02 joerg Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -133,18 +133,18 @@
# NOPROF and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).
NORMAL_C?= @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}" && \
${_MKSHECHO}\
- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< && \
- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< && \
+ ${CC} ${COPTS.${<:T}} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< && \
+ ${CC} ${COPTS.${<:T}} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $< && \
${COMPILE_CTFCONVERT}
NOPROF_C?= @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}" && \
${_MKSHECHO}\
- ${CC} ${CFLAGS} ${CPPFLAGS} -c $< && \
- ${CC} ${CFLAGS} ${CPPFLAGS} -c $< && \
+ ${CC} ${COPTS.${<:T}} ${CFLAGS} ${CPPFLAGS} -c $< && \
+ ${CC} ${COPTS.${<:T}} ${CFLAGS} ${CPPFLAGS} -c $< && \
${COMPILE_CTFCONVERT}
NORMAL_S?= @${_MKSHMSG} "compile ${.CURDIR:T}/${.TARGET}" && \
${_MKSHECHO}\
- ${CC} ${AFLAGS} ${CPPFLAGS} -c $< && \
- ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
+ ${CC} ${AFLAGS} ${AFLAGS.${<:T}} ${CPPFLAGS} -c $< && \
+ ${CC} ${AFLAGS} ${AFLAGS.${<:T}} ${CPPFLAGS} -c $<
##
## (3) libkern and compat