bjh21
407daa978b
Provide a default for PWD_MKDB.
2002-03-31 11:48:45 +00:00
ross
de50fe2e64
Drink ALL the Kool-Aid.
...
(Move -mieee from lib/ to bsd.*.mk; new var MKIEEEFP defaults to yes.)
2002-01-27 23:33:51 +00:00
lukem
47737da33b
add $PAX to both, and $MAKEFS to bsd.sys.mk
2002-01-25 05:21:40 +00:00
thorpej
89c7818994
Ah, don't actually need MAKEWHATIS here.
2001-11-29 23:55:33 +00:00
thorpej
79b30cbdeb
Provide ${MAKEWHATIS}.
2001-11-29 23:53:23 +00:00
tv
43453698f5
Use :U successfully this time. In an expression such as ${FOO:D:Ubar}, you
...
end up with empty string if FOO is defined, and `bar' if it is undefined.
2001-11-28 20:12:47 +00:00
jmc
60ec3c749b
Revert check for NOGCCERROR back to a .if \!defined as the :U check will break
...
anyone with NOGCCERROR=1 in their mk.conf
2001-11-26 06:11:20 +00:00
thorpej
72915508bb
Protect from multiple inclusion.
2001-11-17 22:55:24 +00:00
thorpej
b78cf94ba5
Make sure MKDEP is defined for the non-USETOOLS case.
2001-11-17 22:48:48 +00:00
wiz
012e08cda6
Re-add check for defined(MKSOFTFLOAT) that got lost in v1.60.
...
Needed for Makefiles which include bsd.sys.mk, but not bsd.own.mk,
like distrib/macppc/floppies/ramdisk/Makefile.
Okay'd by simonb.
2001-11-15 12:15:09 +00:00
tv
c8c3cf578b
Move the DESTDIR-based nostdinc logic to bsd.lib.mk and bsd.prog.mk where
...
it belongs (with the native target compile rules).
2001-11-14 21:49:53 +00:00
tv
23b305bcfa
* Use -isystem instead of -idirafter for ${DESTDIR}/usr/include.
...
* Provide defaults for HOST_AR and HOST_RANLIB.
* Formatting cleanup.
2001-11-13 20:25:38 +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
80d11d2c09
Provide defaults for MDSETIMAGE and CRUNCHGEN.
2001-11-11 21:41:00 +00:00
lukem
2d79659157
move -Wwrite-strings to WARNS=3 too ... (yech!)
2001-11-01 07:27:35 +00:00
lukem
0e643f61a5
Move -Wcast-qual from WARNS=2 to WARNS=3 (a new level), because it
...
generates too many false positives that require gross amounts of
workaround, and the other WARNS=2 stuff is quite useful. Per discussion
with simonb & christos.
2001-11-01 07:17:17 +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
enami
a28fcd776c
Make mtree a host tool and use it when appropriate.
2001-10-09 05:19:03 +00:00
christos
10535336ed
Add some more WARNS (commented out since they break things)
2001-09-08 01:00:44 +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
scw
3293e3a26c
Check for MKSOFTFLOAT being defined before testing its value.
...
Needed for crunchgen(1) generated makefiles (e.g. miniroot builds).
2001-07-04 17:46:06 +00:00
simonb
3acd556b4d
Add a new make variable "MKSOFTFLOAT". If not set to "no", it adds
...
"-msoft-float" to COPTS and FOPTS, and possibly builds soft-float
library support (port specific).
Defaults to "no".
2001-06-18 17:04:44 +00:00
itojun
f9d029c7cc
document host build tools (like rpcgen) in bsd.README. PR 11839
2000-12-30 04:11:34 +00:00
itojun
87f5fc92dd
document MKLOCALE is not a variable to control build behavior. per PR 11839.
2000-12-29 03:18:32 +00:00
itojun
9ad9be84eb
declare ${MKLOCALE}. PR11801.
2000-12-23 22:47:28 +00:00
thorpej
99de26f4ee
Repair a dual-.if construct that certainly didn't work with
...
any version of make(1) on my systems...
2000-10-11 05:45:50 +00:00
is
2e08b549a5
Format string cleanup, by sommerfeld.
2000-10-10 20:41:20 +00:00
sommerfeld
abff7e84fd
If FORMAT_AUDIT is set, and WFORMAT is set and > 1, turn on
...
-Wnetbsd-format-audit for extra-stringent format checking.
WFORMAT belongs in individual makefiles and/or Makefile.inc files.
FORMAT_AUDIT should go in mk.conf if you're doing format-string auditing.
(set WFORMAT=1 in individual makefiles if a program is
not security critical and is doing bizarre things with
format strings which would be even uglier if rewritten)
FORMAT_AUDIT may go away in time (i.e., default to on)
2000-10-04 19:27:45 +00:00
cgd
4bf5f7086b
${RPCGEN}, not hard-coded rpcgen
2000-07-25 06:29:44 +00:00
thorpej
84543d59da
Make the fact that we disable -Wuninitialized explcicit in the Makefile,
...
rather than relying on a compiler hack to do it for us.
2000-05-09 00:15:55 +00:00
tsutsui
c539ff5d84
STRIPPROG -> STRIP
2000-02-01 06:00:35 +00:00
sommerfeld
eabdb3b0c8
Define CONFIG, so it can be overridden for cross-builds.
1999-09-16 00:28:31 +00:00
sommerfeld
62ea23a965
Add OBJCOPY
1999-08-21 14:17:07 +00:00
christos
63eda1d356
Introduce a second level of WARNS for even more paranoia
1999-07-08 01:55:38 +00:00
mrg
b6b3f824d3
NOGCCERROR disables -Werror.
1999-01-31 09:17:20 +00:00
lukem
7880f6b638
reimplement rev 1.30,1.31 using YPREFIX and LPREFIX instead
1998-11-01 03:46:28 +00:00
veego
7bcba05bce
Backout 1.30 and 1.31 which breaks at least libpcap and pppd.
1998-10-31 17:17:56 +00:00
lukem
397be30561
simplify YACCPREFIX rule by using `yacc -o ${.TARGET}' instead of
...
`yacc -b ${.TARGET:R} ; mv ${TARGET:R}.tab.c ${.TARGET}'. fixes
parallel make of foo.y -> foo.c/foo.h as well
1998-10-30 11:17:08 +00:00
lukem
f2b1ba4f9f
implement LEXPREFIX and YACCPREFIX, which allow overriding the `yy'
...
prefix of generated tokens, and `.yy.{c,h}' suffix in filenames.
this solves the problem i had in [misc/1989] (albiet a different way).
1998-10-30 10:45:09 +00:00
tv
138f9d4389
Reorganize comments around .m and .c.lo rules
1998-09-13 20:56:38 +00:00
tv
16a9e147f7
Create a STRIPPROG definition to specify a (target) strip program. Later,
...
STRIPPROG could be used in preference to "-s" on "install".
1998-08-27 23:26:37 +00:00
tv
4e2285a407
Allow -Werror to be turned off with CWARNFLAGS=-Wno-error ...
1998-08-26 19:36:37 +00:00
tv
eb6956eecf
Introduce CWARNFLAGS, idea from kernel Makefiles, which goes after "-Wall
...
..." in the CFLAGS and can be set in directory Makefile or mk.conf.
1998-08-25 14:57:21 +00:00
tv
450705382c
Back out previous. -Wuninitialized is disabled in the latest egcs
...
sources, and -Wno-format-y2k is inserted into the proper Makefiles only
(as this is likely to become a permanent option).
1998-08-25 12:04:59 +00:00
ross
57b46db5d1
Add -Wno-uninitialized -Wno-format-y2k, with an attached XXX
1998-08-25 07:46:23 +00:00
tv
cf98a967de
"oops": .c.lo rule missed the "-o ${.TARGET}".
1998-08-17 00:03:32 +00:00
tv
b32ba95d4e
Add .c.lo, .l.lo, and .y.lo rules for automatic use of ${HOST_COMPILE.c}.
1998-08-16 23:55:04 +00:00