NetBSD/sbin/fsdb/Makefile

48 lines
1.0 KiB
Makefile
Raw Normal View History

2019-10-29 01:52:43 +03:00
# $NetBSD: Makefile,v 1.39 2019/10/28 22:52:43 christos Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
.include <bsd.own.mk>
PROG= fsdb
MAN= fsdb.8
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
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
FSCK= ${NETBSDSRCDIR}/sbin/fsck
FSCK_FFS=${NETBSDSRCDIR}/sbin/fsck_ffs
1997-10-10 23:47:50 +04:00
CPPFLAGS+= -I${FSCK} -I${FSCK_FFS}
.PATH: ${FSCK} ${FSCK_FFS} ${NETBSDSRCDIR}/sys/ufs/ffs
1997-10-10 23:47:50 +04:00
SRCS+= vfs_wapbl.c wapbl.c
.PATH: ${NETBSDSRCDIR}/sys/ufs/ufs
SRCS+= quota2_subr.c
.PATH: ${NETBSDSRCDIR}/sys/kern
CPPFLAGS+=-DWAPBL_DEBUG_PRINT=0
SRCS+= quota2.c
LDADD+= -lutil -ledit -lterminfo -lprop
.ifndef HOSTPROG
DPADD+= ${LIBUTIL} ${LIBEDIT} ${LIBTERMINFO} ${LIBPROP}
.endif
.for f in fsdb ffs_appleufs
COPTS.${f}.c+= -Wno-pointer-sign
.endfor
.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
.include <bsd.prog.mk>