thorpej
083db732ee
Sigh, back out previous -- it is necessary inorder for the depend
...
(and dependall) targets to work properly.
XXX THIS IS BROKEN. It's highly questionalble that we should be applying
our .depend-generating rules to a host system -- the mkdep we currently
use assumes GCC.
2001-10-25 13:48:50 +00:00
thorpej
09dacf298e
Oops, typo.
2001-10-25 07:47:18 +00:00
thorpej
9c77726ed1
Add an ASN1_COMPILE variable for that host tool.
2001-10-25 07:46:48 +00:00
thorpej
4cd6ce7ea8
Remove an unnecessary "CPPFLAGS=${HOST_CPPFLAGS}" -- the host tool
...
targets use HOST_CPPFLAGS exclusively, and keeping this assignment
can get us into some unfortuante recursion trouble.
2001-10-25 01:21:14 +00:00
thorpej
5717160d3a
MDSETIMAGE gets a MACHINE_GNU_PLATFORM prefix.
2001-10-24 23:58:21 +00:00
thorpej
bae67ac435
LINT needs a ${MACHINE_GNU_PLATFORM}- prefix now.
2001-10-24 02:34:33 +00:00
thorpej
3a01dbbe6c
Quote the ${CC} provided to mkdep's environment.
2001-10-23 22:55:30 +00:00
thorpej
8f508df026
When setting MACHINE_GNU_PLATFORM for ARM ports, we need compare
...
MACHINE_GNU_ARCH (not MACHINE_ARCH) to "arm", otherwise the GNU
platform won't be set properly if OBJECT_FMT=ELF.
2001-10-23 17:15:21 +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
910ace859f
Pass ${.MAKE} to crunchgen so it uses the one for cross builds correctly
2001-10-21 23:08:59 +00:00
jmc
6289ed7a3e
Change sets so the differing toolchain bits only (not the complete toolchain
...
at the moment) are pulled out into tc.mi and tc.old files.
tc.mi has any files which are in the new toolchain only and tc.old contains
the reverse (files which only existed in the old toolchain). The remainder
of the toolchain that is common between both old and new is still contained
in the various mi/md files.
Check for USE_NEW_TOOLCHAIN=yes in makeflist to determine which tc files to
pull in if they exist.
XXX - All the toolchain bits should eventually be pulled out into separate
lists as tc.mi and tc.<arch>. Leaving it for now until the new toolchain is
fully integrated on all ports.
2001-10-20 06:11:21 +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
9bd7c9e744
Better version of previous. Use an .ifdef in this case, so the rule isn't
...
even defined without YHEADER. (Otherwise can lead to odd behavior.)
2001-10-19 19:07:48 +00:00
tv
336a299fa4
Make sure .y.h rule knows what to do only if YHEADER is set.
2001-10-19 17:05:26 +00:00
tv
53aa2d95d7
Simplify many .if's by collapsing to make :D and :U conditionals.
2001-10-19 16:28:54 +00:00
tv
4a7f86b870
Simplify and collapse a lot of the gooey .l and .y handling cruft here.
...
Rather than special-case a bunch of stuff, make this always parallel-safe,
and have make call upon the .l.c/.y.c followed by .c.o/.c.lo transforms,
rather than try to go right from .l/.y to .o/.lo.
2001-10-19 16:15:40 +00:00
tv
ccfbe64e81
Add .NOPATH for all files generated from .l or .y files in SRCS. Fixes PRs
...
bin/14187 and lib/14239.
Also simplify the handling of these transforms to .c and .h files a bit by
leveraging make's builtin macro operators.
2001-10-19 15:55:52 +00:00
jmc
1ea83aa531
Add crunchgen, msgc and menuc
2001-10-13 06:11:06 +00:00
jmc
c55dbe210b
Add MTREE var definition to list for sys.mk
2001-10-13 06:06:55 +00:00
enami
a28fcd776c
Make mtree a host tool and use it when appropriate.
2001-10-09 05:19:03 +00:00
mrg
f650652253
use CC="${CC}" and NM="${NM}" so that, eg, "CC=cc -m64" works.
2001-10-08 10:01:35 +00:00
simonb
6247b48489
Use ${MACHINE_CPU} instead of ${MACHINE_ARCH} in the machine-links
...
target; needed for MIPS and probably arm ports.
.include the full path name of machine/Makefile.inc so that this works
if the machine-links target hasn't been run yet.
.include ${MACHINE_CPU}/include/Makefile.inc too.
2001-10-05 15:30:06 +00:00
tv
d1a2ff769a
Make sure "clean" target is always defined, to compensate for cleandir
...
now being defined in terms of clean.
2001-10-04 16:29:54 +00:00
tv
4623186407
Make sure to define USETOOLS properly always (set it to "no" on systems
...
without USE_NEW_TOOLCHAIN). This will allow conversion of in-tree
conditionals to use only USETOOLS....
2001-10-04 15:52:59 +00:00
jdolecek
20a3387bdb
don't include explicit -e for modload in 'load' target - it's redundant
...
This addresses bin/4701 by Hauke Fath, but does opposite thing than
suggested there.
2001-09-29 20:10:07 +00:00
mrg
f0cf28bfaa
enable a toolchain for the sparc64.
2001-09-26 12:45:56 +00:00
tv
84a997640e
Set .NOPATH on program to build to make sure it goes in .OBJDIR.
...
Problem noted by <seebs@plethora.net>.
2001-09-25 02:19:26 +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
e7bc3de221
Add mssed commit that sets USETOOLS=no if BSD_PKG_MK is set. Noted by erh.
2001-09-25 01:04:35 +00:00
lukem
13a5c8134c
fix previous (hi thor!) - $OBJS and $CLEANFILES might be empty, and
...
rm needs some files to delete...
2001-09-24 09:18:05 +00:00
tls
38809e7a94
Split "cleanprog" target apart: now you can zap only object files or
...
CLEANFILES (needed to fix crunchgen lossage).
2001-09-24 01:04:32 +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
cda4a8d07c
The -m option is automatically propagated by make(1). Don't add yet more
...
(possibly wrong) `-m' options; this will only make MAKEFLAGS bigger and
bigger with each recursion.
2001-09-22 05:01:26 +00:00
tv
6abadb2b98
Allow for recursion speedups by predefining rules for large subtrees which
...
don't need to run a particular target (such as "includes-games" at top level,
or "includes-sushi" at share/).
2001-09-21 20:50:23 +00:00
tv
b868449232
Since SHLIB_MAJOR may be set even in a MKPIC=no situation, make sure that
...
print-shlib-* targets only print stuff if MKPIC=yes.
2001-09-21 15:25:49 +00:00
tv
e949020a8e
If SHLIB_MAJOR is explicitly set in a Makefile, don't even look for a
...
shlib_version file. (Part of a larger change which will also update
checkver to deal with this, and migrate old makefiles to include
SHLIB_MAJOR/SHLIB_MINOR. For now, just add the hooks so that the old
gnu/lib toolchain libraries can use this as a workaround.)
2001-09-21 15:16:09 +00:00
mycroft
4a379469f5
Use -O2 on PowerPC.
2001-09-17 12:28:14 +00:00
chris
a41363209a
Arm doesn't do ELF by default yet. Should fix PR 13973.
2001-09-16 18:50:29 +00:00
thorpej
913b93d749
Add LIBPCI.
2001-09-13 23:23:26 +00:00
thomas
d9203a217e
On Atari now the default object format is ELF.
2001-09-08 11:10:41 +00:00
christos
10535336ed
Add some more WARNS (commented out since they break things)
2001-09-08 01:00:44 +00:00
eeh
500082fdef
Build lint on sparc64.
2001-08-26 06:00:30 +00:00
chs
7cffe4c898
switch cesfic to ELF.
2001-08-25 18:39:24 +00:00
mrg
665a4002a3
enable profile libraries on sparc64
2001-08-19 14:24:44 +00:00
tv
64263ab596
Revert previous temporarily to deal with PR bin/13722; will revisit this
...
(and close the PR) after I've located all of the uses of PRINTOBJDIR and
fixed them up not to bork themselves recursively.
2001-08-15 17:50:15 +00:00
tv
937e77aec5
Speed up PRINTOBJDIR a little by changing it to "${MAKE} -V .OBJDIR" (it
...
will recurse, but won't need to spawn a shell and run commands now).
2001-08-14 23:33:43 +00:00
tv
f059974dc2
Add a HOST_CXX and HOST_CXXFLAGS (currently needed for compiling groff on
...
a cross host).
2001-08-14 11:55:04 +00:00
tv
58290cfc5d
Change ROFF?= to be more like other utility macros; make this "groff -Tps"
...
by default.
2001-08-14 10:38:27 +00:00
tv
55e586472d
Simplify some MACHINE_ARCH transforms, and redefine MACHINE_GNU_PLATFORM
...
as the full GNU triplet name.
2001-08-14 09:31:42 +00:00
tv
8bd89a86e7
Protect against multiple inclusion, and evaluate ${.CURDIR} early (to assist
...
the top-level toolchain bootstrap).
2001-08-14 09:30:48 +00:00