11.2Sskrll# $NetBSD: Makefile,v 1.2 2018/01/24 09:04:41 skrll Exp $ 21.1Schristos# Build a small disklabel (for tiny boot media) 31.1Schristos 41.1SchristosSRCDIR= ${.CURDIR}/../../../sbin/disklabel 51.1Schristos 61.1SchristosPROG= disklabel 71.1SchristosSRCS= main.c dkcksum.c printlabel.c 81.1Schristos#SRCS+= interact.c 91.1SchristosNOMAN= # defined 101.1Schristos 111.1SchristosCPPFLAGS+= -DNO_INTERACT 121.1SchristosCPPFLAGS+= -DNATIVELABEL_ONLY 131.1Schristos 141.1SchristosDPADD+= ${LIBUTIL} 151.1SchristosLDADD+= -lutil 161.1Schristos 171.1Schristos# these have additional requirements on the alignment of a partition 181.1Schristos.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 191.1Schristos || (${MACHINE} == "sun3") 201.1SchristosCPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 211.1Schristos.endif 221.1Schristos 231.2Sskrll.if ${MACHINE} == "acorn32" 241.1Schristos# Support FileCore boot block 251.1SchristosCPPFLAGS+= -DUSE_ACORN 261.1Schristos.endif 271.1Schristos 281.1Schristos.if (${MACHINE_ARCH} == "alpha") 291.1Schristos# alpha requires boot block checksum 301.1SchristosCPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM 311.1Schristos.endif 321.1Schristos 331.1Schristos.if (${MACHINE_ARCH} == "vax") 341.1Schristos# vax requires labels in alternative sectors on SMD disk 351.1SchristosCPPFLAGS+= -DVAX_ALTLABELS 361.1Schristos.endif 371.1Schristos 381.1Schristos.include <bsd.prog.mk> 391.1Schristos 401.1Schristos.PATH: ${SRCDIR} 41