Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk CTFCONVERT me harder.
details: https://anonhg.NetBSD.org/src/rev/5479bb673acc
branches: trunk
changeset: 784368:5479bb673acc
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 26 21:49:20 2013 +0000
description:
CTFCONVERT me harder.
diffstat:
share/mk/bsd.prog.mk | 8 +++++++-
share/mk/bsd.sys.mk | 5 ++++-
share/mk/sys.mk | 17 ++++++++++++++++-
3 files changed, 27 insertions(+), 3 deletions(-)
diffs (106 lines):
diff -r f8226b24aa68 -r 5479bb673acc share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk Sat Jan 26 21:48:58 2013 +0000
+++ b/share/mk/bsd.prog.mk Sat Jan 26 21:49:20 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prog.mk,v 1.279 2013/01/17 15:42:59 christos Exp $
+# $NetBSD: bsd.prog.mk,v 1.280 2013/01/26 21:49:20 christos Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.ifndef HOSTPROG
@@ -33,12 +33,18 @@
.c.o:
${CC} -E ${CPPFLAGS} ${CFLAGS} ${.IMPSRC} | xstr -c -
@${CC} ${CPPFLAGS} ${CFLAGS} -c x.c -o ${.TARGET}
+.if defined(CTFCONVERT)
+ ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
+.endif
@rm -f x.c
.cc.o .cpp.o .cxx.o .C.o:
${CXX} -E ${CPPFLAGS} ${CXXFLAGS} ${.IMPSRC} | xstr -c -
@mv -f x.c x.cc
@${CXX} ${CPPFLAGS} ${CXXFLAGS} -c x.cc -o ${.TARGET}
+.if defined(CTFCONVERT)
+ ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
+.endif
@rm -f x.cc
.endif
diff -r f8226b24aa68 -r 5479bb673acc share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk Sat Jan 26 21:48:58 2013 +0000
+++ b/share/mk/bsd.sys.mk Sat Jan 26 21:49:20 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.220 2012/09/23 19:20:44 joerg Exp $
+# $NetBSD: bsd.sys.mk,v 1.221 2013/01/26 21:49:20 christos Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -212,6 +212,9 @@
.cc.o .cpp.o .cxx.o .C.o:
${_MKTARGET_COMPILE}
${COMPILE.cc} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC}
+.if defined(CTFCONVERT)
+ ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
+.endif
# Objective C
# (Defined here rather than in <sys.mk> because `.m' is not just
diff -r f8226b24aa68 -r 5479bb673acc share/mk/sys.mk
--- a/share/mk/sys.mk Sat Jan 26 21:48:58 2013 +0000
+++ b/share/mk/sys.mk Sat Jan 26 21:49:20 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: sys.mk,v 1.113 2013/01/18 19:32:09 christos Exp $
+# $NetBSD: sys.mk,v 1.114 2013/01/26 21:49:20 christos Exp $
# @(#)sys.mk 8.2 (Berkeley) 3/21/94
#
# This file contains the basic rules for make(1) and is read first
@@ -135,6 +135,9 @@
${LINK.cc} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
.cc.o .cpp.o .cxx.o .C.o:
${COMPILE.cc} ${.IMPSRC}
+.if defined(CTFCONVERT)
+ ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
+.endif
.cc.a .cpp.a .cxx.a .C.a:
${COMPILE.cc} ${.IMPSRC}
${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
@@ -145,6 +148,9 @@
${LINK.f} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
.f.o:
${COMPILE.f} ${.IMPSRC}
+.if defined(CTFCONVERT)
+ ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
+.endif
.f.a:
${COMPILE.f} ${.IMPSRC}
${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
@@ -169,6 +175,9 @@
${LINK.r} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
.r.o:
${COMPILE.r} ${.IMPSRC}
+.if defined(CTFCONVERT)
+ ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
+.endif
.r.a:
${COMPILE.r} ${.IMPSRC}
${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o
@@ -231,6 +240,9 @@
.l.o:
${LEX.l} ${.IMPSRC}
${COMPILE.c} -o ${.TARGET} lex.yy.c
+.if defined(CTFCONVERT)
+ ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
+.endif
rm -f lex.yy.c
# Yacc
@@ -244,6 +256,9 @@
.y.o:
${YACC.y} ${.IMPSRC}
${COMPILE.c} -o ${.TARGET} y.tab.c
+.if defined(CTFCONVERT)
+ ${CTFCONVERT} ${CTFFLAGS} ${.TARGET}
+.endif
rm -f y.tab.c
# Shell
Home |
Main Index |
Thread Index |
Old Index