14e7dc6ecSLuigi Rizzo# $FreeBSD$ 24e7dc6ecSLuigi Rizzo# 34e7dc6ecSLuigi Rizzo# Compile netmap as a module, useful if you want a netmap bridge 44e7dc6ecSLuigi Rizzo# or loadable drivers. 54e7dc6ecSLuigi Rizzo 68346f888SWarner LoshSYSDIR?=${SRCTOP}/sys 78346f888SWarner Losh.include "${SYSDIR}/conf/kern.opts.mk" 837e3a6d3SLuigi Rizzo 98346f888SWarner Losh.PATH: ${SYSDIR}/dev/netmap 108346f888SWarner Losh.PATH.h: ${SYSDIR}/net 118346f888SWarner LoshCFLAGS += -I${SYSDIR}/ -D INET 124e7dc6ecSLuigi RizzoKMOD = netmap 1337e3a6d3SLuigi RizzoSRCS = device_if.h bus_if.h pci_if.h opt_netmap.h 144e7dc6ecSLuigi RizzoSRCS += netmap.c netmap.h netmap_kern.h 15f9790aebSLuigi RizzoSRCS += netmap_mem2.c netmap_mem2.h 16f9790aebSLuigi RizzoSRCS += netmap_generic.c 17f9790aebSLuigi RizzoSRCS += netmap_mbq.c netmap_mbq.h 18f9790aebSLuigi RizzoSRCS += netmap_vale.c 19f9790aebSLuigi RizzoSRCS += netmap_freebsd.c 20f0ea3689SLuigi RizzoSRCS += netmap_offloadings.c 21f0ea3689SLuigi RizzoSRCS += netmap_pipe.c 2289b95481SLuigi RizzoSRCS += netmap_monitor.c 2337e3a6d3SLuigi RizzoSRCS += netmap_pt.c 24*2ff91c17SVincenzo MaffioneSRCS += netmap_legacy.c 2537e3a6d3SLuigi RizzoSRCS += if_ptnet.c 2637e3a6d3SLuigi RizzoSRCS += opt_inet.h opt_inet6.h 274e7dc6ecSLuigi Rizzo 284e7dc6ecSLuigi Rizzo.include <bsd.kmod.mk> 29