1# $NetBSD: Makefile,v 1.27 2010/02/03 15:34:44 roy Exp $ 2# @(#)Makefile 8.1 (Berkeley) 6/5/93 3 4WARNS?= 3 # XXX: sign-compare issues in ../fsck_ffs 5 6.include <bsd.own.mk> 7 8PROG= fsdb 9MAN= fsdb.8 10SRCS= fsdb.c fsdbutil.c 11SRCS+= dir.c inode.c pass1.c pass1b.c pass2.c pass3.c pass4.c \ 12 pass5.c setup.c utilities.c 13SRCS+= ffs_bswap.c ffs_subr.c ffs_tables.c ffs_appleufs.c 14SRCS+= fsutil.c partutil.c 15 16FSCK= ${NETBSDSRCDIR}/sbin/fsck 17FSCK_FFS=${NETBSDSRCDIR}/sbin/fsck_ffs 18CPPFLAGS+= -I${FSCK} -I${FSCK_FFS} 19.PATH: ${FSCK} ${FSCK_FFS} ${NETBSDSRCDIR}/sys/ufs/ffs 20 21SRCS+= vfs_wapbl.c wapbl.c 22.PATH: ${NETBSDSRCDIR}/sys/kern 23CPPFLAGS+=-DWAPBL_DEBUG_PRINT=0 24 25LDADD+= -lutil -ledit -lterminfo -lprop 26.ifndef HOSTPROG 27DPADD+= ${LIBUTIL} ${LIBEDIT} ${LIBTERMINFO} ${LIBPROP} 28.endif 29 30.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) 31.for f in fsdb ffs_appleufs 32COPTS.${f}.c+= -Wno-pointer-sign 33.endfor 34.endif 35 36.if ${MACHINE_ARCH} == "m68000" 37COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs 38.endif 39 40.include <bsd.prog.mk> 41