1# $NetBSD: Makefile,v 1.68 2011/08/18 08:42:07 phx Exp $ 2# @(#)Makefile 8.2 (Berkeley) 3/17/94 3 4PROG= disklabel 5SRCS= main.c dkcksum.c interact.c printlabel.c 6MAN= disklabel.5 disklabel.8 7.if (${HOSTPROG:U} == "") 8DPADD+= ${LIBUTIL} 9LDADD+= -lutil 10.endif 11 12# these have additional requirements on the alignment of a partition 13.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 14 || (${MACHINE} == "sun3") 15CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 16.endif 17 18.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 19# Support FileCore boot block 20CPPFLAGS+= -DUSE_ACORN 21.endif 22 23.if (${MACHINE_ARCH} == "alpha") 24# alpha requires boot block checksum 25CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM 26.endif 27 28.if (${MACHINE_ARCH} == "vax") 29# vax requires labels in alternative sectors on SMD disk 30CPPFLAGS+= -DVAX_ALTLABELS 31.endif 32 33.include <bsd.prog.mk> 34