lukem
94ff981067
missed a couple of NOMAN= :(
2001-12-13 03:44:37 +00:00
lukem
d8b4b32178
no need to set NOMAN twice
2001-12-12 12:07:26 +00:00
tv
9156c43a3a
Add NOMAN/NOLINT.
2001-12-12 02:48:46 +00:00
tv
7facb14657
Fix use of @.
2001-12-12 02:42:17 +00:00
tv
8e6f7afb5b
MKfoo=no -> NOfoo
2001-12-12 01:48:43 +00:00
tv
87d14ee4ac
Add the framework for autoconf-based src/tools/compat structure. This will
...
(after it is more fleshed out) allow the host tools to work more cleanly
on non-NetBSD hosts.
2001-12-11 21:17:56 +00:00
jmc
a6eb3732ce
Need ${TMACDIR}/tmac.an.old installed as well. Also include UPDATE checks
...
around this rule and the tmac.an rule.
2001-12-09 23:34:31 +00:00
jmc
6050051aa4
Fix the files pulled in from src/share/tmac. Need to replace the hardcoded
...
/usr/share/tmac in them with ${TMACDIR} so the cross groff doesn't just
end up using the currently installed macro set to build man pages.
2001-12-09 06:12:26 +00:00
jmc
0ce9aa8e6c
Add pwd_mkdb as a toolchain bit for builds
2001-12-07 02:28:53 +00:00
jmc
1bcf4d49b2
Make sure and run sh configure as it may not have execute permissions.
2001-12-02 03:03:12 +00:00
thorpej
7c2121a815
Build makewhatis as a host tool, since it is used at the end of
...
the build.
XXX Needs a -lz hostlib.
2001-11-29 23:51:38 +00:00
jmc
60f22ac7b8
After bsd.man.mk changes make sure and set TMACDIR here to point into
2001-11-28 05:01:59 +00:00
jmc
5a0f427e5a
Oops. typo which can break things for non-new toolchain builds if MKTOOLS isn't
...
set
2001-11-22 19:09:42 +00:00
jmc
9a35e17e68
Make the null rule execute something so make is appeased if the .y file is
...
newer than the checked in .c file. Otherwise make errors out.
2001-11-22 08:20:07 +00:00
jmc
0d11dd0127
Check for USETOOLS!=yes in addition to MKTOOLS==no to generate the empty rule
...
sets. Otherwise platforms not running the new toolchain will end up with
lossage as tools attempt to get built and installed into /bin (due to
bsd.own.mk properly checking USETOOLS before setting up a default TOOLDIR).
Don't print the warning unless MKTOOLS=no
2001-11-22 00:13:10 +00:00
perry
184d8eecad
replace instances of INSTALL_FILE with HOST_INSTALL_FILE
2001-11-19 04:47:42 +00:00
tv
f39f0b5131
Workaround some make(1) braindamage wrt when it tries to "auto-chdir"
...
back to ${.CURDIR}. How losing....
2001-11-16 16:41:46 +00:00
tv
b384b10366
Change .MAKEFLAGS to MAKE_ARGS so MACHINE doesn't get trashed in some
...
cases.
2001-11-16 01:50:17 +00:00
tv
0911b89ff5
Fix the fix; only install gcc once.
2001-11-15 00:20:26 +00:00
thorpej
2536e6bcf3
Fix a typo in the install target list.
2001-11-15 00:17:54 +00:00
tv
bd55c68a03
Use ${TOOLDIR}/bin/nbm4.
2001-11-14 23:19:11 +00:00
tv
7cbe8c2c16
Recheck the GNU configuration if ${.CURDIR}/Makefile changes.
2001-11-14 22:14:48 +00:00
tv
d21f3d4a13
Prefix all target-specific things with `${MACHINE_GNU_PLATFORM}-'.
...
Prefix all non-target-specific things with `nb'.
2001-11-14 22:13:39 +00:00
tv
054166f6cf
Use ${INSTALL_FILE:N-U}.
2001-11-14 22:07:03 +00:00
tv
06be8101a1
Add autoconf as a host tool, not built by default.
2001-11-14 20:05:23 +00:00
tv
6b68aed49a
Add m4 to host tools (not built by default).
2001-11-14 15:32:05 +00:00
tv
25c34dba0d
Move host program overrides of INSTALL and MKDEP to <bsd.hostprog.mk>.
2001-11-13 17:36:14 +00:00
tv
259ff4e7d0
Re-add MKTOOLS as a "yes"/"no" only variable, which prevents recursion on "no"
...
into the src/tools subdirs on all/depend/dependall/install. Other recursive
targets are not affected.
2001-11-13 16:17:24 +00:00
tv
be1b573f6d
One More Time: Make _mvcpp work on an UPDATE install (without bombing).
2001-11-13 15:32:15 +00:00
tv
958e3755af
Make _mvcpp work on an UPDATE reinstall.
2001-11-13 15:30:06 +00:00
tv
30b6e7538a
Re-add cpp; this was lost in the overhaul. (XXX this needs to GO AWAY
...
and the build system needs to use ${CC} -E...!)
2001-11-13 14:49:00 +00:00
tv
7e3f01a244
Fix installation of -mdoc macros.
2001-11-13 14:21:03 +00:00
tv
cc88e154cb
Change where the -j1 is set to disable parallelism. XXX This should not
...
be necessary; .NOTPARALLEL needs to be told how to work properly for
specific recursion targets.
2001-11-13 06:17:45 +00:00
tv
6937675d3c
Don't put commands in the suffix rule override (avoids target graph cycles).
...
Protect from multiple inclusion.
2001-11-13 06:03:41 +00:00
tv
c31cbb4bcc
Remove extraneous @echo from local changes.
2001-11-13 05:02:37 +00:00
tv
71abcbf812
Move around the MAKE_ARGS assignments to put the := as early as possible.
2001-11-13 04:43:25 +00:00
tv
be39e87135
Remove local addition mistake in previous.
2001-11-13 04:38:13 +00:00
tv
c1cbb7c3e3
Use ${_srcdir} in .MADE, and add "Makefile" to the list.
2001-11-13 04:37:00 +00:00
tv
8753b7b6af
Make the wrapper work correctly for groff too, which uses a rather freaky
...
Makefile layout.
2001-11-13 04:28:27 +00:00
tv
aab33a26c5
Make sure the wrapper is used recursively. -f is not propagated to MAKEFLAGS.
2001-11-13 04:01:49 +00:00
tv
b5cd2489b2
Major overhaul of src/tools and host toolchain. Summary of changes:
...
* Rewrite src/tools Make logic to work like the rest of the tree wrt
"dependall" and "install". The old "make build" hack is gone.
* Remove the MKTOOLS logic. This was linked to the "make build" hack,
and was only needed because TOOLDIR originally had no writable default.
* Redo the GNU configure/make logic to make it fit reasonably in a
BSD make wrapper. Use new ${.ALLTARGETS} variable to scan for
targets in $(srcdir), and mark them with .MADE: to prevent rebuilding.
* Only build cross tools in src/tools; remove some messy logic in
src/usr.* and src/gnu/usr.* that would do target filename rewriting
(improves consistency and readability).
* Add the ability to build cross gdb at tool build time by setting
MKCROSSGDB (default no) to "yes" in mk.conf.
* Add src/tools/groff and set up paths to work with this cross groff.
2001-11-12 23:16:17 +00:00
tv
34f19baa7f
Make use of OBJHOSTMACHINE here, since <bsd.obj.mk> is preloaded.
2001-11-12 17:46:35 +00:00
jmc
6dda1d498c
Pull the rmd160 stuff out as mtree now has options to selectively compile
...
pieces out we won't need during a build.
2001-11-11 01:36:15 +00:00
jmc
ac4077ac62
Turn on defines to disable all the hashing functions. We don't need these for
...
the build and some systems won't have all the routines.
2001-11-11 01:35:21 +00:00
thorpej
f48c450929
Build the cross-dbsym.
2001-11-09 15:07:25 +00:00
thorpej
ca61e8a63a
Support for building the new BFD-using dbsym(8) as a targeted host
...
tool.
2001-11-09 05:53:26 +00:00
jmc
67de198df5
XXX...Complete hack for now.
...
Add a stub for RMD160File which prints out a warning and returns NULL.
This allows mtree to be built when hosting from a 1.5.x box.
The real solution is to convert the src/tools bits into clean portable tools
and not have them so NetBSD-current centric.
2001-11-08 20:30:54 +00:00
tv
472dcba2fb
* Always use the makewrapper when starting a build phase.
...
* Set stuff mostly in the environment, not on make(1)'s command line.
This is needed for MACHINE and MACHINE_ARCH (noted by bjh21), and keeps
the mk.conf-overriding-env behavior (suggested by several people).
* Use MAKEFLAGS to make the wrapper script more readable.
* When prepping objdir in tools for the default TOOLDIR value, just make
that objdir; leave the recursive "make obj" for later.
2001-11-02 05:07:22 +00:00
thorpej
d8c2abc4aa
Make *really* sure that MACHINE is set to an empty string so that
...
it doesn't infect the linker script build (i.e. override any MACHINE=
that might already be in MAKEFLAGS).
2001-11-01 01:52:45 +00:00
tv
a75f4fb35e
Don't actually delete the default tooldir on "cleandir"; else we'll nuke
...
the nbmake that is probably currently running.
Just leave the "cleantools" manual target as a shortcut for the user.
2001-10-31 19:38:02 +00:00
tv
61be23b431
* Create a variable HOST_OSTYPE that represents the host build environment,
...
using `uname -s`-`uname -r`-`uname -p || uname -m`. This can be overridden
in mk.conf or the environment, and is used by host tools to ensure that
build hosts do not clobber each other.
* Now that there's an objdir in src/tools, make a default TOOLDIR by creating
"tools.${HOST_OSTYPE}" in the objdir (if it exists) of src/tools. This
means that TOOLDIR is no longer required to be set in a build, though it
still may be set manually if desired.
* Set MKTOOLS to "yes" by default, since the default TOOLDIR is now located
in a known mutable location. This may still be set manually if desired.
2001-10-31 17:46:08 +00:00
tv
dd7ca02987
Make handling of USETOOLS uniform: Don't need to check whether it is
...
defined, as <bsd.own.mk> always sets it; also, compare only against "yes"
(not "no") for a yes/no check, as there are two negative states ("no" and
"never").
2001-10-31 16:15:00 +00:00
tv
c9a6a2c359
* Always descend into "tools" regardless of USETOOLS setting. Instead,
...
just don't build the tools if USETOOLS!=yes. This permits objdirs to
be created even when USETOOLS=no.
* Clean up use of "-m" by specifying it to .MAKEFLAGS: if needed.
2001-10-31 01:20:09 +00:00
perry
b0b54c8912
Nuke the test for TOOLDIR here. Although it is theoretically a nice
...
idea, in practice it prevents doing totally reasonable things like
"make cleandir" or "make obj" when you don't have a TOOLDIR built.
2001-10-27 01:57:40 +00:00
thorpej
722428c06b
Add asn1_compile as a host tool.
2001-10-25 07:45:13 +00:00
thorpej
1ae193710b
Avoid some annoying pitfalls of HOST_CPPFLAGS:=... in Makefile.host.
2001-10-25 02:37:49 +00:00
thorpej
14b9a21526
Avoid some annoying pitfalls of HOST_CPPFLAGS:=... in Makefile.host.
2001-10-25 02:23:21 +00:00
thorpej
21d2d1202e
Back out previous -- it has other annoying side-effects I missed.
2001-10-25 02:02:46 +00:00
thorpej
9132ab1031
No need to assign HOSTPROGNAME here, since we aren't changing it from
...
what PROG defaults to.
2001-10-25 01:49:48 +00:00
thorpej
e39fae1aff
Add the program's CPPFLAGS to HOST_CPPFLAGS using make(1)'s normal
...
lazy evaluation semantics, not the "assign it now" semantics. This
allows variables used in the program's CPPFLAGS to get the correct
values of e.g. MACHINE, MACHINE_ARCH, MACHINE_CPU, etc.
Problem was notices when propagating MACHINE and MACHINE_ARCH via
MAKEFLAGS (i.e. from the command line, rather than the environment).
For this to work, make sure you <bsd.hostprog.mk> is at least rev 1.15.
2001-10-25 01:25:02 +00:00
thorpej
14c7c08a1d
Provide a PRINTOBJDIR.
2001-10-25 00:36:26 +00:00
thorpej
b196c65125
Build a properly target-prefixed cross-tool version of mdsetimage,
...
using libbfd.
2001-10-24 23:57:45 +00:00
thorpej
d5b1b00eaa
Add $MACHINE_GNU_PLATFORM- prefixes to lint(1)'s front and back
...
ends, thereby properly making this a cross-tool. This addresses
bin/14280.
2001-10-24 02:32:56 +00:00
jmc
3a2cae9ab1
If <srcdir>/../Makefile.inc exists, pull it in as well before setting
...
CPPFLAGS, etc.
2001-10-22 05:30:47 +00:00
jmc
a831891141
Pull in mdsetimage to the tools builds. (XXX - using libbfd here would
...
probably be preferrable long term).
2001-10-21 23:10:46 +00:00
jmc
37e7a6a0a9
Add mklocale to cross-tools and turn it back on for the builds.
2001-10-20 06:04:59 +00:00
tv
101cc06772
Set TEXINFO_MAINT to an empty string when configuring texinfo, so that
...
the doc rebuilding (doc/help2man), which requires perl, is not invoked.
2001-10-19 02:40:03 +00:00
jmc
21a3d2f022
Set MKSHARE=no so the real Makefile won't pull in bsd.files.mk
2001-10-18 05:33:01 +00:00
jmc
1ea83aa531
Add crunchgen, msgc and menuc
2001-10-13 06:11:06 +00:00
jmc
8a8f936f25
Add msgc as a hosted tool
2001-10-13 06:10:52 +00:00
jmc
96d288e3b5
Add menuc as a hosted tool
2001-10-13 06:10:32 +00:00
jmc
12d4fcbae6
Add crunchgen as a hosted tool
2001-10-13 06:10:09 +00:00
jmc
b8b456e6f9
Add install.files rule. Tools with support files can use HOSTFILES and
...
HOST_FILESDIR to install support files (just like bsd.files.mk normally
would be doing.
2001-10-13 06:09:25 +00:00
enami
a28fcd776c
Make mtree a host tool and use it when appropriate.
2001-10-09 05:19:03 +00:00
tv
822fbb0675
Prevent parallelism problemswhen recursing into the GNU makefiles by
...
disabling parallelism in those builds.
2001-10-08 22:43:56 +00:00
tv
17f50da79a
Move the setting of DESTDIR from the environment to the command line, deals
...
with DESTDIR being set on the command line at the top level (as per MAKEFLAGS
propagation in newer make(1) sources).
2001-10-08 22:19:55 +00:00
bjh21
fe71d89d58
Blank MACHINE in the environment when building the toolchain. This is
...
necessary to prevent ELF linker scripts' being built incorrectly, and
parallels rev 1.5 of gnu/usr.bin/binutils/ld/Makefile.
2001-10-06 16:38:04 +00:00
tv
848b7208e8
Clear DESTDIR from the environment when invoking make on the toolchain's
...
GNU makefiles. Some of these tools are (amazingly) DESTDIR aware, but
we don't want that handling for host tools.
Fixes PR bin/14079.
2001-10-04 17:52:27 +00:00
tv
4748eedac5
Recurse properly; just add "build" to TARGETS (fixes reported problem where
...
"make clean" doesn't work at the src/tools level).
2001-10-04 16:33:05 +00:00
tv
63e11416cf
Add STRIP to the environment of binstall, to use proper strip at install
...
time. Noted by <jepeway@blasted-health.com>.
2001-09-25 01:43:35 +00:00
tv
9998046745
Work around "make obj" lossage in tools/. Dunno why this is happening
...
just yet; will investigate this evening.
2001-09-22 12:29:22 +00:00
tv
aea7f2e0d5
Move the definitions of host tools from Makefile.tools to <bsd.own.mk>.
...
Turn on USE_NEW_TOOLCHAIN explicitly on i386. (See current-users or
tech-toolchain for the heads up announcement and tech details.)
2001-09-22 05:45:50 +00:00
tv
e704f6d2ea
Move <bsd.hostprog.mk> to the right place so TOOLDIR can be set in mk.conf.
2001-09-22 05:02:13 +00:00
tv
14e39089db
Add lorder to TOOLDIR host tools.
...
Only descend into directories if USE_NEW_TOOLCHAIN is set (allows top level
Makefile to use "-m ${.CURDIR}/share/mk" to get the "correct" <bsd.own.mk>
when descending into src/tools/Makefile).
2001-09-22 04:15:19 +00:00
tv
772c71ae08
Revert previous. The dependency strategy used in "tools" is not the same as
...
in the rest of the source tree, for reasons that will be documented separately.
Short story: host tools that are out of date need to be rebuilt
*from scratch* to avoid our common `source skew accidents'.
2001-09-22 04:12:33 +00:00
mrg
158c241b62
add UPDATE/NOCLEANDIR support.
2001-09-22 01:19:11 +00:00
tv
5242e768a7
Add compile_et to TOOLDIR host tools.
2001-09-21 23:01:08 +00:00
tv
d27286ce34
- Create a real cpp binary.
...
- Set CC properly in environment for mkdep and lint.
- Add compile_et to TOOLDIR host tools.
2001-09-21 23:00:35 +00:00
tv
001747f623
Do a cleandir also before building when a timestamp demands it (not just on
...
MKTOOLS=always).
2001-08-14 13:55:57 +00:00
tv
b4b99a2b55
Remove USE_NEW_TOOLCHAIN definition; this will go in bsd.own.mk.
2001-08-14 12:36:34 +00:00
tv
c516c1badc
Make MKTOOLS tri-state; add "always" to dictate that the host tools are to
...
be rebuilt on every build.
2001-08-14 12:36:10 +00:00
tv
c5d597ce98
Bootstrap toolchain framework, first pass.
2001-08-14 11:01:55 +00:00