de11d87641
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
37 lines
910 B
Makefile
37 lines
910 B
Makefile
# $NetBSD: Makefile,v 1.74 2019/10/13 07:28:12 mrg Exp $
|
|
# @(#)Makefile 8.2 (Berkeley) 3/17/94
|
|
|
|
PROG= disklabel
|
|
SRCS= main.c dkcksum.c interact.c printlabel.c bswap.c
|
|
MAN= disklabel.5 disklabel.8
|
|
.if (${HOSTPROG:U} == "")
|
|
DPADD+= ${LIBUTIL}
|
|
LDADD+= -lutil
|
|
.endif
|
|
|
|
# these have additional requirements on the alignment of a partition
|
|
.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
|
|
|| (${MACHINE} == "sun3")
|
|
CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
|
|
.endif
|
|
|
|
.if ${MACHINE} == "acorn32"
|
|
# Support FileCore boot block
|
|
CPPFLAGS+= -DUSE_ACORN
|
|
.endif
|
|
|
|
.if (${MACHINE_ARCH} == "alpha")
|
|
# alpha requires boot block checksum
|
|
CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM
|
|
.endif
|
|
|
|
.if (${MACHINE_ARCH} == "vax")
|
|
# vax requires labels in alternative sectors on SMD disk
|
|
CPPFLAGS+= -DVAX_ALTLABELS
|
|
.endif
|
|
|
|
COPTS.main.c+= ${GCC_NO_STRINGOP_TRUNCATION}
|
|
COPTS.interact.c+= ${GCC_NO_STRINGOP_TRUNCATION}
|
|
|
|
.include <bsd.prog.mk>
|