Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): allow easy creation of preprocessed so...



details:   https://anonhg.NetBSD.org/src/rev/a5f5dd26a9c5
branches:  trunk
changeset: 1014886:a5f5dd26a9c5
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Oct 05 15:11:37 2020 +0000

description:
make(1): allow easy creation of preprocessed source and assembler

To be used during development, to see how changes in the source code
affect the generated machine code.

diffstat:

 usr.bin/make/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r f53eca12ff6d -r a5f5dd26a9c5 usr.bin/make/Makefile
--- a/usr.bin/make/Makefile     Mon Oct 05 14:54:50 2020 +0000
+++ b/usr.bin/make/Makefile     Mon Oct 05 15:11:37 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.99 2020/09/01 17:12:30 rillig Exp $
+#      $NetBSD: Makefile,v 1.100 2020/10/05 15:11:37 rillig Exp $
 #      @(#)Makefile    5.2 (Berkeley) 12/28/90
 
 PROG=  make
@@ -189,3 +189,10 @@
        rm -f *.gcov *.gcda
 .endif
        ${.MAKE} test
+
+# Just out of curiosity, during development.
+.SUFFIXES: .cpre .casm
+.c.cpre:
+       ${COMPILE.c:S,^-c$,-E,} ${.IMPSRC} -o ${.TARGET}
+.c.casm:
+       ${COMPILE.c:S,^-c$,-S,} ${.IMPSRC} -o ${.TARGET}



Home | Main Index | Thread Index | Old Index