# DF-2905 KLD Makefile — builds the real subr_mchain.c into the module.
# MODE=walk selects -DWALKTEST (record-walk correctness test).
# The subr_mchain.c placed next to this Makefile is either the pristine
# copy (variant "base") or the fixed copy (variant "fix"); build.sh
# arranges that.

KMOD=   mchainleak
SRCS=   mchain_leak.c subr_mchain.c

.if !empty(MODE:Mwalk)
CFLAGS+= -DWALKTEST
.endif

.include <bsd.kmod.mk>
