freebsd-skq/share/mk
kris b7d8207daf Overhaul the MACHINE_CPU behaviour:
* Rip out MACHINE_CPU stuff from sys.mk and include a new <bsd.cpu.mk>
  after we pull in /etc/make.conf.  We need to do it afterwards so we can
  react to the user setting of the:

* CPUTYPE variable, which contains the CPU type which the user wants to
  optimize for.  For example, if you want your binaries to only run on an
  i686-class machine (or higher), set this to i686.  If you want to support
  running binaries on a variety of CPU generations, set this to the lowest
  common denominator.  Supported values are listed in make.conf.

* bsd.cpu.mk does the expansion of CPUTYPE into MACHINE_CPU using the
  (hopefully) correct unordered list of CPU types which should be used on
  that CPU.  For example, an AMD k6 CPU wants any of the following:
    k6 k5 i586 i486 i386
  This is still an unordered list so the client makefile logic is simple -
  client makefiles need to test for the various elements of the set in
  decreasing order of priority using ${MACHINE_CPU:M<foo>}, as before.
  The various MACHINE_CPU lists are believed to be correct, but should be
  checked.

* If NO_CPU_CFLAGS is not defined, add relevant gcc compiler optimization
  settings by default (e.g. -karch=k6 for CPUTYPE=k6, etc).  Release
  builders and developers of third-party software need to make sure not to
  enable CPU-specific optimization when generating code intended to be
  portable.  We probably need to move to an /etc/world.conf to allow the
  optimization stuff to be applied separately to world/kernel and external
  compilations, but it's not any worse a problem than it was before.

* Add coverage for the ia64/itanium MACHINE_ARCH/CPUTYPE.

* Add CPUTYPE support for all of the CPU types supported by FreeBSD and gcc
  (only i386, alpha and ia64 first, since those are the minimally-working
  ports.  Other architecture porters, please feel free to add the relevant
  gunk for your platform).

Reviewed by:    jhb, obrien
2001-02-22 11:22:46 +00:00
..
bsd.cpu.mk Overhaul the MACHINE_CPU behaviour: 2001-02-22 11:14:25 +00:00
bsd.dep.mk $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
bsd.doc.mk $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
bsd.docb.mk $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
bsd.info.mk Don't create a garbage file named "install" for the NOINFO case when 2000-05-15 14:17:50 +00:00
bsd.kern.mk Add section for building ia64 kernels. 2000-10-16 20:04:52 +00:00
bsd.kmod.mk Do not check for existence of ${_dir}/kern/ , because for modules that set 2000-12-08 20:36:32 +00:00
bsd.lib.mk Change "building the standard ${LIB} library" to "building the static 2000-10-02 08:48:49 +00:00
bsd.libnames.mk Zap LIBTCL, it's been superfluous for several years. 2001-02-18 11:58:54 +00:00
bsd.man.mk Install the stock (as supplied by groff(1) distribution) tmac.an 2000-12-06 17:02:33 +00:00
bsd.obj.mk Use test -z rather than -n. 2000-11-01 07:09:38 +00:00
bsd.own.mk The kernel is now known as `kernel.ko' and it and its matching modules 2000-09-05 22:37:46 +00:00
bsd.port.mk Add $FreeBSD$ 2000-12-29 01:23:57 +00:00
bsd.port.post.mk $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
bsd.port.pre.mk $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
bsd.port.subdir.mk Add $FreeBSD$ 2000-12-29 01:23:57 +00:00
bsd.prog.mk Check for MAN9 for consistency. 2000-03-23 16:46:20 +00:00
bsd.README Correct instructions/examples about manual pages. 2000-03-23 16:48:04 +00:00
bsd.sgml.mk $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
bsd.subdir.mk Fix typo. 2000-01-03 12:16:18 +00:00
Makefile Overhaul the MACHINE_CPU behaviour: 2001-02-22 11:22:46 +00:00
sys.mk Overhaul the MACHINE_CPU behaviour: 2001-02-22 11:14:25 +00:00