History log of /src/share/mk/Makefile (Results 1 – 25 of 456)
Revision Date Author Comments
# 3a239e46 21-Aug-2025 Mark Johnston <markj@FreeBSD.org>

share/mk: Deduplicate some handling of debug info

bsd.prog.mk and bsd.lib.mk contain a bunch of duplicated logic used to
handle DEBUG_FLAGS and standalone debug file info (enabled by
MK_DEBUG_FILES)

share/mk: Deduplicate some handling of debug info

bsd.prog.mk and bsd.lib.mk contain a bunch of duplicated logic used to
handle DEBUG_FLAGS and standalone debug file info (enabled by
MK_DEBUG_FILES). In anticipation of adding more duplicated logic, let's
try factoring it out into a separate bsd.debug.mk first.

bsd.debug.mk now handles the following:
- MK_ASSERT_DEBUG
- installation rules for debug files (the consumer has to set DEBUGFILE)
- updating CFLAGS and CXXFLAGS based on DEBUG_FLAGS
- optionally stripping installed files

No functional change intended.

Reviewed by: bdrewery
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D51805

show more ...


# 14f57afb 27-Jul-2025 Lexi Winter <ivy@FreeBSD.org>

bmake: Add a package for bmake and share/mk

bmake along with /usr/share/mk seems to meet the criteria for being in
its own package: it's self-contained and the majority of users (who are
using binar

bmake: Add a package for bmake and share/mk

bmake along with /usr/share/mk seems to meet the criteria for being in
its own package: it's self-contained and the majority of users (who are
using binary packages) don't need to install it, so it doesn't belong in
FreeBSD-utilities. Instead, put it in its own package.

Add a dependency on the new package from:

- sendmail (uses make to build its configuration)
- NIS (uses make to build the database).

But not from examples, because while some of the examples do require
make, they are intended as examples rather than something to be used
directly.

Reviewed by: manu, sjg
Differential Revision: https://reviews.freebsd.org/D50149

show more ...


# 8e1e989c 04-Jun-2025 Simon J. Gerraty <sjg@FreeBSD.org>

Add host.test.mk for DIRDEPS_BUILD

If we are doing DIRDEPS_BUILD and MK_RUN_TESTS is yes
we can hook tests associated with dirs to be built into the graph
such that we avoid circular dependencies bu

Add host.test.mk for DIRDEPS_BUILD

If we are doing DIRDEPS_BUILD and MK_RUN_TESTS is yes
we can hook tests associated with dirs to be built into the graph
such that we avoid circular dependencies but the build will fail
should any test fail.

Make MK_RUN_TESTS independent of MK_TESTS
also for non-DIRDEPS_BUILD ensure we have RELDIR and check it
against patterns in HOST_RUN_TESTS.

Reviewed by: stevek
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D50387

show more ...


# 9c4f1497 22-Apr-2025 Dimitry Andric <dim@FreeBSD.org>

Move extra suffix-transformation rules into bsd.suffixes-extra.mk

To make it possible to use the .SUFFIXES list and suffix-transformation
rules from bsd.lib.mk in other places, move them to a separa

Move extra suffix-transformation rules into bsd.suffixes-extra.mk

To make it possible to use the .SUFFIXES list and suffix-transformation
rules from bsd.lib.mk in other places, move them to a separate file,
bsd.suffixes-extra.mk.

Note that we cannot add the list and rules to bsd.suffixes.mk, since
that file also gets included by sys.mk, which applies to non-source
builds. That would require a whole ports exp-run.

No functional change intended.

Reviewed by: brooks, emaste
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D49965

show more ...


# e9c2838d 11-Feb-2025 Simon J. Gerraty <sjg@FreeBSD.org>

Add newlog.sh and setops.sh to share/mk

jobs.mk makes use of newlog.sh if found.

Set NEWLOG_SH in local.sys.env.mk to save jobs.mk searching for it.

PR: 284390
Reviewed by: stevek
Differential Rev

Add newlog.sh and setops.sh to share/mk

jobs.mk makes use of newlog.sh if found.

Set NEWLOG_SH in local.sys.env.mk to save jobs.mk searching for it.

PR: 284390
Reviewed by: stevek
Differential Revision: https://reviews.freebsd.org/D48737

show more ...


# a2b67d4a 29-Jul-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Update dirdeps.mk to latest

Also add meta2deps.{py,sh} to FILES so they get installed/staged

Reviewed by: stevek


# e9ac4169 15-Jul-2024 Warner Losh <imp@FreeBSD.org>

Remove residual blank line at start of Makefile

This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix


