Skip to content

Commit 9b24c1e

Browse files
committed
Document CWARNFLAGS and CWARNFLAGS.<comp>
1 parent 3570d19 commit 9b24c1e

3 files changed

Lines changed: 20 additions & 14 deletions

File tree

share/mk/bsd.README

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: bsd.README,v 1.463 2026/02/11 22:15:40 lukem Exp $
1+
# $NetBSD: bsd.README,v 1.464 2026/02/13 03:16:15 lukem Exp $
22
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
33

44
This is the README file for the make "include" files for the NetBSD
@@ -858,14 +858,14 @@ FILESMODE_<fn> File mode of the specific file <fn>.
858858

859859
FILESDIR_<fn> The location to install the specific file <fn>.
860860

861-
FILESNAME_<fn> Optional name to install <fn> as.
861+
FILESNAME_<fn> Optional name to install file <fn> as.
862862

863863
FILESBUILD If this variable is defined, then its value will be
864864
used as the default for all FILESBUILD_<fn> variables.
865865
Otherwise, the default will be "no".
866866

867-
FILESBUILD_<fn> A value different from "no" will add the file to the list of
868-
targets to be built by 'realall'. Users of that variable
867+
FILESBUILD_<fn> A value different from "no" will add the file <fn> to the list
868+
of targets to be built by 'realall'. Users of that variable
869869
should provide a target to build the file.
870870

871871

@@ -880,7 +880,7 @@ UUDECODE_FILES List of files which are stored as <file>.uue in the source
880880
not.
881881

882882
UUDECODE_FILES_RENAME_<fn>
883-
Rename the output from the decode to the provided name.
883+
Rename the output from the decode to the provided name <fn>.
884884

885885
Note: These files are simply decoded, with no install or other
886886
rule applying implicitly except being added to the 'clean'
@@ -1379,7 +1379,7 @@ COPTS Extra options for the C compiler. Should be appended to
13791379
options that select CPU-related options.
13801380

13811381
COPTS.<fn> Extra options for the C compiler when creating the
1382-
C objects for <fn>.
1382+
C objects for file <fn>.
13831383
For <fn>.[ly], "<fn>.c" must be used.
13841384

13851385
CPUFLAGS Additional options passed to the compiler/assembler to
@@ -1392,12 +1392,12 @@ CPUFLAGS Additional options passed to the compiler/assembler to
13921392

13931393
Default: Unset.
13941394

1395-
CPUFLAGS.<fn> Additional options to the compiler/assembler for <fn>.
1395+
CPUFLAGS.<fn> Additional options to the compiler/assembler for file <fn>.
13961396
For <fn>.[ly], "<fn>.c" must be used.
13971397

13981398
CPPFLAGS Additional options to the C pre-processor.
13991399

1400-
CPPFLAGS.<fn> Additional options to the C pre-processor for <fn>.
1400+
CPPFLAGS.<fn> Additional options to the C pre-processor for file <fn>.
14011401
For <fn>.[ly], "<fn>.c" must be used.
14021402

14031403
GDBINIT List of GDB initialization files to add to "source"
@@ -1417,7 +1417,7 @@ LINKS See <bsd.links.mk>
14171417
OBJCOPTS Additional options to the compiler when creating ObjC objects.
14181418

14191419
OBJCOPTS.<fn> Additional options to the compiler when creating the
1420-
ObjC objects for <fn>.
1420+
ObjC objects for file <fn>.
14211421
For <fn>.[ly], "<fn>.c" must be used.
14221422

14231423
SYMLINKS See <bsd.links.mk>
@@ -1828,7 +1828,8 @@ CPPSCRIPTS List of files/scripts to run through cpp(1)
18281828

18291829
CPPSCRIPTFLAGS Additional options to cpp(1) when building CPPSCRIPTS.
18301830

1831-
CPPSCRIPTFLAGS_<fn> Additional options to cpp(1) when building CPPSCRIPT <fn>.
1831+
CPPSCRIPTFLAGS_<fn> Additional options to cpp(1) when building CPPSCRIPT
1832+
file <fn>.
18321833

18331834

18341835
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@@ -1881,6 +1882,11 @@ CPPFLAGS Options to ${CPP}. []
18811882

18821883
CPUFLAGS Optimization options for ${CC}. []
18831884

1885+
CWARNFLAGS Warnings to enable or disable in CFLAGS. []
1886+
1887+
CWARNFLAGS.<comp>
1888+
Warnings to enable or disable in CFLAGS for compiler <comp>. []
1889+
18841890
CXX C++ compiler. [c++]
18851891

18861892
CXXFLAGS Options to ${CXX}. [${CFLAGS}]

sys/modules/amdgpu/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile,v 1.10 2025/09/19 05:18:23 mrg Exp $
1+
# $NetBSD: Makefile,v 1.11 2026/02/13 03:16:15 lukem Exp $
22

33
.include "../Makefile.inc"
44
.include "../drmkms/Makefile.inc"
@@ -567,5 +567,5 @@ SRCS+= amdgpufb.c
567567

568568
.include <bsd.kmodule.mk>
569569

570-
# XXX
570+
# XXX implement CWARNFLAGS.<fn> for this Makefile
571571
CFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}

usr.bin/make/unit-tests/cond-undef-lint.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: cond-undef-lint.mk,v 1.8 2025/01/11 21:21:33 rillig Exp $
1+
# $NetBSD: cond-undef-lint.mk,v 1.9 2026/02/13 03:16:15 lukem Exp $
22
#
33
# Tests for defined and undefined variables in .if conditions, in lint mode.
44
#
@@ -51,7 +51,7 @@ DEF= defined
5151

5252
# Variables that are referenced indirectly may be undefined in a condition.
5353
#
54-
# A practical example for this is CFLAGS, which consists of CWARNS, COPTS
54+
# A practical example for this is CFLAGS, which consists of CWARNFLAGS, COPTS
5555
# and a few others. Just because these nested variables are not defined,
5656
# this does not make the condition invalid.
5757
#

0 commit comments

Comments
 (0)