Home | History | Annotate | Download | only in mk
History log of /src/share/mk/bsd.hostlib.mk
RevisionDateAuthorComments
 1.21  12-Apr-2024  jakllsch Filter out -Wp,-iremap,* from CPPFLAGS as is done in hostprog.mk

Seems to fix build of libnbcompat in reproducible mode on host toolchains w/o -iremap
 1.20  04-May-2018  christos branches: 1.20.12;
include bsd.hostinit.mk instead of bsd.init.mk
 1.19  01-Dec-2014  erh branches: 1.19.14;
PR toolchain/9618: add ".d" to MKDEP_SUFFIXES so the depend files are rebuilt
if any of their dependencies (i.e. the files they refer to) are changed.
This allows changes to transitive included headers to be handled properly.
 1.18  10-Apr-2014  plunky the value of HOST_MKDEP previously depended on USETOOLS;
make it do so again, and centralise the USETOOLS=no case
into bsd.host.mk
 1.17  29-Oct-2013  joerg branches: 1.17.2;
Unbreak src/tools usage of C++.
 1.16  10-Sep-2011  apb branches: 1.16.2; 1.16.8;
Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.
 1.15  05-Aug-2011  plunky NOPATH the lib we are making, rather than HOSTPROG which is irrelevant
 1.14  10-Jun-2004  lukem Be consistent in handling YHEADER, similar to Christos' fix in bsd.lib.mk 1.253
 1.13  29-Jan-2004  lukem Cosmetically tweak how .PHONY is used by (generally) providing it as a source,
instead of using it as a target with all the rules as its sources.
 1.12  02-Jan-2004  lukem Consistently test all variables that support a "yes"/"no" value with
${VAR} == "no"
or
${VAR} != "no"
(instead of against "yes"). Variables affected:
TOOLCHAIN_MISSING
HAVE_GCC3
USE_TOOLS_TOOLCHAIN
NEED_OWN_INSTALL_TARGET
USE_SHLIBDIR

Improve the documentation.
 1.11  11-Nov-2003  dsl Set MKDEP_SUFFIXES to get additional targets in .depend instead of using
sed in .afterdepend. I don't think .afterdepend is used anywhere any more.
 1.10  21-Oct-2003  lukem Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.
 1.9  19-Oct-2003  lukem Provide _MKMSG{BUILD,CREATE,COMPILE,FORMAT,INSTALL,LINK,LEX,YACC} to display
${_MKMSG} " ... {$.TARGET}" and use appropriately.

Provide _MKMSGLINK.m to provide "link" message by itself (without ${.TARGET})

Replace _MKSHCMD with _MKSHECHO
 1.8  18-Oct-2003  lukem Implement MAKEVERBOSE to control how "verbose" the standard make(1) rules are.
Supported values:
0 Minimal output ("quiet")
1 Describe what is occurring
2 Describe what is occurring and echo the actual command ("verbose")
This is the default, and is equivalent to the previous behaviour.
 1.7  01-Aug-2003  lukem Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
This is a change of behaviour. If a Makefile wants the clean semantics
it must specifically append to CLEANFILES.
Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
 1.6  31-Jul-2003  lukem bsd.dep.mk: add a dependency for *.d on ${SRCS} ${DPSRCS}. this should fix
some build problems where DPSRCS contains .h files that need to exist to
build the .d file.

document that bsd.dep.mk should be included after anything that might
update SRCS or DPSRCS so that the above works correctly, and actually
ensure this is the case.
 1.5  28-Jul-2003  lukem be consistent when adding *.y and *.l to DPSRCS
 1.4  11-Jun-2003  msaitoh catch signal 1,2,3,13 and 15 to clean /tmp/_dependXXX
 1.3  17-Sep-2002  thorpej * Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
two variables:

TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
an external toolchain (e.g. /usr/local/gnu). This enables the cross-build
framework even for TOOLCHAIN_MISSING platforms.

If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
unconditionally set to "no", since the bits are not there to build.

If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
since the external toolchain's compiler is not in-sync with the
in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
that file can use it.
 1.2  03-Jan-2002  tv Add more tolerant script-based implementation of mkdep for host tool
compiles. Based loosely on mkdep.old.compiler (so CSRG license copied),
but now uses just one rewrite (awk) process per cpp invocation and
determines the proper way to run cpp and awk via a "configure" script.

Use HOST_MKDEP in bsd.hostlib/hostprog.mk (defaulting to the old override
value of MKDEP), and give it a TOOLDIR equivalent in bsd.own.mk.
 1.1  28-Nov-2001  tv Add <bsd.hostlib.mk>, for use when building a host-specific library
(to be used with src/tools/compat).
 1.16.8.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.16.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.17.2.1  10-Aug-2014  tls Rebase.
 1.19.14.1  21-May-2018  pgoyette Sync with HEAD
 1.20.12.1  18-Apr-2024  martin Pull up following revision(s) (requested by jakllsch in ticket #664):

share/mk/bsd.hostlib.mk: revision 1.21

Filter out -Wp,-iremap,* from CPPFLAGS as is done in hostprog.mk

Seems to fix build of libnbcompat in reproducible mode on host toolchains w/o -iremap

RSS XML Feed