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 custom build options



details:   https://anonhg.NetBSD.org/src/rev/377a828589b1
branches:  trunk
changeset: 937751:377a828589b1
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Aug 25 16:39:19 2020 +0000

description:
make(1): allow custom build options

diffstat:

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

diffs (21 lines):

diff -r fd0c334f3e77 -r 377a828589b1 usr.bin/make/Makefile
--- a/usr.bin/make/Makefile     Tue Aug 25 16:39:16 2020 +0000
+++ b/usr.bin/make/Makefile     Tue Aug 25 16:39:19 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.92 2020/08/23 17:22:52 rillig Exp $
+#      $NetBSD: Makefile,v 1.93 2020/08/25 16:39:19 rillig Exp $
 #      @(#)Makefile    5.2 (Berkeley) 12/28/90
 
 PROG=  make
@@ -164,6 +164,11 @@
 
 COPTS+=                -Wdeclaration-after-statement
 
+# For -DCLEANUP and similar feature toggles.
+CPPFLAGS+=     ${USER_CPPFLAGS}
+# For overriding -std=gnu99 or similar options.
+CFLAGS+=       ${USER_CFLAGS}
+
 # A simple unit-test driver to help catch regressions
 TEST_MAKE ?= ${.OBJDIR}/${PROG:T}
 test: .MAKE



Home | Main Index | Thread Index | Old Index