1 # $NetBSD: Makefile,v 1.59 2006/09/01 21:44:02 uwe 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} == "i386" \ 29 || ${MACHINE} == "iyonix" \ 30 || ${MACHINE} == "landisk" \ 31 || ${MACHINE} == "macppc" \ 32 || ${MACHINE} == "netwinder" \ 33 || ${MACHINE} == "playstation2" \ 34 || ${MACHINE} == "prep" \ 35 || ${MACHINE} == "shark" \ 36 ) 37 # use MBR partition info 38 CPPFLAGS+= -DUSE_MBR 39 # recognize old MBR partition ID for a while 40 CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 41 .endif 42 43 .if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 44 # Support FileCore boot block 45 CPPFLAGS+= -DUSE_ACORN 46 .endif 47 48 .include <bsd.prog.mk> 49