NetBSD/tools/disklabel/Makefile

21 lines
502 B
Makefile
Raw Normal View History

2012-06-04 22:53:02 +04:00
# $NetBSD: Makefile,v 1.5 2012/06/04 18:53:03 joerg Exp $
HOSTPROGNAME= nbdisklabel-${MAKEWRAPPERMACHINE}
HOST_SRCDIR= sbin/disklabel
2012-06-04 22:53:02 +04:00
HOST_SRCS= disklabel.c bswap.c
NOMAN= # defined
.include <bsd.endian.mk>
.if ${TARGET_ENDIANNESS} == "1234"
CPPFLAGS+= -DTARGET_BYTE_ORDER=LITTLE_ENDIAN
.elif ${TARGET_ENDIANNESS} == "4321"
CPPFLAGS+= -DTARGET_BYTE_ORDER=BIG_ENDIAN
.endif
.include "${.CURDIR}/../Makefile.nbincludes"
.include "${.CURDIR}/../Makefile.host"
.PATH: ${.CURDIR}/../../lib/libc/gen