Module Name: src
Committed By: rillig
Date: Fri Oct 23 15:44:38 UTC 2020
Modified Files:
src/usr.bin/make: Makefile
Log Message:
make(1): add target-specific COPTS when generating cpre or casm
To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/usr.bin/make/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/Makefile
diff -u src/usr.bin/make/Makefile:1.104 src/usr.bin/make/Makefile:1.105
--- src/usr.bin/make/Makefile:1.104 Sun Oct 18 19:11:35 2020
+++ src/usr.bin/make/Makefile Fri Oct 23 15:44:38 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.104 2020/10/18 19:11:35 rillig Exp $
+# $NetBSD: Makefile,v 1.105 2020/10/23 15:44:38 rillig Exp $
# @(#)Makefile 5.2 (Berkeley) 12/28/90
PROG= make
@@ -189,6 +189,6 @@ retest:
# Just out of curiosity, during development.
.SUFFIXES: .cpre .casm
.c.cpre:
- ${COMPILE.c:S,^-c$,-E,} ${.IMPSRC} -o ${.TARGET}
+ ${COMPILE.c:S,^-c$,-E,} ${COPTS.${.IMPSRC}} ${.IMPSRC} -o ${.TARGET}
.c.casm:
- ${COMPILE.c:S,^-c$,-S,} ${.IMPSRC} -o ${.TARGET}
+ ${COMPILE.c:S,^-c$,-S,} ${COPTS.${.IMPSRC}} ${.IMPSRC} -o ${.TARGET}