Home | History | Annotate | only in /src/tools/host-mkdep
History log of /src/tools/host-mkdep
RevisionDateAuthorComments
 1.16 13-Jun-2020  lukem tools: configure --silent if MAKEVERBOSE == 0
 1.15 27-Jan-2019  dholland fix duplicated chunk from merge
 1.14 27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.13 01-May-2018  christos branches: 1.13.2;
Create a new bsd.hostinit.mk file and put the build definitions for all host
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
 1.12 02-Dec-2012  apb branches: 1.12.28;
Now that tools/Makefile builds tools/binstall before installing
tools/host-mkdep, we can use the newly-built install program
to install host-mkdep.
 1.11 02-Dec-2012  apb Use a CONFIGURE_ENV variable instead of in-line code for passing
environment variables to the confifure script for host-mkdep.
Also reword the comment about why TOOL_AWK can't be included.
 1.10 19-Oct-2008  apb branches: 1.10.8; 1.10.18; 1.10.24;
Add a comment to the Makefile explaining that we do not use HOST_AWK
here, because tools/host-mkdep is built before tools/awk.
 1.9 26-Oct-2003  lukem Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
 1.8 11-Aug-2003  jmc Fix 2 remaining places items are depending on execute permissions coming out
from a cvs checkout on scripts.
 1.7 06-Jun-2003  christos don't pass CFLAGS and LDFLAGS to configure. mkdep does not give a shit.
 1.6 08-Dec-2002  thorpej Centralize the definition of the tool name prefix (i.e. "nb") into
bsd.own.mk, as the _TOOL_PREFIX variable.
 1.5 03-Apr-2002  tv branches: 1.5.2;
Don't need "if" here to look for TOOLDIR/bin; "mkdir -p" won't fail if
it already exists.
 1.4 03-Apr-2002  christos fix my own pr since todd is unwilling to use grep.
 1.3 12-Feb-2002  jmc Make sure TOOLDIR/bin exists before copying into it. Use 2 explicit mkdir's
here to avoid problems on host systems without mkdir -p
 1.2 21-Jan-2002  tv Make many host tools compile on non-NetBSD hosts. Not complete, but
very nearly there.
 1.1 10-Jan-2002  tv Move host-mkdep to its own directory. Create and install it before
