Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@netbsd.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 04/22/2002 05:30:51
Module Name:	pkgsrc
Committed By:	jlam
Date:		Mon Apr 22 02:30:51 UTC 2002

Added Files:
	pkgsrc/mk: endian.mk

Log Message:
Makefile fragment to determine the endianness of the platform by checking
header files.  It defines MACHINE_ENDIAN which is one of three values:
little, big, or unknown.

This file is used in package Makefiles as follows:

.include "../../mk/endian.mk"

.if ${MACHINE_ENDIAN} == "big"
# ...big endian stuff...
.elif ${MACHINE_ENDIAN} == "little"
# ...little endian stuff...
.else
BROKEN=       "Unknown endianness"
.endif


To generate a diff of this commit:
cvs rdiff -r0 -r1.1 pkgsrc/mk/endian.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.