# DF-3426 rig: build the production netmap KLD from a copied tree.
# Identical to sys/net/netmap/Makefile except:
#   + wna_shim.c          (WNA side-table, tree has no if_unused7)
#   + -include wna_shim.h (defines WNA before netmap_kern.h:745 picks it up)
#   + -DRIG_TRACE         (adds kprintf diagnostics only; no logic change)
KMOD	= netmap
SRCS	= device_if.h bus_if.h opt_netmap.h
SRCS	+= netmap.c
SRCS	+= netmap_mem2.c
SRCS	+= netmap_generic.c
SRCS	+= netmap_mbq.c
SRCS	+= netmap_vale.c
SRCS	+= netmap_freebsd.c
SRCS	+= wna_shim.c
# sys/conf/kmod.mk:98 resets CFLAGS=, so the shim flags go via COPTS
COPTS	+= -include ${.CURDIR}/wna_shim.h
COPTS	+= -DRIG_TRACE

.include <bsd.kmod.mk>