everything else. Now it's possible for the target mkdep to build and
install like "normal" host-tools do; should remove the function decl
warnings reported by greywolf@starwolf.com on current-users.
 1.5.2.1 12-Aug-2003  tron Pull up revision 1.8 via patch (requested by jmc in ticket #1404):
Fix 2 remaining places items are depending on execute permissions coming out
from a cvs checkout on scripts.
 1.10.24.1 25-Feb-2013  tls resync with head
 1.10.18.1 16-Jan-2013  yamt sync with (a bit old) head
 1.10.8.1 05-Sep-2009  matt Make sure CFLAGS and LDFLAGS come HOST_CFLAGS and HOST_LDFLAGS.
 1.12.28.1 02-May-2018  pgoyette Synch with HEAD
 1.13.2.1 10-Jun-2019  christos Sync with HEAD
 1.4 27-Jun-2025  andvar Grammar and spelling fixes, mainly in comments. A few in documentation,
logging, test description, and SCSI ASC/ASCQ assignment descriptions.
 1.3 26-Jul-2003  salo branches: 1.3.108;
netbsd.org->NetBSD.org
 1.2 15-Sep-2002  thorpej Patch host-mkdep with the working host shell.
 1.1 10-Jan-2002  tv branches: 1.1.2;
Move host-mkdep to its own directory. Create and install it before
everything else. Now it's possible for the target mkdep to build and
install like "normal" host-tools do; should remove the function decl
warnings reported by greywolf@starwolf.com on current-users.
 1.1.2.1 01-Dec-2002  he Pull up revision 1.2 (requested by thorpej in ticket #828):
Patch host-mkdep with the working host shell.
 1.3.108.1 02-Aug-2025  perseant Sync with HEAD
 1.3 26-Jul-2003  salo netbsd.org->NetBSD.org
 1.2 15-Sep-2002  thorpej Patch host-mkdep with the working host shell.
 1.1 10-Jan-2002  tv branches: 1.1.2;
Move host-mkdep to its own directory. Create and install it before
everything else. Now it's possible for the target mkdep to build and
install like "normal" host-tools do; should remove the function decl
warnings reported by greywolf@starwolf.com on current-users.
 1.1.2.1 01-Dec-2002  he Pull up revision 1.2 (requested by thorpej in ticket #828):
Patch host-mkdep with the working host shell.
 1.34 07-Sep-2025  andvar Fix various typos, mainly in comments.
 1.33 10-Jul-2023  rin host-mkdep(1): Add support for -iquote.

Not used yet, but may eventually replace deprecated -I-, both for
GCC and clang.
 1.32 29-Oct-2019  joerg branches: 1.32.8;
Don't escape ", GNU awk 5 warns about it.
 1.31 12-May-2015  christos branches: 1.31.16;
Like the non-host mkdep don't print ./foo.h as a dependency, but simplify
it to foo.h. This was causing problems with:

.y.h: ${.TARGET:.h=.c}

where .h was ./cgram.h and the source became ./cgram.c confusing for example
/usr/src/tools/lint1 because make had both cgram.c and ./cgram.c in the list
of sources, trying to build both of them in parallel thinking that they were
different files. Since the regular mkdep does not produce such dependencies,
the regular build does not suffer from this issue.
 1.30 02-Sep-2013  joerg Preserve -std=* options as they may change the dependency list.
 1.29 27-Mar-2013  uwe Some shells have ((expr)) syntax for arithmetic. Add space between
parens of nested (compound-list)s to unconfuse them.

Fixes PR toolchain/47695
 1.28 16-Mar-2013  christos Put back error checking in a simpler form thanks to uwe
 1.27 14-Mar-2013  joerg Revert 1.25 and 1.26: Breaks build on !NetBSD
 1.26 12-Mar-2013  christos re-directing once is good enough.
 1.25 12-Mar-2013  christos Perform shell fd gymnastics to capture the error in the pipeline and exit.
 1.24 05-Mar-2013  christos account for -vi
 1.23 09-Dec-2012  christos forgetting to shift turns this into a cpu burner.
 1.22 09-Dec-2012  christos ignore --sysroot=/
 1.21 26-Aug-2012  jmmv branches: 1.21.2;
Add a new "-P prefix" option to mkdep(1).

This option prepends the string given in prefix to every target
filename. This is useful for programs that have source files in
multiple subdirectories and a single Makefile that references all of
them explicitly (without using the VPATH functionality because there
can be files with the same name in each subdirectory).
 1.20 30-Jun-2011  wiz branches: 1.20.2;
dependant -> dependent
 1.19 14-Nov-2010  christos recognize isysroot
 1.18 20-Feb-2010  joerg Rewrite argument processing to deal with spaces and other meta
characters in options. This was exposed by the "NetBSD 5.99" argument of
mandoc.
 1.17 09-Jul-2007  jmmv Treat -cxx-isystem as -isystem-cxx. Not really required by our code, but
I discovered this while trying to add a host tool written in C++.
 1.16 01-Sep-2005  jwise On second thought, we can't just pass through -isystem-cxx, we have to
change it to -isystem. With this change, I can now make depend a simple c++
stl-using host program.
 1.15 01-Sep-2005  jwise Recognize -isystem-cxx as well as -isystem, making this more usable for c++
host progs.
 1.14 27-Mar-2004  dsl branches: 1.14.6;
Fix the processing of '-s .lo\ .ln' (etc).
This means that the tools now have correct dependencies (xxx.lo: ... instead
of xxx.o: ...) and in particular causes the pax to be built with consistent
headers.
There could also be other lossage on update builds of tools.
 1.13 07-Dec-2003  dsl Make command line parser getopt() compatible (allow host-mkdep -aq -s.o.lo ...)
Don't use shell builtin because we need to know the values of OPTIND (etc)
in what is usually an error path.
 1.12 11-Nov-2003  dsl Let -- be used to separate mkdep options from cc options
 1.11 10-Nov-2003  dsl Make this support the same new options as recently added to the mkdep program.
 1.10 11-Jun-2003  christos No sources == error again.
 1.9 10-Jun-2003  christos for now, make the fact that no sources were specified a warning.
 1.8 10-Jun-2003  christos Do -isystem differently.
 1.7 10-Jun-2003  christos understand -isystem too if compiler gcc/g++
 1.6 06-Jun-2003  christos - shift; shift -> shift 2
- understand and do something reasonable with -nostdinc*
 1.5 13-Mar-2003  thorpej Allow "-no-cpp-precomp", which disables use of pre-compiled headers
on Mac OS X.
 1.4 15-Sep-2002  thorpej Patch host-mkdep with the working host shell.
 1.3 13-Sep-2002  thorpej Delete a few things that appear in gcc 3.x's CPP output.
 1.2 28-Jan-2002  tv branches: 1.2.2;
Ensure a space after # or #line so we don't pick up stray #pragmas and
so forth in the .depend file.
 1.1 10-Jan-2002  tv Move host-mkdep to its own directory. Create and install it before
everything else. Now it's possible for the target mkdep to build and
install like "normal" host-tools do; should remove the function decl
warnings reported by greywolf@starwolf.com on current-users.
 1.2.2.2 01-Dec-2002  he Pull up revision 1.4 (requested by thorpej in ticket 828):
Patch host-mkdep with the working host shell.
 1.2.2.1 03-Nov-2002  he Pull up revision 1.3 (requested by thorpej in ticket #784):
Delete a few things which appear in gcc 3.x's CPP output.
 1.14.6.2 04-Sep-2005  tron Pull up following revision(s) (requested by jwise in ticket #736):
tools/host-mkdep/host-mkdep.in: revision 1.16
On second thought, we can't just pass through -isystem-cxx, we have to
change it to -isystem. With this change, I can now make depend a simple c++
stl-using host program.
 1.14.6.1 04-Sep-2005  tron Pull up following revision(s) (requested by jwise in ticket #735):
tools/host-mkdep/host-mkdep.in: revision 1.15
Recognize -isystem-cxx as well as -isystem, making this more usable for c++
host progs.
 1.20.2.3 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.20.2.2 16-Jan-2013  yamt sync with (a bit old) head
 1.20.2.1 30-Oct-2012  yamt sync with head
 1.21.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.2.2 23-Jun-2013  tls resync from head
 1.21.2.1 25-Feb-2013  tls resync with head
 1.31.16.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.32.8.1 03-Nov-2023  martin Pull up following revision(s) (requested by rin in ticket #448):

tools/host-mkdep/host-mkdep.in: revision 1.33

host-mkdep(1): Add support for -iquote.

Not used yet, but may eventually replace deprecated -I-, both for
GCC and clang.

RSS XML Feed