opnsense-src/sys/modules/vnic/thunder_mdio/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
311 B
Makefile

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