# Standalone Makefile to build the netgraph7 ng_ipfw module
# from its in-tree source (sys/netgraph7/ng_ipfw.c). The module
# is NOT built by default (gated on `optional netgraph7_ipfw` in
# sys/conf/files and absent from sys/netgraph7/Makefile SUBDIR).
#
# This Makefile exists only so the DF-0735 PoC can compile the
# *unchanged* cited source into a loadable module to demonstrate
# the wrong-context call it makes.
#
# Build:  make -m /usr/share/mk          (in-guest, with /usr/src present)

KMOD=	ng_ipfw
SRCS=	ng_ipfw.c

.PATH:  ${.CURDIR}

# Default DragonFly module build environment picks up include paths
# from /usr/src/sys; we point SYSDIR at the in-guest source.
SYSDIR?=	/usr/src/sys

.include <bsd.kmod.mk>
