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
mycroft
7b36bd4442
If AUDIT is defined, compile with -D__AUDIT__.
1998-07-27 13:16:52 +00:00
thorpej
bcaf433561
If DESTDIR is set, tell lint to use "-d ${DESTDIR}/usr/include" (the equiv.
...
of "-nostdinc -idirafter ${DESTDIR}/usr/include". Fixes PR #5399 .
1998-05-11 22:12:59 +00:00
tv
482063559a
.y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
...
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
tv
875f72aa79
Revert. This broke too much in the build tree, and a better solution
...
needs to be created. (The existing situation breaks a lot too.)
1998-04-01 16:58:33 +00:00
tv
755c261508
Fix .y rules to DTRT with possibly generated .h files. See mail on
...
tech-toolchain for a very detailed explanation of this. In short, add
a .y.h rule identical to the .y.c rule and make the .y.c rule rename
the .h file; also, clean the .h file in CLEANFILES.
1998-04-01 15:23:36 +00:00
gwr
5c8e26aed2
Move definitions of: NM, LORDER, TSORT from bsd.sys.mk to sys.mk
...
so they are more easly used by things like sys/libkern/Makefile.inc
(Besides, all the other tool definitions are in sys.mk)
1997-11-04 21:12:41 +00:00
gwr
dff2b93f7d
Define LORDER, TSORT
1997-11-04 20:31:56 +00:00
lukem
513a06e6f5
remove lint rules for objective c as lint can't cope
1997-10-30 07:25:32 +00:00
lukem
55209d604d
add default rules for Objective C sources (`.m' suffix):
...
- sys.mk:
add ${OBJC} and ${OBJCFLAGS} (equivalent to ${CC} and
${CFLAGS} respectively), and ${COMPILE.m} and ${LINK.m} rules
- bsd.sys.mk:
add .m, .m.o, and .m.ln rules (as per the C rules in sys.mk).
it's here, rather than in sys.mk, because `.m' isn't
exclusively used for Objective C files.
- bsd.lib.mk:
add .m.o, .m.po, .m.so, and .m.ln rules (as per C)
1997-10-28 12:40:16 +00:00
mikel
d76d14e5e5
add -Wpointer-arith to flags enabled by WARNS
1997-10-12 01:37:50 +00:00
mycroft
d39697696f
Put the `-nostdinc -idirafter ...' in CPPFLAGS, not CFLAGS.
1997-10-08 13:17:00 +00:00
christos
a1e04f77a8
PR/4146: Erik Bertelsen: WARNS was not unsettable in Makefiles
1997-09-26 13:24:03 +00:00
christos
cd59f75df4
Enable extra warnings if WARNS is set
1997-07-01 21:42:55 +00:00
cjs
7a66732d34
Back out BUILDDIR and NOINSTALL changes.
1997-05-31 21:21:13 +00:00
cjs
b73b99ed41
Put include information in CPPFLAGS only (not in CFLAGS or MKDEPFLAGS).
...
Add note that CPPFLAGS is (or should be) passed to all programs that
pass input through cpp.
1997-05-27 18:09:00 +00:00
cjs
f66891a189
Make sure mkdep gets correct include directories.
1997-05-27 17:01:56 +00:00
cjs
b3b931acf8
Patch for yesterday's batch of `new build system' commits that I forgot
...
to commit.
1997-05-26 16:36:41 +00:00
thorpej
a585fb7042
Add several HOST_* variables. These identical to their non-HOST_
...
counterparts, and are used to compile programs that are needed to
compile other programs (see src/bin/sh for an example use). These
facilitate cross-compiling.
Define an NM variable - the program to use for nm(1)
1997-04-17 06:43:32 +00:00
scottr
4aca2bf529
If DESTDIR is defined, look for includes in ${DESTDIR}/usr/include,
...
instead.
1996-05-15 19:46:51 +00:00
cgd
8c917568da
add "CFLAGS += -Werror" to bsd.sys.mk, and update various bits of
...
documentation to explain bsd.sys.mk's purpose more clearly.
1995-12-13 01:25:05 +00:00
christos
70174eb6fe
Added include file <bsd.sys.mk> that contains lex and yacc "parallel aware"
...
rules. These rules are not turned on by default; they are enabled by setting
the PARALLEL variable.
1995-10-22 00:45:53 +00:00