1 1.47 shin # $NetBSD: Makefile,v 1.47 2003/11/02 02:52:58 shin 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.46 fvdl .if (${MACHINE} == "i386" || ${MACHINE} == "amd64") 11 1.30 drochner # recognize old partition ID for a while 12 1.30 drochner CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 13 1.36 soda # use MBR partition info 14 1.36 soda CPPFLAGS+= -DUSE_MBR 15 1.30 drochner .endif 16 1.9 hpeyerl 17 1.29 mark .if (${MACHINE} == "hp300") || (${MACHINE} == "vax") \ 18 1.29 mark || (${MACHINE} == "arm32") 19 1.28 christos CPPFLAGS+= -DNUMBOOT=1 20 1.31 pk .endif 21 1.31 pk 22 1.32 kleink # these have additional requirements on the alignment of a partition 23 1.31 pk .if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 24 1.31 pk || (${MACHINE} == "sun3") 25 1.31 pk CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 26 1.33 cgd .endif 27 1.33 cgd 28 1.40 minoura .if (${MACHINE} == "alpha") || (${MACHINE} == "x68k") 29 1.33 cgd # read in the old boot area even though we don't support writing the boot 30 1.33 cgd # area with disklabel(8). 31 1.33 cgd CPPFLAGS+= -DSAVEBOOTAREA 32 1.5 mycroft .endif 33 1.1 cgd 34 1.44 manu .if (${MACHINE} == "hpcmips") || (${MACHINE} == "arc") \ 35 1.44 manu || (${MACHINE} == "prep") || (${MACHINE} == "cobalt") \ 36 1.44 manu || (${MACHINE} == "macppc") || (${MACHINE} == "acorn26") \ 37 1.44 manu || (${MACHINE} == "evbarm") || (${MACHINE} == "hpcarm") \ 38 1.44 manu || (${MACHINE} == "netwinder") || (${MACHINE} == "acorn32") \ 39 1.47 shin || (${MACHINE} == "cats") || (${MACHINE} == "shark") \ 40 1.47 shin || (${MACHINE} == "playstation2") 41 1.34 shin # recognize old partition ID for a while 42 1.34 shin CPPFLAGS+= -DCOMPAT_386BSD_MBRPART 43 1.34 shin # use MBR partition info 44 1.34 shin CPPFLAGS+= -DUSE_MBR 45 1.35 shin # read in the old boot area even though we don't support writing the boot 46 1.35 shin # area with disklabel(8). 47 1.35 shin CPPFLAGS+= -DSAVEBOOTAREA 48 1.41 bjh21 .endif 49 1.41 bjh21 50 1.42 bjh21 .if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26") 51 1.41 bjh21 # Support FileCore boot block 52 1.41 bjh21 CPPFLAGS+= -DUSE_ACORN 53 1.34 shin .endif 54 1.34 shin 55 1.1 cgd .include <bsd.prog.mk> 56