1 # $NetBSD: Makefile,v 1.2 2018/01/24 09:04:41 skrll Exp $ 2 # Build a small disklabel (for tiny boot media) 3 4 SRCDIR= ${.CURDIR}/../../../sbin/disklabel 5 6 PROG= disklabel 7 SRCS= main.c dkcksum.c printlabel.c 8 #SRCS+= interact.c 9 NOMAN= # defined 10 11 CPPFLAGS+= -DNO_INTERACT 12 CPPFLAGS+= -DNATIVELABEL_ONLY 13 14 DPADD+= ${LIBUTIL} 15 LDADD+= -lutil 16 17 # these have additional requirements on the alignment of a partition 18 .if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 19 || (${MACHINE} == "sun3") 20 CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 21 .endif 22 23 .if ${MACHINE} == "acorn32" 24 # Support FileCore boot block 25 CPPFLAGS+= -DUSE_ACORN 26 .endif 27 28 .if (${MACHINE_ARCH} == "alpha") 29 # alpha requires boot block checksum 30 CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM 31 .endif 32 33 .if (${MACHINE_ARCH} == "vax") 34 # vax requires labels in alternative sectors on SMD disk 35 CPPFLAGS+= -DVAX_ALTLABELS 36 .endif 37 38 .include <bsd.prog.mk> 39 40 .PATH: ${SRCDIR} 41