a8ac39af81
dump(8)). This allows fsck_ffs -n to work on a snapshot of a R/W mounted filesystem, and avoid errors related to filesystem activity.
44 lines
978 B
Makefile
44 lines
978 B
Makefile
# $NetBSD: Makefile,v 1.38 2008/08/30 10:46:16 bouyer Exp $
|
|
# @(#)Makefile 8.2 (Berkeley) 4/27/95
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= fsck_ffs
|
|
MAN= fsck_ffs.8
|
|
SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
|
|
pass5.c fsutil.c setup.c utilities.c ffs_bswap.c ffs_subr.c \
|
|
ffs_tables.c ffs_appleufs.c partutil.c snapshot.c
|
|
|
|
FSCK= ${NETBSDSRCDIR}/sbin/fsck
|
|
DUMP= ${NETBSDSRCDIR}/sbin/dump
|
|
CPPFLAGS+=-I${FSCK} -I${DUMP}
|
|
.ifndef SMALLPROG
|
|
CPPFLAGS+=-DPROGRESS
|
|
.endif
|
|
SRCS+= progress.c
|
|
.PATH: ${FSCK}
|
|
|
|
.PATH: ${NETBSDSRCDIR}/sys/ufs/ffs ${FSCK} ${DUMP}
|
|
|
|
SRCS+= vfs_wapbl.c wapbl.c
|
|
.PATH: ${NETBSDSRCDIR}/sys/kern
|
|
CPPFLAGS+=-DWAPBL_DEBUG_PRINT=0
|
|
|
|
LDADD+=-lutil
|
|
DPADD+=${LIBUTIL}
|
|
|
|
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
|
|
COPTS.ffs_appleufs.c+= -Wno-pointer-sign
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "m68000"
|
|
COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs
|
|
.endif
|
|
|
|
.if make(install)
|
|
SUBDIR+=SMM.doc
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|
|
.include <bsd.subdir.mk>
|