2019-10-29 01:52:43 +03:00
|
|
|
# $NetBSD: Makefile,v 1.39 2019/10/28 22:52:43 christos Exp $
|
1995-10-09 02:08:36 +03:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
|
|
|
2002-08-19 14:16:51 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1995-10-09 02:08:36 +03:00
|
|
|
PROG= fsdb
|
|
|
|
MAN= fsdb.8
|
1998-03-18 20:03:15 +03:00
|
|
|
SRCS= fsdb.c fsdbutil.c
|
|
|
|
SRCS+= dir.c inode.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
|
1996-09-28 23:30:35 +04:00
|
|
|
pass5.c setup.c utilities.c
|
2002-09-29 00:11:05 +04:00
|
|
|
SRCS+= ffs_bswap.c ffs_subr.c ffs_tables.c ffs_appleufs.c
|
2006-08-27 05:37:28 +04:00
|
|
|
SRCS+= fsutil.c partutil.c
|
1996-09-28 23:30:35 +04:00
|
|
|
|
2002-08-19 14:16:51 +04:00
|
|
|
FSCK= ${NETBSDSRCDIR}/sbin/fsck
|
|
|
|
FSCK_FFS=${NETBSDSRCDIR}/sbin/fsck_ffs
|
1997-10-10 23:47:50 +04:00
|
|
|
CPPFLAGS+= -I${FSCK} -I${FSCK_FFS}
|
2002-08-19 14:16:51 +04:00
|
|
|
.PATH: ${FSCK} ${FSCK_FFS} ${NETBSDSRCDIR}/sys/ufs/ffs
|
1997-10-10 23:47:50 +04:00
|
|
|
|
2008-07-31 09:38:04 +04:00
|
|
|
SRCS+= vfs_wapbl.c wapbl.c
|
2011-03-06 20:08:10 +03:00
|
|
|
|
|
|
|
.PATH: ${NETBSDSRCDIR}/sys/ufs/ufs
|
|
|
|
SRCS+= quota2_subr.c
|
|
|
|
|
2008-07-31 09:38:04 +04:00
|
|
|
.PATH: ${NETBSDSRCDIR}/sys/kern
|
|
|
|
CPPFLAGS+=-DWAPBL_DEBUG_PRINT=0
|
|
|
|
|
2011-03-06 20:08:10 +03:00
|
|
|
SRCS+= quota2.c
|
|
|
|
|
2010-02-03 18:34:37 +03:00
|
|
|
LDADD+= -lutil -ledit -lterminfo -lprop
|
2004-01-03 22:57:42 +03:00
|
|
|
.ifndef HOSTPROG
|
2010-02-03 18:34:37 +03:00
|
|
|
DPADD+= ${LIBUTIL} ${LIBEDIT} ${LIBTERMINFO} ${LIBPROP}
|
2004-01-03 22:57:42 +03:00
|
|
|
.endif
|
1995-10-09 02:08:36 +03:00
|
|
|
|
2006-05-12 03:16:28 +04:00
|
|
|
.for f in fsdb ffs_appleufs
|
|
|
|
COPTS.${f}.c+= -Wno-pointer-sign
|
|
|
|
.endfor
|
|
|
|
|
2008-05-04 19:37:19 +04:00
|
|
|
.if ${MACHINE_ARCH} == "m68000"
|
|
|
|
COPTS.pass1.c+= -fno-tree-fre -fno-tree-lrs
|
|
|
|
.endif
|
|
|
|
|
2016-03-24 00:43:33 +03:00
|
|
|
.if ${MACHINE_ARCH} == "vax"
|
|
|
|
COPTS.pass1.c+= -O0
|
2019-10-29 01:52:43 +03:00
|
|
|
COPTS.inode.c+= -O0
|
2016-03-24 00:43:33 +03:00
|
|
|
.endif
|
|
|
|
|
1995-10-09 02:08:36 +03:00
|
|
|
.include <bsd.prog.mk>
|