opnsense-src/sys/modules/vnic/vnicvf/Makefile
Wojciech Macek f4aafb9ea6 Allow building VNIC as a module
Add directory structure and fix dependencies to be able to
build and use Cavium VNIC driver as a module.

Reviewed by:	zbb
Obtained from:	Semihalf
Sponsored by:	Cavium
Differential Revision:	https://reviews.freebsd.org/D6345
2016-05-20 11:00:06 +00:00

16 lines
332 B
Makefile

# $FreeBSD$
SYSDIR?=${.CURDIR}/../../..
.include "${SYSDIR}/conf/kern.opts.mk"
S= ${.CURDIR}/../../..
.PATH: $S/dev/vnic
KMOD= vnicvf
SRCS= nicvf_main.c nicvf_queues.c
SRCS+= opt_platform.h ofw_bus_if.h lmac_if.h miibus_if.h pci_if.h bus_if.h device_if.h opt_inet.h opt_inet6.h
CFLAGS+= -DFDT -DPCI_IOV
.include <bsd.kmod.mk>