1 # $NetBSD: Makefile,v 1.61 2008/03/11 08:18:22 aymeric Exp $ 2 # @(#)Makefile 8.2 (Berkeley) 3/17/94 3 4 PROG= disklabel 5 SRCS= main.c dkcksum.c interact.c printlabel.c 6 MAN= disklabel.5 disklabel.8 7 .if (${HOSTPROG:U} == "") 8 DPADD+= ${LIBUTIL} 9 LDADD+= -lutil 10 .endif 11 12 # these have additional requirements on the alignment of a partition 13 .if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 14 || (${MACHINE} == "sun3") 15 CPPFLAGS+= -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 40 CPPFLAGS+= -DUSE_MBR 41 # recognize old MBR partition ID for a while 42 CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 43 .endif 44 45 .if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 46 # Support FileCore boot block 47 CPPFLAGS+= -DUSE_ACORN 48 .endif 49 50 .include <bsd.prog.mk> 51