1# $NetBSD: Makefile,v 1.66 2009/12/13 05:01:32 nakayama Exp $ 2# @(#)Makefile 8.2 (Berkeley) 3/17/94 3 4PROG= disklabel 5SRCS= main.c dkcksum.c interact.c printlabel.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 ( 0 \ 19 || ${MACHINE} == "acorn26" \ 20 || ${MACHINE} == "acorn32" \ 21 || ${MACHINE} == "amd64" \ 22 || ${MACHINE} == "arc" \ 23 || ${MACHINE} == "cats" \ 24 || ${MACHINE} == "cobalt" \ 25 || ${MACHINE} == "dreamcast" \ 26 || ${MACHINE} == "evbarm" \ 27 || ${MACHINE} == "evbsh3" \ 28 || ${MACHINE} == "hpcarm" \ 29 || ${MACHINE} == "hpcmips" \ 30 || ${MACHINE} == "hpcsh" \ 31 || ${MACHINE} == "i386" \ 32 || ${MACHINE} == "iyonix" \ 33 || ${MACHINE} == "landisk" \ 34 || ${MACHINE} == "macppc" \ 35 || ${MACHINE} == "mmeye" \ 36 || ${MACHINE} == "netwinder" \ 37 || ${MACHINE} == "prep" \ 38 || ${MACHINE} == "shark" \ 39 || ${MACHINE} == "zaurus" \ 40 ) 41# use MBR partition info 42CPPFLAGS+= -DUSE_MBR 43# recognize old MBR partition ID for a while 44CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 45.endif 46 47.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 48# Support FileCore boot block 49CPPFLAGS+= -DUSE_ACORN 50.endif 51 52.if (${MACHINE_ARCH} == "alpha") 53# alpha requires boot block checksum 54CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM 55.endif 56 57.if (${MACHINE_ARCH} == "vax") 58# vax requires labels in alternative sectors on SMD disk 59CPPFLAGS+= -DVAX_ALTLABELS 60.endif 61 62.include <bsd.prog.mk> 63