History log of /freebsd-10.1-release/share/mk/Makefile
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 269946 13-Aug-2014 rpaulo

MFC r268300 r268541 r268544 r268565 r269775 r269838 r269839 r269840
r269842 r269844 r269899:

BSD make support for generating and compiling USDT DTrace probes.


# 264483 14-Apr-2014 jmmv

MFC refactoring of the *.test.mk files.

- r263161 Make bsd.test.mk the only public mk fragment for the building of tests.
- r263172 Move FreeBSD Test Suite-specific code to a suite.test.mk file.
- r263204 Add some documentation for bsd.test.mk.
- r263217 Document support for TAP-compliant Perl test programs.

This is "make tinderbox" clean.


# 260013 28-Dec-2013 jmmv

Set up the /usr/tests hierarchy.

This is a MFC of the following into stable/10:
- r257097 Set up the /usr/tests hierarchy.
- r257098 Add missing WITHOUTTESTS file.
- r257100 Add a tests(7) manual page.
- r257105 Disable WITHTESTS= for now.
- r257848 Fix buildworld when WITHTESTS is enabled.
- r257850 Subsume the functionality of MKATF into MKTESTS.
- r257851 Handle the removal of the test suite when WITHOUTTESTS=yes.
- r257852 Install category Kyuafiles from their category directories.
- r258232 Install BSD.tests.mtree when MKTESTS is yes.

Note that building with WITH_TESTS is still broken at this point (and
hence why WITHOUT_TESTS is the set as the default). Subsequent pullups
will fix the remaining issues.


# 259962 27-Dec-2013 jmmv

Split and extend bsd.test.mk into {atf,plain,tap}.test.mk.

This is a MFC of:

- r256761 Clearly split the logic to build ATF and plain tests apart.
- r256762 Add the automatic generation of Atffile files.
- r256763 Add the automatic generation of Kyuafile files.
- r256764 Plug atf-run into the 'test' target.
- r256765 Plug kyua into the 'test' target.
- r257096 Move the TESTSBASE definition to bsd.own.mk.
- r257099 Add missing plain.test.mk.
- r258297 Remove registration of C++ test programs into PROGS.
- r258298 Fix the build of plain test programs.
- r258551 Install plain.test.mk.
- r259208 Add tap.test.mk.

Approved by: rpaulo (mentor)


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 245269 10-Jan-2013 des

Remove all support for legacy NOFOO and NO_FOO build options.


# 243165 16-Nov-2012 marcel

Install bsd.progs.mk, needed by bsd.test.mk and thus by atf.test.mk.


# 242712 07-Nov-2012 sjg

Add ATF and reformat to ease reviews

Approved by: marcel (mentor)


# 240468 13-Sep-2012 brooks

Introduce a new make variable COMPILER_TYPE that specifies what
type of compiler is being used (currently clang or gcc). COMPILER_TYPE
is set in the new bsd.compiler.mk file based on the value of the CC
variable or, should it prove informative, by running ${CC} --version
and examining the output.

To avoid negative performance impacts in the default case and correct
value for COMPILER_TYPE type is determined and passed in the environment
of submake instances while building world.

Replace adhoc attempts at determining the compiler type by examining
CC or MK_CLANG_IS_CC with checks of COMPILER_TYPE. This eliminates
bootstrapping complications when first setting WITH_CLANG_IS_CC.

Sponsored by: DARPA, AFRL
Reviewed by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>, imp, linimon
(with some modifications post review)
MFC after: 2 weeks


# 215412 16-Nov-2010 adrian

.. and then notice that the list of mk files is ordered, and update to suit.


# 215411 16-Nov-2010 adrian

Add in forgotten install rule.


# 212424 10-Sep-2010 rpaulo

Add bsd.dtrace.mk. This allows userland programs and libraries to
define USDT probes on a provider.d file and then use this new make
infrastructure to build the corresponding header file and object file.

This will only take effect when the user defines WITH_DTRACE when building.

