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."
31 lines
553 B
Makefile
31 lines
553 B
Makefile
# $NetBSD: Makefile,v 1.43 2019/10/13 07:28:12 mrg Exp $
|
|
|
|
PROG= fdisk
|
|
SRCS= fdisk.c
|
|
|
|
MAN= fdisk.8
|
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
|
|
CPPFLAGS+= -DBOOTSEL
|
|
.if (${HOSTPROG:U} == "")
|
|
CPPFLAGS+= -DUSE_DISKLIST
|
|
.endif
|
|
.endif
|
|
|
|
.if ${MACHINE} == "arc"
|
|
CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rsd0d"'
|
|
.endif
|
|
|
|
.if ${MACHINE} == "netwinder"
|
|
CPPFLAGS+= -D_PATH_DEFDISK='"/dev/rwd0c"'
|
|
.endif
|
|
|
|
COPTS.fdisk.c+= ${GCC_NO_STRINGOP_TRUNCATION}
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.if (${HOSTPROG:U} == "")
|
|
DPADD+= ${LIBUTIL} ${LIBZ}
|
|
LDADD+= -lutil -lz
|
|
.endif
|