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