Home | History | Annotate | Line # | Download | only in disklabel
Makefile revision 1.47
      1 #	$NetBSD: Makefile,v 1.47 2003/11/02 02:52:58 shin Exp $
      2 #	@(#)Makefile	8.2 (Berkeley) 3/17/94
      3 
      4 PROG=	disklabel
      5 SRCS=	disklabel.c dkcksum.c interact.c printlabel.c
      6 MAN=	disklabel.5 disklabel.8
      7 LDADD+= -lutil
      8 DPADD+= ${LIBUTIL}
      9 
     10 .if (${MACHINE} == "i386" || ${MACHINE} == "amd64")
     11 # recognize old partition ID for a while
     12 CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
     13 # use MBR partition info
     14 CPPFLAGS+= -DUSE_MBR
     15 .endif
     16 
     17 .if (${MACHINE} == "hp300") || (${MACHINE} == "vax") \
     18 	|| (${MACHINE} == "arm32")
     19 CPPFLAGS+= -DNUMBOOT=1
     20 .endif
     21 
     22 # these have additional requirements on the alignment of a partition
     23 .if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
     24 	|| (${MACHINE} == "sun3")
     25 CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
     26 .endif
     27 
     28 .if (${MACHINE} == "alpha") || (${MACHINE} == "x68k")
     29 # read in the old boot area even though we don't support writing the boot
     30 # area with disklabel(8).
     31 CPPFLAGS+= -DSAVEBOOTAREA
     32 .endif
     33 
     34 .if (${MACHINE} == "hpcmips") || (${MACHINE} == "arc") \
     35 	|| (${MACHINE} == "prep") || (${MACHINE} == "cobalt") \
     36 	|| (${MACHINE} == "macppc") || (${MACHINE} == "acorn26") \
     37 	|| (${MACHINE} == "evbarm") || (${MACHINE} == "hpcarm") \
     38 	|| (${MACHINE} == "netwinder") || (${MACHINE} == "acorn32") \
     39 	|| (${MACHINE} == "cats") || (${MACHINE} == "shark") \
     40 	|| (${MACHINE} == "playstation2")
     41 # recognize old partition ID for a while
     42 CPPFLAGS+= -DCOMPAT_386BSD_MBRPART
     43 # use MBR partition info
     44 CPPFLAGS+= -DUSE_MBR
     45 # read in the old boot area even though we don't support writing the boot
     46 # area with disklabel(8).
     47 CPPFLAGS+= -DSAVEBOOTAREA
     48 .endif
     49 
     50 .if (${MACHINE} == "acorn32" || ${MACHINE} == "acorn26")
     51 # Support FileCore boot block
     52 CPPFLAGS+= -DUSE_ACORN
     53 .endif
     54 
     55 .include <bsd.prog.mk>
     56