1 # $NetBSD: Makefile,v 1.64 2009/11/28 12:14:53 tsutsui 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_ARCH} == "sparc") || (${MACHINE_ARCH} == "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} == "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} == "playstation2" \ 38 || ${MACHINE} == "prep" \ 39 || ${MACHINE} == "shark" \ 40 || ${MACHINE} == "zaurus" \ 41 ) 42 # use MBR partition info 43 CPPFLAGS+= -DUSE_MBR 44 # recognize old MBR partition ID for a while 45 CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 46 .endif 47 48 .if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 49 # Support FileCore boot block 50 CPPFLAGS+= -DUSE_ACORN 51 .endif 52 53 .if (${MACHINE_ARCH} == "alpha") 54 # alpha requires boot block checksum 55 CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM 56 .endif 57 58 .if (${MACHINE_ARCH} == "vax") 59 # vax requires labels in alternative sectors on SMD disk 60 CPPFLAGS+= -DVAX_ALTLABELS 61 .endif 62 63 .include <bsd.prog.mk> 64