Commit Graph

31 Commits

Author SHA1 Message Date
tsutsui
ccf0f70064 Invoke tools/binstall/mkmanifest for Cygwin via ${HOST_SH}.
Fixes builds using source sets that drop executable bits.
2013-06-14 16:10:02 +00:00
christos
e382023f82 - Provide HOSTEXEEXT if NOCOMPATLIB
- merge a variable for readability and add an exe suffix where needed.
2013-02-17 00:32:42 +00:00
apb
e0d2aa9d82 Make most things under src/tools use the TOOLDIR version of compat/defs.mk,
instead of the version in the .OBJDIR of tools/compat.
2012-12-02 12:48:32 +00:00
joerg
c28ff146c9 For USETOOLS=yes, use the --sysroot support of the compiler to cut down
the number of hard-coded pathes and magic invocations.
2011-04-10 16:52:36 +00:00
joerg
762325586d If MKREPRO, transform ${NETBSDSRCDIR} to /usr/src and ${DESTDIR} to /
for the purpose of the C preprocessor.  This avoids leaking the source
path into the final binaries.
2010-12-25 18:56:44 +00:00
uebayasi
83246377bb Revert previous, which caused tools build to fail. 2009-12-01 17:06:34 +00:00
uebayasi
ab788f10b4 Use ${NETBSDSRCDIR} for deep tools/* directories. 2009-12-01 09:08:25 +00:00
apb
ce47df9797 Define NOINFO, so that we don't try to build info files for host tools. 2008-10-19 19:38:55 +00:00
dsl
37b127cb76 Correct .PHONY rules that force tools to be installed to use
'.if ${MKUPDATE} == "no"' instead of '.if !defined(UPDATE)'.
2003-11-16 18:06:01 +00:00
lukem
130ab7336b 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.
2003-10-21 10:01:19 +00:00
lukem
ddff99b7f4 rework to use the newer _MKMSGCREATE (et al) macros 2003-10-19 04:45:01 +00:00
lukem
2c30246862 MAKEVERBOSE support 2003-10-18 16:33:58 +00:00
thorpej
3550b00b45 Move -no-cpp-precomp logic to defs.mk. 2003-03-13 05:15:49 +00:00
thorpej
c0d5461540 Pass -no-cpp-precomp to the C preprocessor on Darwin; our use of
libnbcompat is incompatible with pre-compiled headers (which the
compiler correctly detects, but warns about profusely).
2003-03-13 04:43:37 +00:00
tv
a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
tv
9c06c04bee Missed in last commit: make some tools build properly on non-NetBSD hosts. 2002-01-21 20:59:40 +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
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
perry
184d8eecad replace instances of INSTALL_FILE with HOST_INSTALL_FILE 2001-11-19 04:47:42 +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
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
thorpej
21d2d1202e Back out previous -- it has other annoying side-effects I missed. 2001-10-25 02:02:46 +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
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
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
tv
c5d597ce98 Bootstrap toolchain framework, first pass. 2001-08-14 11:01:55 +00:00