1 1.75 lukem # $NetBSD: Makefile,v 1.75 2023/06/03 09:09:12 lukem Exp $ 2 1.15 cgd # @(#)Makefile 8.2 (Berkeley) 3/17/94 3 1.1 cgd 4 1.1 cgd PROG= disklabel 5 1.70 matt SRCS= main.c dkcksum.c interact.c printlabel.c bswap.c 6 1.12 cgd MAN= disklabel.5 disklabel.8 7 1.57 fvdl .if (${HOSTPROG:U} == "") 8 1.57 fvdl DPADD+= ${LIBUTIL} 9 1.20 christos LDADD+= -lutil 10 1.57 fvdl .endif 11 1.9 hpeyerl 12 1.32 kleink # these have additional requirements on the alignment of a partition 13 1.66 nakayama .if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \ 14 1.31 pk || (${MACHINE} == "sun3") 15 1.31 pk CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT 16 1.33 cgd .endif 17 1.33 cgd 18 1.73 skrll .if ${MACHINE} == "acorn32" 19 1.41 bjh21 # Support FileCore boot block 20 1.41 bjh21 CPPFLAGS+= -DUSE_ACORN 21 1.34 shin .endif 22 1.34 shin 23 1.64 tsutsui .if (${MACHINE_ARCH} == "alpha") 24 1.64 tsutsui # alpha requires boot block checksum 25 1.64 tsutsui CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM 26 1.64 tsutsui .endif 27 1.64 tsutsui 28 1.64 tsutsui .if (${MACHINE_ARCH} == "vax") 29 1.64 tsutsui # vax requires labels in alternative sectors on SMD disk 30 1.64 tsutsui CPPFLAGS+= -DVAX_ALTLABELS 31 1.64 tsutsui .endif 32 1.64 tsutsui 33 1.75 lukem COPTS.main.c+= ${CC_WNO_STRINGOP_TRUNCATION} 34 1.75 lukem COPTS.interact.c+= ${CC_WNO_STRINGOP_TRUNCATION} 35 1.74 mrg 36 1.1 cgd .include <bsd.prog.mk> 37