Commit Graph

28 Commits

Author SHA1 Message Date
joerg 637b0cffec Rewrite argument processing to deal with spaces and other meta
characters in options. This was exposed by the "NetBSD 5.99" argument of
mandoc.
2010-02-20 15:04:03 +00:00
apb d1cf36b114 Add a comment to the Makefile explaining that we do not use HOST_AWK
here, because tools/host-mkdep is built before tools/awk.
2008-10-19 22:05:22 +00:00
jmmv 899297d564 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++.
2007-07-09 15:27:10 +00:00
jwise c21f37fb93 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.
2005-09-01 21:51:11 +00:00
jwise 97ec3a6bc9 Recognize -isystem-cxx as well as -isystem, making this more usable for c++
host progs.
2005-09-01 21:17:31 +00:00
dsl 8d259d44d9 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.
2004-03-27 18:36:23 +00:00
dsl 9a8804be3a 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.
2003-12-07 20:19:15 +00:00
dsl 7037826394 Let -- be used to separate mkdep options from cc options 2003-11-11 10:50:02 +00:00
dsl 198a6cd602 Make this support the same new options as recently added to the mkdep program. 2003-11-10 17:57:43 +00:00
lukem f85d2d1c14 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.
2003-10-26 07:25:33 +00:00
jmc d9556f9ecc Fix 2 remaining places items are depending on execute permissions coming out
from a cvs checkout on scripts.
2003-08-11 19:26:04 +00:00
salo 22a0ae4298 netbsd.org->NetBSD.org 2003-07-26 20:17:31 +00:00
christos a3d7c5fa32 No sources == error again. 2003-06-11 13:20:38 +00:00
christos 2a8b4af820 for now, make the fact that no sources were specified a warning. 2003-06-10 21:34:02 +00:00
christos b09683b289 Do -isystem differently. 2003-06-10 20:40:39 +00:00
christos 1c6e138be1 understand -isystem too if compiler gcc/g++ 2003-06-10 19:51:45 +00:00
christos 33113de8c0 - shift; shift -> shift 2
- understand and do something reasonable with -nostdinc*
2003-06-06 17:33:32 +00:00
christos 09f2dcf67a don't pass CFLAGS and LDFLAGS to configure. mkdep does not give a shit. 2003-06-06 17:30:25 +00:00
thorpej acd9c2da10 Allow "-no-cpp-precomp", which disables use of pre-compiled headers
on Mac OS X.
2003-03-13 04:40:45 +00:00
thorpej c4a72b6436 Centralize the definition of the tool name prefix (i.e. "nb") into
bsd.own.mk, as the _TOOL_PREFIX variable.
2002-12-08 20:19:56 +00:00
thorpej a25cf0dfe0 Patch host-mkdep with the working host shell. 2002-09-15 17:23:01 +00:00
thorpej 5aa3fde6fa Delete a few things that appear in gcc 3.x's CPP output. 2002-09-13 03:41:54 +00:00
tv d9d0bc0241 Don't need "if" here to look for TOOLDIR/bin; "mkdir -p" won't fail if
it already exists.
2002-04-03 15:56:32 +00:00
christos 00f77e5d9a fix my own pr since todd is unwilling to use grep. 2002-04-03 15:41:19 +00:00
jmc b201a06833 Make sure TOOLDIR/bin exists before copying into it. Use 2 explicit mkdir's
here to avoid problems on host systems without mkdir -p
2002-02-12 19:54:16 +00:00
tv 0c41d3705e Ensure a space after # or #line so we don't pick up stray #pragmas and
so forth in the .depend file.
2002-01-28 19:26:35 +00:00
tv 9d5d28c26f Make many host tools compile on non-NetBSD hosts. Not complete, but
very nearly there.
2002-01-21 20:04:36 +00:00
tv 5457974230 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.
2002-01-10 17:04:20 +00:00