1 # $NetBSD: Makefile,v 1.2 2006/12/09 20:13:13 dyoung Exp $
3 HOSTPROGNAME
= nbdisklabel-
${MAKEWRAPPERMACHINE}
4 HOST_SRCDIR
= sbin
/disklabel
5 HOST_SRCS
= getcap.c disklabel.c bswap.c
9 .
include <bsd.endian.mk
>
11 .if
${TARGET_ENDIANNESS} == "1234"
12 CPPFLAGS
+= -DTARGET_BYTE_ORDER
=LITTLE_ENDIAN
13 .elif
${TARGET_ENDIANNESS} == "4321"
14 CPPFLAGS
+= -DTARGET_BYTE_ORDER
=BIG_ENDIAN
17 .
include "${.CURDIR}/../Makefile.disklabel"
18 .
include "${.CURDIR}/../Makefile.host"
20 .PATH
: ${.CURDIR
}/..
/..
/lib
/libc
/gen