Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf Add support for source specific AFLAGS and COPTS.
details: https://anonhg.NetBSD.org/src/rev/1aaff4fbd5b2
branches: trunk
changeset: 765046:1aaff4fbd5b2
user: joerg <joerg%NetBSD.org@localhost>
date: Tue May 17 07:16:02 2011 +0000
description:
Add support for source specific AFLAGS and COPTS.
diffstat:
sys/conf/Makefile.kern.inc | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (34 lines):
diff -r 1da5a27321a0 -r 1aaff4fbd5b2 sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Tue May 17 07:10:39 2011 +0000
+++ b/sys/conf/Makefile.kern.inc Tue May 17 07:16:02 2011 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index