1 1.48 dsl # $NetBSD: Makefile,v 1.48 2003/11/08 09:25:01 dsl Exp $ 2 1.15 cgd # @(#)Makefile 8.2 (Berkeley) 3/17/94 3 1.1 cgd 4 1.1 cgd PROG= disklabel 5 1.39 lukem SRCS= disklabel.c dkcksum.c interact.c printlabel.c 6 1.12 cgd MAN= disklabel.5 disklabel.8 7 1.20 christos LDADD+= -lutil 8 1.20 christos DPADD+= ${LIBUTIL} 9 1.9 hpeyerl 10 1.32 kleink # these have additional requirements on the alignment of a partition 11 1.31 pk .if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 12 1.31 pk || (${MACHINE} == "sun3") 13 1.31 pk CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 14 1.33 cgd .endif 15 1.33 cgd 16 1.40 minoura .if (${MACHINE} == "alpha") || (${MACHINE} == "x68k") 17 1.33 cgd # read in the old boot area even though we don't support writing the boot 18 1.33 cgd # area with disklabel(8). 19 1.33 cgd CPPFLAGS+= -DSAVEBOOTAREA 20 1.5 mycroft .endif 21 1.1 cgd 22 1.44 manu .if (${MACHINE} == "hpcmips") || (${MACHINE} == "arc") \ 23 1.44 manu || (${MACHINE} == "prep") || (${MACHINE} == "cobalt") \ 24 1.44 manu || (${MACHINE} == "macppc") || (${MACHINE} == "acorn26") \ 25 1.44 manu || (${MACHINE} == "evbarm") || (${MACHINE} == "hpcarm") \ 26 1.44 manu || (${MACHINE} == "netwinder") || (${MACHINE} == "acorn32") \ 27 1.47 shin || (${MACHINE} == "cats") || (${MACHINE} == "shark") \ 28 1.48 dsl || (${MACHINE} == "i386") || (${MACHINE} == "amd64") \ 29 1.47 shin || (${MACHINE} == "playstation2") 30 1.34 shin # recognize old partition ID for a while 31 1.34 shin CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 32 1.34 shin # use MBR partition info 33 1.34 shin CPPFLAGS+= -DUSE_MBR 34 1.35 shin # read in the old boot area even though we don't support writing the boot 35 1.35 shin # area with disklabel(8). 36 1.35 shin CPPFLAGS+= -DSAVEBOOTAREA 37 1.41 bjh21 .endif 38 1.41 bjh21 39 1.42 bjh21 .if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 40 1.41 bjh21 # Support FileCore boot block 41 1.41 bjh21 CPPFLAGS+= -DUSE_ACORN 42 1.34 shin .endif 43 1.34 shin 44 1.1 cgd .include <bsd.prog.mk> 45