Commit Graph

61 Commits

Author SHA1 Message Date
matt a161d61e18 Make arm use -O2 2001-07-23 17:08:17 +00:00
eeh 3fa4c5f64b Tell the assembler to accept UltraSPARC extensions on sparc64. 2001-06-29 23:50:01 +00:00
fvdl 644b748282 Add some extra flags for the x86-64 port. Disable -O in sys.mk
(which is where all ports set it); there seem to be some lurking
optimization bugs for the x86-64.
2001-06-19 01:37:44 +00:00
bjh21 b5279973df Switch arm26 to -O2. Most of my kernels are compiled with this anyway,
and gcc's code generation should be the same as for arm32, so I think this
is safe.
2000-08-22 17:38:49 +00:00
sjg 44f0af2b1f Allow optimizer/debug flags to be changed on command line without
breaking everything.  Eg. use DBG="-O0 -g" when debugging something.
2000-05-02 03:44:36 +00:00
matt 999a010a4b VAX should use -O2. (why don't all ports?) 1999-11-15 06:14:23 +00:00
jdolecek 3ab0a83b70 merge build rules for files ending .cc and .C
add support for C++ source files ending .cpp and .cxx
1999-11-13 14:53:09 +00:00
mycroft 3064c4ddcd alpha seems to work with -O2... 1999-03-10 14:06:14 +00:00
drochner cf3c9d73cd add missing parts of the "mips"->"mipse?" transition 1999-02-24 14:42:36 +00:00
lukem 497d11782a * Add support for MKDOC MKLINKLIB MKLINT MKMAN MKNLS MKOBJ MKPIC MKPICINSTALL
MKPROFILE MKSHARE, which default to `yes' unless an equivalent NOxxx
  variable is defined.
* Add MKCATPAGES, which if "no" prevents catpages from being built or installed

Users should use "MKxxx=no" instead of "NOxxx=" in /etc/mk.conf, because
this allows easy override on the make(1) command line (e.g 'make MKSHARE=yes'
to override MKSHARE=no in /etc/mk.conf).
1999-02-12 01:10:06 +00:00
simonb 6a165c11d8 Back out previous backout of -O2 in mips. Bug in strtod.c fixed via
Niklas Hallqvist.
1999-02-06 02:07:55 +00:00
simonb f88a59dce9 _Don't_ use -O2 on mips, libc/stdlib/strtod.c breaks 1999-02-05 13:50:09 +00:00
mycroft af6912b12f Use -O2 on arm32. 1999-01-21 09:44:19 +00:00
christos 73a72701ab Add -F to LINTFLAGS so that the full pathname is printed. 1999-01-18 20:22:54 +00:00
simonb 73b06e25d1 Use -O2 on mips. 1999-01-12 05:06:17 +00:00
thorpej 269d52483b Use -O2 on m68k. 1998-12-12 20:48:53 +00:00
mycroft 0a7241355c Use -O2 on SPARC. 1998-11-26 23:06:09 +00:00
mycroft cdacaf156d Use -O2 on i386. 1998-11-22 13:48:34 +00:00
tv aefeb9110b Fix the .c.a brokenness with libbfd the "right" way - nuke everything but
*o from .ALLSRC.
1998-08-22 18:59:40 +00:00
tv bace91cb64 Apply same .c.a workaround from alpha to arm32 1998-05-22 13:52:52 +00:00
tv 3b468e7a9b The C++ compiler is "c++", not "g++"; that is more compatible with non-GCC
based C++ compilers.
1998-04-09 00:45:10 +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
thorpej 42b5acd98e Fix .c.ln rule: use CPPFLAGS, not CFLAGS. 1997-11-05 05:34:24 +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
cgd 87d5df18e3 add '-z' to LINTFLAGS, so that forward structure definions (for pointer
args, etc.), don't cause warnings if the structure isn't ever completely
defined.
1997-11-03 22:56:27 +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
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
mycroft e30142d40d Remove unneeded .SUFFIXES lines, and move .s and .S closer to .o to give the
right preferences.
1997-05-17 02:01:07 +00:00
mikel 76cfd073e9 merge lite-2 changes (mostly SCCSids) 1997-03-29 08:02:45 +00:00
thorpej f2bb1e120e Define an INSTALL make variable, and default it to "install". Suggested
by Simon J. Gerraty <sjg@zen.void.oz.au>, PR #1458.
1996-10-18 02:33:38 +00:00
thorpej b479977348 Add "-traditional-cpp" to the COMPILE.S command, so that assembler
syntax (specifically, use of # to indicate an immediate value) isn't
misinterpreted as a CPP directive.
1996-09-30 23:37:22 +00:00
mycroft a86feda616 Remove broken hack that attempted to do the same as the previous. 1996-04-10 05:47:19 +00:00
mycroft 198877f9dc Fix COMPILE.s so the output file is named correctly. 1996-04-10 05:44:49 +00:00
jtc f1938eb0d0 Removed special handling of CPPFLAGS if DESTDIR is set. Third party
makefiles may use DESTDIR for something completely different.
1996-02-29 19:06:57 +00:00
jtc 4e24a7f97e Default .s.o and .S.o left output in wrong file 1996-02-28 23:45:16 +00:00
cgd 4297bc2d3a don't include the .c.a rule on the alpha. see p.r. 1488 for an
example of how make breaks when it's present.  In particular, it causes
build of the compiler toolchain to fail if present, which keeps
a complete system from building, on the alpha.
1995-12-18 02:53:20 +00:00
christos e3a69c3c19 - In preparation for parallel makes fix the library rules so that they
don't use a.out as intermediate output.
- Note in the README file that we cannot fix the xstr stuff.
  We still need to fix lex and yacc.
- Allow overriding of the variables in sys.mk
1995-09-24 23:49:06 +00:00
cgd f386420eb0 update lint rules, but keep linting disabled 1995-06-24 08:27:37 +00:00
mycroft 101c02e6db Move the inclusion of bsd.own.mk to a better place. 1994-07-26 19:42:37 +00:00
mycroft 624e7c0ad8 Use CPPFLAGS (previously defined but unused) to yank in include files from
${DESTDIR}/usr/include.
1994-07-06 04:12:24 +00:00
deraadt ec891b096e .m4 files are sources too 1994-06-30 06:47:38 +00:00
cgd 61d2ae79f4 RCSID frobbing, and minor sanity adjustments. 1994-06-30 05:31:04 +00:00
cgd 183803dfad add back inclusion of bsd.own.mk 1994-03-27 01:42:35 +00:00
jtc 4051de5f84 Added various COMPILE.? & LINK.? macros and changed suffix rules to use
them (Like Sun & GNU make).
1994-03-24 16:01:24 +00:00
jtc 85f2beb3d3 Now that single suffix rules work, uncomment them. 1994-03-24 01:39:28 +00:00
jtc 894ae428ab Moved manpage formatting rules from sys.mk to bsd.man.mk.
Some programs (like ispell) use *.[0-8] for non-manpage things, and having
the manpage rules in sys.mk really messes things up.
1994-01-31 18:40:10 +00:00
cgd ff6c523a64 oops; kill two extra spaces. 1994-01-25 21:56:52 +00:00