# 97759ccc 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

share: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl

share: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

show more ...


# 61fe0b8e 30-Aug-2023 Simon J. Gerraty <sjg@FreeBSD.org>

Add sys.dirdeps.mk to share/mk FILES

A few recent makefiles should have been added to FILES.
Rename sys.machine.mk to local.sys.machine.mk as it is very
tree specific so does not belong in /usr/shar

Add sys.dirdeps.mk to share/mk FILES

A few recent makefiles should have been added to FILES.
Rename sys.machine.mk to local.sys.machine.mk as it is very
tree specific so does not belong in /usr/share/mk/

Reviewed by: stevek
Differential Revision: https://reviews.freebsd.org/D41642

show more ...


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 2d01ce7f 28-Jul-2023 Jessica Clarke <jrtc27@FreeBSD.org>

mk: Install bsd.compat.pre.mk

Reported by: dchagin
Fixes: 5d6cb793d0d5 ("bsd.compat.mk Extract _ALL_LIBCOMPATS and add related variables")


# 0967f703 11-Apr-2022 Colin Percival <cperciva@FreeBSD.org>

Install the recently added posix.mk file

This enables POSIX compatibility for Makefiles which start with
.POSIX:

Submitted by: sjg


# c3bd3d1c 21-Nov-2019 Warner Losh <imp@FreeBSD.org>

Install bsd.sysdir.mk.

Submitted by: Jung-uk Kim


# 2a19575a 16-Oct-2019 Brooks Davis <brooks@FreeBSD.org>

Install bsd.compat.mk.

Reported by: glebius


# 2aaf9152 18-Mar-2019 Alan Somers <asomers@FreeBSD.org>

MFHead@r345275


# 5193fcde 15-Mar-2019 Enji Cooper <ngie@FreeBSD.org>

Initial googlemock/googletest integration into the build/FreeBSD test suite

This initial integration takes googlemock/googletest release 1.8.1, integrates
the library, tests, and sample unit tests i

Initial googlemock/googletest integration into the build/FreeBSD test suite

This initial integration takes googlemock/googletest release 1.8.1, integrates
the library, tests, and sample unit tests into the build.

googlemock/googletest's inclusion is optionally available via `MK_GOOGLETEST`.
`MK_GOOGLETEST` is dependent on `MK_TESTS` and is enabled by default when
built with a C++11 capable toolchain.

Google tests can be specified via the `GTESTS` variable, which, in comparison
with the other test drivers, is more simplified/streamlined, as Googletest only
supports C++ tests; not raw C or shell tests (C tests can be written in C++
using the standard embedding methods).

No dependent libraries are assumed for the tests. One must specify `gmock`,
`gmock_main`, `gtest`, or `gtest_main`, via `LIBADD` for the program.