Sponsored by: The FreeBSD Foundation


# 209739 06-Jul-2010 bz

Also install the new bsd.arch.inc.mk filed. Missed in r204020.

Reviewed by: imp


# 170187 01-Jun-2007 pav

Break long line

Submitted by: ru


# 170185 01-Jun-2007 pav

Add bsd.port.options.mk, a stub to include parts of bsd.port.mk that handle
OPTIONS resolving. This will allow us to load bsd.port.mk in port Makefiles in
three steps (options, pre, post), allowing us to manipulate USE_* flags
conditionally on OPTIONS values.

With hat: portmgr
Reviewed by: ru
MFC after: 1 week


# 168322 03-Apr-2007 kan

Add entry for bsd.symver.mk.

Pointed out by: ru


# 156776 16-Mar-2006 deischen

Add version_gen.awk to the installed files.


# 152265 10-Nov-2005 harti

Add a .mk file for building modules for the SNMP daemon. This may be
use in-tree as well as for 3rd party modules. This file is more or less
what was in usr.sbin/bsnmpd/modules/Makefile.inc with some modifications
and omissions. Usage examples can be found under usr.sbin/bsnmpd/modules/*.

Idea by: phk


# 142262 22-Feb-2005 ru

Add endianness support to cap_mkdb(1), useful for cross builds.


# 139103 21-Dec-2004 ru

Start the dreaded NOFOO -> NO_FOO conversion.

OK'ed by: core


# 136910 24-Oct-2004 ru

For variables that are only checked with defined(), don't provide
any fake value.


# 125462 04-Feb-2004 des

GC port.mkversion.


# 111764 02-Mar-2003 ru

Fixed sys/boot/pc98/boot2/Makefile to use kern.mk and
get rid of bsd.kern.mk completely.

OK'ed by: bde


# 100253 17-Jul-2002 ru

Sort FILES.


# 99256 02-Jul-2002 ru

Handle installation of hard and symbolic links via a seperate .mk file.


# 97769 03-Jun-2002 ru

Reimplement FILES support using bsd.files.mk with the
same set of features as in recently added bsd.incs.mk
(FILESGROUPS, accessibility from both bsd.prog.mk and
bsd.lib.mk, de-pessimized typical installation path,
etc.) New standard targets: buildfiles, installfiles,
and files (buildfiles + installfiles).


# 96462 12-May-2002 ru

Added new bsd.incs.mk which handles installing of header files
via INCS. Implemented INCSLINKS (equivalent to SYMLINKS) to
handle symlinking include files. Allow for multiple groups of
include files to be installed, with the powerful INCSGROUPS knob.
Documentation to follow.

Added standard `includes' and `incsinstall' targets, use them
in Makefile.inc1. Headers from the following makefiles were
not installed before (during `includes' in Makefile.inc1):

kerberos5/lib/libtelnet/Makefile
lib/libbz2/Makefile
lib/libdevinfo/Makefile
lib/libform/Makefile
lib/libisc/Makefile
lib/libmenu/Makefile
lib/libmilter/Makefile
lib/libpanel/Makefile

Replaced all `beforeinstall' targets for installing includes
with the INCS stuff.

Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS,
and for compatibility with NetBSD. Similarly for INCOWN, INCGRP,
and INCMODE.

Consistently use INCLUDEDIR instead of /usr/include.

gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes
were only lightly tested due to the missing contrib/libstdc++-v3.
I fully tested the pre-WIP_GCC31 version of this patch with the
contrib/libstdc++.295 stuff.

These changes have been tested on i386 with the -DNO_WERROR "make
world" and "make release".


# 95371 24-Apr-2002 ru

GC bsd.docb.mk. It has never apparently been used.


# 95365 24-Apr-2002 ru

GC bsd.sgml.mk. Nothing in the src/ tree uses it, and two doc/
instances that still use it are unconnected from the build and
have corresponding DocBook replacements.


# 94986 18-Apr-2002 ru

Install bsd.init.mk.

Submitted by: "Peter S. Housel" <housel@acm.org>


# 91621 04-Mar-2002 phantom

Add basic infrastructure for building and installing Message Catalogs (NLS Catalogs)

Idea obtained from: NetBSD
Reviewed by: silence at -hackers


# 88055 17-Dec-2001 ru

FILES support for bsd.prog.mk. See bsd.README for details.

Stolen from: NetBSD


# 76862 19-May-2001 kris

(Previous commit was made prematurely before I could finish composing
the log message)

Bring in the WARNS directive from NetBSD, localized in a new bsd.sys.mk
to avoid polluting sys.mk. This directive controls the addition of
compiler warning flags to CFLAGS in a relatively compiler-neutral manner.

The idea is that WARNS can be set in Makefile.inc or in individual
Makefiles as they become clean, to prevent the introduction of new
warnings in the code (-Werror is added by default when WARNS > 0).

This behaviour can be overridden with the following two knobs:
NO_WARNS disables the checking of WARNS completely
NO_WERROR disables the addition of -Werror to the flags.

Additionally, setting WFORMAT to 1 (in makefiles) and/or defining
FORMAT_AUDIT (by the user) will enable increased checking of format
string arguments.

Obtained from: NetBSD
Reviewed by: peter


# 76861 19-May-2001 kris

Bring in the WARNS directive from NetBSD, localized in a new bsd.sys.mk
to avoid polluting sys.mk. This directive controls the addition of
compiler warning flags to CFLAGS in a relatively compiler-neutral manner.

The idea is that WARNS can be set in Makefile.inc or in individual
Makefiles as they become clean, to prevent the introduction of new
warnings in the code. -Werror is added by default


# 72880 22-Feb-2001 kris

Overhaul the MACHINE_CPU behaviour:

* Rip out MACHINE_CPU stuff from sys.mk and include a new <bsd.cpu.mk>
after we pull in /etc/make.conf. We need to do it afterwards so we can
react to the user setting of the:

* CPUTYPE variable, which contains the CPU type which the user wants to
optimize for. For example, if you want your binaries to only run on an
i686-class machine (or higher), set this to i686. If you want to support
running binaries on a variety of CPU generations, set this to the lowest
common denominator. Supported values are listed in make.conf.

* bsd.cpu.mk does the expansion of CPUTYPE into MACHINE_CPU using the
(hopefully) correct unordered list of CPU types which should be used on
that CPU. For example, an AMD k6 CPU wants any of the following:
k6 k5 i586 i486 i386
This is still an unordered list so the client makefile logic is simple -
client makefiles need to test for the various elements of the set in
decreasing order of priority using ${MACHINE_CPU:M<foo>}, as before.
The various MACHINE_CPU lists are believed to be correct, but should be
checked.

* If NO_CPU_CFLAGS is not defined, add relevant gcc compiler optimization
settings by default (e.g. -karch=k6 for CPUTYPE=k6, etc). Release
builders and developers of third-party software need to make sure not to
enable CPU-specific optimization when generating code intended to be
portable. We probably need to move to an /etc/world.conf to allow the
optimization stuff to be applied separately to world/kernel and external
compilations, but it's not any worse a problem than it was before.

* Add coverage for the ia64/itanium MACHINE_ARCH/CPUTYPE.

* Add CPUTYPE support for all of the CPU types supported by FreeBSD and gcc
(only i386, alpha and ia64 first, since those are the minimally-working
ports. Other architecture porters, please feel free to add the relevant
gunk for your platform).

Reviewed by: jhb, obrien


# 60964 26-May-2000 peter

Add bsd.kmod.mk back.


# 59993 04-May-2000 peter

Oops. I forgot to remove bsd.kmod.mk from the list of files installed. :-(

Submitted by: Scott Flatman <sf@aracnet.com>


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 45696 15-Apr-1999 obrien

Create /var/db/port.mkversion rather than /var/db/pkg/.mkversion to be in
sync with bsd.port.mk rev 1.309.

Submitted by: make world


# 45204 31-Mar-1999 asami

Add ${DESTDIR} to installation path. Move target to under beforeinstall:.

Submitted by: bde


# 45197 31-Mar-1999 sada

I'm sorry, this was already fixed in etc/mtree/BSD.var.dist.
Submitted by: asami@FreeBSD.ORG


# 45183 31-Mar-1999 sada

Sometimes we have to make `/var/db/pkg' directory before we create
`.mkversion' :)
Submitted by: YAMAMOTO Shigeru <shigeru@bremen.or.jp>


# 45124 29-Mar-1999 asami

Create /var/db/pkg/.mkversion file with datestamp.


# 41073 11-Nov-1998 asami

Make bsd.port.mk includable in two phases. bsd.port.pre.mk defines only
a few variables that could be used in the port Makefile for ".if exists()"
tests. bsd.port.post.mk defines the rest.

Note: if you define USE_X_PREFIX or USE_IMAKE, put it before including
bsd.port.pre.mk. These are the only two variables used in the first part.

In reality, bsd.port.pre.mk and bsd.port.post.mk just include bsd.port.mk
with special variables to turn part of it off.


# 38988 09-Sep-1998 bde

Fixed disordering and misformatting in previous commit.

Don't override correct default targets.

Don't use afterinstall for installing things; it is for fixups after
installing things.


# 38617 29-Aug-1998 wosch

bsd.docb.mk handles installing SGML/docbook documents.


# 36264 20-May-1998 jkh

Complete back-out of the bsd.locale.mk change.
OK'd by: asami


# 36241 20-May-1998 mph

Add bsd.locale.mk to the list of files. Whether bsd.locale.mk is
the right solution or not, bsd.port.mk is broken unless bsd.locale.mk
is installed.

Note that if LOCALE is not defined, port-building explodes:

"/usr/share/mk/bsd.locale.mk", line 135: if-less elif
"/usr/share/mk/bsd.locale.mk", line 135: Need an operator
(For each .if testing LOCALE)


# 32211 03-Jan-1998 wosch

Undo rev 1.11, the cd is null since NOOBJ is set.
444 -> ${SHAREMODE}


# 22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 18820 08-Oct-1996 bde

Centralized the definition of CWARNFLAGS into bsd.kern.mk.


# 18052 05-Sep-1996 bde

Moved definitions of library names from bsd.prog.mk to a new central
file bsd.libnames.mk and include this file where necessary. This fixes
null library names in ${DPADD}'s in library makefiles.


# 16663 24-Jun-1996 jkh

Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src. This is the final version of the
patches, incorporating the feedback I've received from -current.


# 15213 12-Apr-1996 wosch

install bsd.obj.mk
Submitted by: Asami


# 10638 08-Sep-1995 jfieber

Add bsd.sgml.mk


# 9701 24-Jul-1995 bde

Change `install' to `${INSTALL}' so that default install flags can be
specified in the top level Makefiles.


# 8374 09-May-1995 rgrimes

Change install: to afterinstall: to be more consistent.


# 5352 03-Jan-1995 bde

Install bsd.info.mk.


# 2765 14-Sep-1994 wollman

A make system file for building LKMs, derived from bsd.prog.mk.


# 2541 07-Sep-1994 rgrimes

Add the installation of bsd.README. Realphabitize the FILES= list.

Reviewed by: rgrimes
Submitted by: bde


# 2326 28-Aug-1994 jkh

Add bsd.port* to the Makefile.
Reviewed by:
Submitted by:


# 2146 20-Aug-1994 bde

- bsd.dep.mk and bsd.own.mk have been required for some time. Install them.
- Install with group BINGRP, not BINOWN.


# 1639 30-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1638,
which included commits to RCS files with non-trunk default branches.


# 1638 30-May-1994 rgrimes

BSD 4.4 Lite Share Sources