2008-08-29 04:02:21 +04:00
|
|
|
# $NetBSD: Makefile,v 1.14 2008/08/29 00:02:23 gmcgarry Exp $
|
1997-06-11 15:21:39 +04:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
|
|
|
2002-08-19 14:16:51 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1997-06-11 15:21:39 +04:00
|
|
|
PROG= fsck_ext2fs
|
|
|
|
MAN= fsck_ext2fs.8
|
|
|
|
SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
|
2000-01-28 19:01:46 +03:00
|
|
|
pass5.c fsutil.c setup.c utilities.c ext2fs_bswap.c
|
2002-08-19 14:16:51 +04:00
|
|
|
FSCK= ${NETBSDSRCDIR}/sbin/fsck
|
1997-10-10 23:47:50 +04:00
|
|
|
CPPFLAGS+= -I${FSCK}
|
2002-08-19 14:16:51 +04:00
|
|
|
.PATH: ${NETBSDSRCDIR}/sys/ufs/ext2fs ${FSCK}
|
1997-06-11 15:21:39 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
2006-05-12 03:16:28 +04:00
|
|
|
|
2006-08-26 22:14:28 +04:00
|
|
|
LDADD+=-lutil
|
|
|
|
DPADD+=${LIBUTIL}
|
|
|
|
|
2008-08-29 04:02:21 +04:00
|
|
|
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
|
2006-05-12 03:16:28 +04:00
|
|
|
.for f in pass5 utilities
|
|
|
|
COPTS.${f}.c+= -Wno-pointer-sign
|
|
|
|
.endfor
|
|
|
|
.endif
|