1# $NetBSD: Makefile,v 1.75 2023/06/03 09:09:12 lukem Exp $ 2# @(#)Makefile 8.2 (Berkeley) 3/17/94 3 4PROG= disklabel 5SRCS= main.c dkcksum.c interact.c printlabel.c bswap.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" 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 33COPTS.main.c+= ${CC_WNO_STRINGOP_TRUNCATION} 34COPTS.interact.c+= ${CC_WNO_STRINGOP_TRUNCATION} 35 36.include <bsd.prog.mk> 37