1 # $NetBSD: Makefile,v 1.56 2005/06/17 21:20:18 dsl 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 LDADD+= -lutil 8 DPADD+= ${LIBUTIL} 9 10 # these have additional requirements on the alignment of a partition 11 .if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 12 || (${MACHINE} == "sun3") 13 CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 14 .endif 15 16 .if (${MACHINE} == "alpha") || (${MACHINE} == "x68k") || (${MACHINE} == "hp700") 17 # preserve the non-disklabel portions of the first 8KB of the disk 18 CPPFLAGS+= -DSAVEBOOTAREA 19 .endif 20 21 .if ( 0 \ 22 || ${MACHINE} == "acorn26" \ 23 || ${MACHINE} == "acorn32" \ 24 || ${MACHINE} == "amd64" \ 25 || ${MACHINE} == "arc" \ 26 || ${MACHINE} == "cats" \ 27 || ${MACHINE} == "cobalt" \ 28 || ${MACHINE} == "evbarm" \ 29 || ${MACHINE} == "hpcarm" \ 30 || ${MACHINE} == "hpcmips" \ 31 || ${MACHINE} == "i386" \ 32 || ${MACHINE} == "iyonix" \ 33 || ${MACHINE} == "macppc" \ 34 || ${MACHINE} == "netwinder" \ 35 || ${MACHINE} == "playstation2" \ 36 || ${MACHINE} == "prep" \ 37 || ${MACHINE} == "shark" \ 38 ) 39 # use MBR partition info 40 CPPFLAGS+= -DUSE_MBR 41 # preserve the non-disklabel portions of the first 8KB of the disk 42 CPPFLAGS+= -DSAVEBOOTAREA 43 # recognize old MBR partition ID for a while 44 CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 45 .endif 46 47 .if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 48 # Support FileCore boot block 49 CPPFLAGS+= -DUSE_ACORN 50 .endif 51 52 .include <bsd.prog.mk> 53