diff options
author | ru <ru@FreeBSD.org> | 2005-02-22 23:29:54 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-02-22 23:29:54 +0000 |
commit | 3305bcf4bbdffa9dfcdcef4bb7762485d95701a1 (patch) | |
tree | db9603004953476330eb45d8b0660771e5a0be24 /share/mk | |
parent | 9c75eea841ae95d54ab8b830910eccf703bcbff6 (diff) | |
download | FreeBSD-src-3305bcf4bbdffa9dfcdcef4bb7762485d95701a1.zip FreeBSD-src-3305bcf4bbdffa9dfcdcef4bb7762485d95701a1.tar.gz |
Add endianness support to cap_mkdb(1), useful for cross builds.
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/Makefile | 4 | ||||
-rw-r--r-- | share/mk/bsd.endian.mk | 11 |
2 files changed, 13 insertions, 2 deletions
diff --git a/share/mk/Makefile b/share/mk/Makefile index 326048e..44b0a9b 100644 --- a/share/mk/Makefile +++ b/share/mk/Makefile @@ -2,8 +2,8 @@ # @(#)Makefile 8.1 (Berkeley) 6/8/93 FILES= bsd.README -FILES+= bsd.compat.mk bsd.cpu.mk bsd.dep.mk bsd.doc.mk bsd.files.mk -FILES+= bsd.incs.mk bsd.info.mk bsd.init.mk +FILES+= bsd.compat.mk bsd.cpu.mk bsd.dep.mk bsd.doc.mk bsd.endian.mk +FILES+= bsd.files.mk bsd.incs.mk bsd.info.mk bsd.init.mk FILES+= bsd.kmod.mk FILES+= bsd.lib.mk bsd.libnames.mk bsd.links.mk bsd.man.mk bsd.nls.mk FILES+= bsd.obj.mk bsd.own.mk diff --git a/share/mk/bsd.endian.mk b/share/mk/bsd.endian.mk new file mode 100644 index 0000000..a9bdd6d --- /dev/null +++ b/share/mk/bsd.endian.mk @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.if ${MACHINE_ARCH} == "alpha" || \ + ${MACHINE_ARCH} == "amd64" || \ + ${MACHINE_ARCH} == "i386" || \ + ${MACHINE_ARCH} == "ia64" +TARGET_ENDIANNESS= 1234 +.elif ${MACHINE_ARCH} == "powerpc" || \ + ${MACHINE_ARCH} == "sparc64" +TARGET_ENDIANNESS= 4321 +.endif |