Sync usage with man page.
[netbsd-mini2440.git] / sbin / fsdb / Makefile
blob805b923107ccf2b54084520433a1ec4d7cbe173d
1 # $NetBSD: Makefile,v 1.25 2009/04/11 07:58:12 lukem Exp $
2 # @(#)Makefile 8.1 (Berkeley) 6/5/93
4 WARNS?= 3 # XXX: sign-compare issues in ../fsck_ffs
6 .include <bsd.own.mk>
8 PROG= fsdb
9 MAN= fsdb.8
10 SRCS= fsdb.c fsdbutil.c
11 SRCS+= dir.c inode.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
12 pass5.c setup.c utilities.c
13 SRCS+= ffs_bswap.c ffs_subr.c ffs_tables.c ffs_appleufs.c
14 SRCS+= fsutil.c partutil.c
16 FSCK= ${NETBSDSRCDIR}/sbin/fsck
17 FSCK_FFS=${NETBSDSRCDIR}/sbin/fsck_ffs
18 CPPFLAGS+= -I${FSCK} -I${FSCK_FFS}
19 .PATH: ${FSCK} ${FSCK_FFS} ${NETBSDSRCDIR}/sys/ufs/ffs
21 SRCS+= vfs_wapbl.c wapbl.c
22 .PATH: ${NETBSDSRCDIR}/sys/kern
23 CPPFLAGS+=-DWAPBL_DEBUG_PRINT=0
25 LDADD+= -lutil -ledit -ltermcap -lprop
26 .ifndef HOSTPROG
27 DPADD+= ${LIBUTIL} ${LIBEDIT} ${LIBTERMCAP} ${LIBPROP}
28 .endif
30 .if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
31 .for f in fsdb ffs_appleufs
32 COPTS.${f}.c+= -Wno-pointer-sign
33 .endfor
34 .endif
36 .if ${MACHINE_ARCH} == "m68000"
37 COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs
38 .endif
40 .include <bsd.prog.mk>