Makefile revision 1.71
1# $NetBSD: Makefile,v 1.71 2016/01/31 18:57:29 christos Exp $ 2# Build a small disklabel (for tiny boot media) 3 4SRCDIR= ${.CURDIR}/../../../sbin/disklabel 5 6PROG= disklabel 7SRCS= main.c dkcksum.c printlabel.c 8#SRCS+= interact.c 9NOMAN= # defined 10 11CPPFLAGS+= -DNO_INTERACT 12CPPFLAGS+= -DNATIVELABEL_ONLY 13 14DPADD+= ${LIBUTIL} 15LDADD+= -lutil 16 17# these have additional requirements on the alignment of a partition 18.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 19 || (${MACHINE} == "sun3") 20CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 21.endif 22 23.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 24# Support FileCore boot block 25CPPFLAGS+= -DUSE_ACORN 26.endif 27 28.if (${MACHINE_ARCH} == "alpha") 29# alpha requires boot block checksum 30CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM 31.endif 32 33.if (${MACHINE_ARCH} == "vax") 34# vax requires labels in alternative sectors on SMD disk 35CPPFLAGS+= -DVAX_ALTLABELS 36.endif 37 38.include <bsd.prog.mk> 39 40.PATH: ${SRCDIR} 41# $NetBSD: Makefile,v 1.71 2016/01/31 18:57:29 christos Exp $ 42# @(#)Makefile 8.2 (Berkeley) 3/17/94 43 44PROG= disklabel 45SRCS= main.c dkcksum.c interact.c printlabel.c bswap.c 46MAN= disklabel.5 disklabel.8 47.if (${HOSTPROG:U} == "") 48DPADD+= ${LIBUTIL} 49LDADD+= -lutil 50.endif 51 52# these have additional requirements on the alignment of a partition 53.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 54 || (${MACHINE} == "sun3") 55CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 56.endif 57 58.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 59# Support FileCore boot block 60CPPFLAGS+= -DUSE_ACORN 61.endif 62 63.if (${MACHINE_ARCH} == "alpha") 64# alpha requires boot block checksum 65CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM 66.endif 67 68.if (${MACHINE_ARCH} == "vax") 69# vax requires labels in alternative sectors on SMD disk 70CPPFLAGS+= -DVAX_ALTLABELS 71.endif 72 73.include <bsd.prog.mk> 74