More information about googlemock and googletest can be found on the
Googletest [project page](https://github.com/google/googletest), and the
[GoogleMock](https://github.com/google/googletest/blob/v1.8.x/googlemock/docs/Documentation.md)
and
[GoogleTest](https://github.com/google/googletest/tree/v1.8.x/googletest/docs)
docs.

These tests are originally integrated into the build as plain driver tests, but
will be natively integrated into Kyua in a later version.

Known issues/Errata:
* [WhenDynamicCastToTest.AmbiguousCast fails on FreeBSD](https://github.com/google/googletest/issues/2172)

Reviewed by: asomers
Approved by: emaste (mentor)
MFC after: 2 months
Differential Revision: https://reviews.freebsd.org/D19551

show more ...


# 83301881 20-Feb-2019 Enji Cooper <ngie@FreeBSD.org>

Correct gmock/gtest expectations w.r.t. C++11/RTTI

Long story short, some of the tests were failing because they expected either
dynamic_cast or RTTI to be functional and it wasn't.

Move all common

Correct gmock/gtest expectations w.r.t. C++11/RTTI

Long story short, some of the tests were failing because they expected either
dynamic_cast or RTTI to be functional and it wasn't.

Move all common CXXFLAGS out to googletest.test.inc.mk and reference it from
googletest.test.mk and .../googletest/Makefile.inc

show more ...


# bd71398d 20-Feb-2019 Enji Cooper <ngie@FreeBSD.org>

Add googletest.test.mk and integrate into bsd.test.mk

googletest.test.mk is a rudimentary wrapper around the plain test interface
(for now), which only supports C++ programs, specified by the `GTEST

Add googletest.test.mk and integrate into bsd.test.mk

googletest.test.mk is a rudimentary wrapper around the plain test interface
(for now), which only supports C++ programs, specified by the `GTESTS`
variable.

In the future, kyua will support gtests in a more native manner.

show more ...


# bbd7a929 04-Aug-2018 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r336870 through r337285, and resolve conflicts.


# 3a239e46 21-Aug-2025 Mark Johnston <markj@FreeBSD.org>

share/mk: Deduplicate some handling of debug info

bsd.prog.mk and bsd.lib.mk contain a bunch of duplicated logic used to
handle DEBUG_FLAGS and standalone debug file info (enabled by
MK_DEBUG_FILES)

share/mk: Deduplicate some handling of debug info

bsd.prog.mk and bsd.lib.mk contain a bunch of duplicated logic used to
handle DEBUG_FLAGS and standalone debug file info (enabled by
MK_DEBUG_FILES). In anticipation of adding more duplicated logic, let's
try factoring it out into a separate bsd.debug.mk first.

bsd.debug.mk now handles the following:
- MK_ASSERT_DEBUG
- installation rules for debug files (the consumer has to set DEBUGFILE)
- updating CFLAGS and CXXFLAGS based on DEBUG_FLAGS
- optionally stripping installed files

No functional change intended.

Reviewed by: bdrewery
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D51805

show more ...


# 14f57afb 27-Jul-2025 Lexi Winter <ivy@FreeBSD.org>

bmake: Add a package for bmake and share/mk

bmake along with /usr/share/mk seems to meet the criteria for being in
its own package: it's self-contained and the majority of users (who are
using binar

bmake: Add a package for bmake and share/mk

bmake along with /usr/share/mk seems to meet the criteria for being in
its own package: it's self-contained and the majority of users (who are
using binary packages) don't need to install it, so it doesn't belong in
FreeBSD-utilities. Instead, put it in its own package.

Add a dependency on the new package from:

- sendmail (uses make to build its configuration)
- NIS (uses make to build the database).

But not from examples, because while some of the examples do require
make, they are intended as examples rather than something to be used
directly.

Reviewed by: manu, sjg
Differential Revision: https://reviews.freebsd.org/D50149

show more ...


# 8e1e989c 04-Jun-2025 Simon J. Gerraty <sjg@FreeBSD.org>

Add host.test.mk for DIRDEPS_BUILD

If we are doing DIRDEPS_BUILD and MK_RUN_TESTS is yes
we can hook tests associated with dirs to be built into the graph
such that we avoid circular dependencies bu

Add host.test.mk for DIRDEPS_BUILD

If we are doing DIRDEPS_BUILD and MK_RUN_TESTS is yes
we can hook tests associated with dirs to be built into the graph
such that we avoid circular dependencies but the build will fail
should any test fail.

Make MK_RUN_TESTS independent of MK_TESTS
also for non-DIRDEPS_BUILD ensure we have RELDIR and check it
against patterns in HOST_RUN_TESTS.

Reviewed by: stevek
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D50387

show more ...


# 9c4f1497 22-Apr-2025 Dimitry Andric <dim@FreeBSD.org>

Move extra suffix-transformation rules into bsd.suffixes-extra.mk

To make it possible to use the .SUFFIXES list and suffix-transformation
rules from bsd.lib.mk in other places, move them to a separa

Move extra suffix-transformation rules into bsd.suffixes-extra.mk

To make it possible to use the .SUFFIXES list and suffix-transformation
rules from bsd.lib.mk in other places, move them to a separate file,
bsd.suffixes-extra.mk.

Note that we cannot add the list and rules to bsd.suffixes.mk, since
that file also gets included by sys.mk, which applies to non-source
builds. That would require a whole ports exp-run.

No functional change intended.

Reviewed by: brooks, emaste
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D49965

show more ...


# e9c2838d 11-Feb-2025 Simon J. Gerraty <sjg@FreeBSD.org>

Add newlog.sh and setops.sh to share/mk

jobs.mk makes use of newlog.sh if found.

Set NEWLOG_SH in local.sys.env.mk to save jobs.mk searching for it.

PR: 284390
Reviewed by: stevek
Differential Rev

Add newlog.sh and setops.sh to share/mk

jobs.mk makes use of newlog.sh if found.

Set NEWLOG_SH in local.sys.env.mk to save jobs.mk searching for it.

PR: 284390
Reviewed by: stevek
Differential Revision: https://reviews.freebsd.org/D48737

show more ...


# a2b67d4a 29-Jul-2024 Simon J. Gerraty <sjg@FreeBSD.org>

Update dirdeps.mk to latest

Also add meta2deps.{py,sh} to FILES so they get installed/staged

Reviewed by: stevek


12345678910>>...19