cb93b81028
right now. new address-of-packed-member and format-overflow warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd GCC_NO_FORMAT_OVERFLOW variables to remove these warnings. apply to a bunch of the tree. mostly, these are real bugs that should be fixed, but in many cases, only by removing the 'packed' attribute from some structure that doesn't really need it. (i looked at many different ones, and while perhaps 60-80% were already properly aligned, it wasn't clear to me that the uses were always coming from sane data vs network alignment, so it doesn't seem safe to remove packed without careful research for each affect struct.) clang already warned (and was not erroring) for many of these cases, but gcc picked up dozens more.
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.41 2020/09/06 07:20:27 mrg Exp $
|
|
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
|
|
# dump.h header file
|
|
# itime.c reads /etc/dumpdates
|
|
# main.c driver
|
|
# optr.c operator interface
|
|
# dumprmt.c handles remote tape via rmt(8)
|
|
# rcache.c read cache
|
|
# tape.c handles the mag tape and opening/closing
|
|
# traverse.c traverses the file system
|
|
# unctime.c undo ctime
|
|
# ffs_inode.c FFS-specific filestore routines
|
|
# ffs_bswap.c FFS byte-swapping
|
|
#
|
|
# DEBUG use local directory to find ddate and dumpdates
|
|
# TDEBUG trace out the process forking
|
|
# FDEBUG trace dumpdates parsing
|
|
# WRITEDEBUG trace slave writes
|
|
# STATS read cache statistics
|
|
# DIAGNOSTICS read cache diagnostic checks
|
|
|
|
WARNS?= 3 # XXX: sign-compare issues
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= dump
|
|
LINKS= ${BINDIR}/dump ${BINDIR}/rdump
|
|
CPPFLAGS+=-DRDUMP -I${.CURDIR}
|
|
# CPPFLAGS+= -DDEBUG -DTDEBUG -DFDEBUG -DWRITEDEBUG -DSTATS -DDIAGNOSTICS
|
|
SRCS= itime.c main.c optr.c dumprmt.c rcache.c snapshot.c tape.c \
|
|
traverse.c unctime.c ffs_inode.c ffs_bswap.c
|
|
MAN= dump.8
|
|
MLINKS+=dump.8 rdump.8
|
|
DPADD+= ${LIBUTIL}
|
|
LDADD+= -lutil
|
|
|
|
.PATH: ${NETBSDSRCDIR}/sys/ufs/ffs
|
|
|
|
COPTS.ffs_inode.c+= -Wno-pointer-sign
|
|
COPTS.traverse.c+= ${GCC_NO_FORMAT_TRUNCATION}
|
|
CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER}
|
|
CWARNFLAGS.gcc+= ${GCC_NO_FORMAT_TRUNCATION}
|
|
|
|
.include <bsd.prog.mk>
|