Home | History | Annotate | Line # | Download | only in disklabel
      1 #	$NetBSD: Makefile,v 1.75 2023/06/03 09:09:12 lukem Exp $
      2 #	@(#)Makefile	8.2 (Berkeley) 3/17/94
      3 
      4 PROG=	disklabel
      5 SRCS=	main.c dkcksum.c interact.c printlabel.c bswap.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} == "sparc") || (${MACHINE} == "sparc64") \
     14 	|| (${MACHINE} == "sun3")
     15 CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
     16 .endif
     17 
     18 .if ${MACHINE} == "acorn32"
     19 # Support FileCore boot block
     20 CPPFLAGS+= -DUSE_ACORN
     21 .endif
     22 
     23 .if (${MACHINE_ARCH} == "alpha")
     24 # alpha requires boot block checksum
     25 CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM
     26 .endif
     27 
     28 .if (${MACHINE_ARCH} == "vax")
     29 # vax requires labels in alternative sectors on SMD disk
     30 CPPFLAGS+= -DVAX_ALTLABELS
     31 .endif
     32 
     33 COPTS.main.c+=		${CC_WNO_STRINGOP_TRUNCATION}
     34 COPTS.interact.c+=	${CC_WNO_STRINGOP_TRUNCATION}
     35 
     36 .include <bsd.prog.mk>
     37