diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-02-22 23:29:54 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-02-22 23:29:54 +0000 |
commit | 6fe37d1365dfe4bf9383cb5674e42dd6fadfd136 (patch) | |
tree | db9603004953476330eb45d8b0660771e5a0be24 /share/mk/bsd.endian.mk | |
parent | 470273d7d9b92df0a17b1eb50fd9bbd6897b0472 (diff) | |
download | src-6fe37d1365dfe4bf9383cb5674e42dd6fadfd136.tar.gz src-6fe37d1365dfe4bf9383cb5674e42dd6fadfd136.zip |
Add endianness support to cap_mkdb(1), useful for cross builds.
Notes
Notes:
svn path=/head/; revision=142262
Diffstat (limited to 'share/mk/bsd.endian.mk')
-rw-r--r-- | share/mk/bsd.endian.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/share/mk/bsd.endian.mk b/share/mk/bsd.endian.mk new file mode 100644 index 000000000000..a9bdd6def551 --- /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 |