1#	$NetBSD: Makefile,v 1.21 2023/06/03 09:09:12 lukem Exp $
2#	@(#)Makefile	8.1 (Berkeley) 6/5/93
3
4#	lfs_inode.c		LFS filestore-specific routines
5#
6#	DEBUG			use local directory to find ddate and dumpdates
7#	TDEBUG			trace out the process forking
8
9WARNS?=	3	# XXX: sign-compare issues
10
11.include <bsd.own.mk>
12
13PROG=	dump_lfs
14LINKS=	${BINDIR}/dump_lfs ${BINDIR}/rdump_lfs
15CPPFLAGS+=-DRDUMP -I${.CURDIR} -I${NETBSDSRCDIR}/sbin/dump
16CPPFLAGS+=-DDUMP_LFS
17# CPPFLAGS+= -DDEBUG -DTDEBUG -DFDEBUG -DWRITEDEBUG -DSTATS -DDIAGNOSTICS
18SRCS=	itime.c main.c optr.c dumprmt.c rcache.c snapshot.c tape.c \
19	traverse.c unctime.c ffs_bswap.c lfs_inode.c
20MAN=	dump_lfs.8
21MLINKS+=dump_lfs.8 rdump_lfs.8
22#CFLAGS+=-g
23DPADD+= ${LIBUTIL}
24LDADD+= -lutil
25
26.if ${MACHINE_ARCH} == "m68000"
27COPTS.lfs_inode.c+=	-fno-tree-ter
28.endif
29
30.if ${MACHINE_ARCH} == "ia64"
31COPTS.lfs_inode.c+=	-O3
32.endif
33
34.PATH:  ${NETBSDSRCDIR}/sbin/dump ${NETBSDSRCDIR}/sys/ufs/lfs \
35    ${NETBSDSRCDIR}/sys/ufs/ffs
36
37CWARNFLAGS.gcc+=	${CC_WNO_FORMAT_TRUNCATION}
38
39.include <bsd.prog.mk>
40