1# $NetBSD: Makefile,v 1.62 2009/02/14 13:52:51 abs 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_ARCH} == "sparc") || (${MACHINE_ARCH} == "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} == "evbarm" \ 26 || ${MACHINE} == "hpcarm" \ 27 || ${MACHINE} == "hpcmips" \ 28 || ${MACHINE} == "hpcsh" \ 29 || ${MACHINE} == "i386" \ 30 || ${MACHINE} == "iyonix" \ 31 || ${MACHINE} == "landisk" \ 32 || ${MACHINE} == "macppc" \ 33 || ${MACHINE} == "netwinder" \ 34 || ${MACHINE} == "playstation2" \ 35 || ${MACHINE} == "prep" \ 36 || ${MACHINE} == "shark" \ 37 || ${MACHINE} == "zaurus" \ 38 ) 39# use MBR partition info 40CPPFLAGS+= -DUSE_MBR 41# recognize old MBR partition ID for a while 42CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 43.endif 44 45.if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 46# Support FileCore boot block 47CPPFLAGS+= -DUSE_ACORN 48.endif 49 50.include <bsd.prog.mk> 51