xref: /netbsd-src/sbin/dump_lfs/Makefile (revision 96230fab84e26a6435963032070e916a951a8b2e)
1#	$NetBSD: Makefile,v 1.9 2008/04/27 03:06:46 tsutsui 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
9.include <bsd.own.mk>
10
11PROG=	dump_lfs
12LINKS=	${BINDIR}/dump_lfs ${BINDIR}/rdump_lfs
13CPPFLAGS+=-DRDUMP -I${.CURDIR} -I${NETBSDSRCDIR}/sbin/dump
14CPPFLAGS+=-DDUMP_LFS
15# CPPFLAGS+= -DDEBUG -DTDEBUG -DFDEBUG -DWRITEDEBUG -DSTATS -DDIAGNOSTICS
16SRCS=	itime.c main.c optr.c dumprmt.c rcache.c snapshot.c tape.c \
17	traverse.c unctime.c ffs_bswap.c lfs_inode.c
18MAN=	dump_lfs.8
19MLINKS+=dump_lfs.8 rdump_lfs.8
20CFLAGS+=-g
21
22.if ${MACHINE_ARCH} == "m68000"
23COPTS.lfs_inode.c+=	-fno-tree-ter
24.endif
25
26.PATH:  ${NETBSDSRCDIR}/sbin/dump ${NETBSDSRCDIR}/sys/ufs/lfs \
27	${NETBSDSRCDIR}/sys/ufs/ffs
28
29.include <bsd.prog.mk>
30