christos
9731df7d2d
make this compile again.
2006-03-20 23:13:51 +00:00
elad
cd7d931d2e
plug leaks, coverity cids 92, 93.
2006-03-20 17:18:06 +00:00
wiz
dbaaaf27a8
Sort options.
2005-12-12 22:49:37 +00:00
dsl
0f4ad533d7
Add a -D option that acts like -d, but reads the filenames (whitespace
...
separated) from stdin.
Useful (eg in Makefile.kern.inc) to avoid breaking the systems command
line limit.
2005-12-12 22:05:28 +00:00
ross
2ea481dec5
Edit -s text.
2005-10-19 18:19:41 +00:00
he
f104d7d50d
Initialize a couple of local variables to appease -Wuninitialized.
...
Marked with XXXGCC for sun2 (found while compiling for it).
Reviewed by lukem.
2005-06-07 09:33:37 +00:00
wiz
1c7022e424
Sync usage with man page. From Kouichirou Hiratsuka in PR 26224.
2004-07-13 12:00:30 +00:00
dsl
36af2f9f0c
Redo code that expands the 'xxx.o' to 'xxx.o xxx.so xxx.po xxx.ln' so that
...
is doesn't care which of the wanted suffixes are in the input file.
Needed for my autodepend code where you don't know which compilation ran last.
2004-01-26 21:47:04 +00:00
dsl
43296f2aec
Only emit each filename once in a single .OPTIONAL line when -o is given.
...
(Saves several MB for kernel .depend files.)
2003-12-07 20:22:49 +00:00
dsl
60dd40c33a
Don't rely on mmap giving a NUL terminated buffer.
...
Let '--' be used to separate options to mkdep from those to cc.
2003-11-11 10:55:24 +00:00
dsl
c934ce564a
Fix continuation line handling.
2003-11-10 18:43:15 +00:00
dsl
cffe183eef
Add the following options with a view to using 'cc -MD' to automatically
...
create dependency files:
-d process xxx.d files to generate .depend (don't run ${CC})
-o add .OPTIONAL: <headers> to output file
-q don't print warnins for missing files (with -d)
-s suf list of suffixes to replace ".o"
The -s suf should allow all the 'afterdepend' stuff to be killed.
(christos thought this might be a good idea...)
2003-11-10 17:56:38 +00:00
lukem
171d653219
Overhaul how `build.sh tools' are used:
...
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
tron
e290120150
Remove old, unused and unsafe shell scripts as suggested by Jeremy C. Reed
...
on "current-users".
2003-06-11 16:22:10 +00:00
lukem
826a14607a
Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
...
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
msaitoh
bc44d1eef4
catch SIGPIPE, too.
2003-03-28 07:38:15 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
elric
3799cab605
Backing this out until it works.
2003-01-19 00:42:45 +00:00
jmmv
1f46362208
When an unknown option is found, ignore it, as it may be cc related (i.e.,
...
-D and -I options).
2003-01-18 22:32:20 +00:00
jmmv
c69d292b43
Use getopt(3) instead of specific code to parse options.
...
Reviewed by jdolecek.
2003-01-18 21:13:58 +00:00
msaitoh
e43fc70de5
catch SIGINT, SIGHUP, SIGQUIT and SIGTERM to clear a temporary file.
2003-01-16 08:05:09 +00:00
wiz
1035faff1d
writable, not writeable.
2003-01-06 20:30:28 +00:00
simonb
f76ac8f4dc
Split out the findcc() function that tries to determine the path to
...
the C compiler so other programs can use it.
2002-06-14 23:14:18 +00:00
tv
9fbd88883c
Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
...
round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv
5c99654526
Add hooks for cross-hosting on non-NetBSD platforms.
2002-01-21 19:22:53 +00:00
wiz
56533d2558
Sort sections.
2001-12-01 20:40:20 +00:00
wiz
aded0d2cce
Whitespace cleanup.
2001-12-01 16:43:07 +00:00
tv
dba5d44670
Add hooks to allow toolchain bits to be reachover-built at the top level.
2001-08-14 10:18:26 +00:00
cgd
f60321832b
a couple of tiny whitespace cleanups
2001-03-22 02:41:02 +00:00
cgd
f3dd4051a1
get closer to KNF.
2001-03-22 02:33:47 +00:00
cgd
baa3e1d8d4
convert uses of hard-coded string "mkdep" to use getprogname().
2001-03-22 00:16:50 +00:00
cgd
040de26f85
call setprogname(argv[0]) at start of main()
2001-02-21 00:06:22 +00:00
kleink
fbfc6d0d28
Rather than hardcoding _PATH_TMP (and relying on const string concatenation),
...
try TMPDIR (if set in the environment).
1999-07-21 15:20:55 +00:00
kleink
7a5c45dac4
* Make usage string reflect reality,
...
* declare internal utility functions static,
* remove unneeded workarounds for bogus -Wuninitialized reports,
* delint.
1999-03-31 11:26:45 +00:00
garbled
9e44e9b578
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Many more to
come.
1999-03-22 18:16:34 +00:00
sommerfe
05ccb4009e
Do something sane if we have CC='cc -pipe' set
1999-03-18 22:01:48 +00:00
tron
ec6fc987ae
Because neither the original shell script nor the new C program can
...
handle multiple argument sets don't use them in the manual page.
1999-01-28 20:19:42 +00:00
tron
b3ba9219f4
Fix usage messages in case we are going to revive one of these.
1999-01-28 20:11:54 +00:00
tron
1a7a3b4aa3
Build and install "mkdep.c".
1999-01-25 22:14:59 +00:00
tron
c0f4850d5c
New C program to replace old "mkdep" script. Speeds up "make depend"
...
by at least 5 percent.
1999-01-25 22:10:42 +00:00
fair
a0d5f4e4e3
per PR#4304 no need to set PATH (especially after testing it!)
1998-04-09 05:59:35 +00:00
perry
45b9e54cf2
remove /usr/ucb from PATHs, per Jim Bernard (pr 5236)
1998-03-31 04:25:30 +00:00
lukem
79adb0bcbe
fix up .Nm usage
1997-10-19 05:09:03 +00:00
cgd
dc7e4efc1d
quote ${CC} so that multi-word values work right (for some defn of "right")
1997-07-22 05:20:06 +00:00
cgd
b41192602c
fix a couple of bogons in the changes to the sed regexps in my previous
...
commit. ("Works Great!!" "More Testing!!!")
1997-07-21 05:37:32 +00:00
cgd
dab9e38937
find the compiler more correctly: if user has set 'CC' use it but expand
...
it to a full path using the user's path, before setting the path used by
the script. If it can't be found, try using the standard path used by the
script to find it (/bin:/usr/bin:/usr/ucb), and if it still can't be
found, exit. If user hasn't set CC, try to use cc, again searched for
via their path, then via the standard path.
Also, clean up regexps used to post-process ${CC} -M output, so that
they work on a wider variety of compilers.
1997-07-20 23:27:09 +00:00
mycroft
90de81834d
Set SCRIPTSNAME correctly.
1997-03-27 08:57:26 +00:00
christos
3917c3179d
- Makefile cleanups
1997-03-24 21:57:01 +00:00
thorpej
150c33e60b
Use ${INSTALL}.
1996-10-18 05:55:26 +00:00