110b59a9bSPeter Grehan# 210b59a9bSPeter Grehan# $FreeBSD$ 310b59a9bSPeter Grehan# 410b59a9bSPeter Grehan# Redistribution and use in source and binary forms, with or without 510b59a9bSPeter Grehan# modification, are permitted provided that the following conditions 610b59a9bSPeter Grehan# are met: 710b59a9bSPeter Grehan# 1. Redistributions of source code must retain the above copyright 810b59a9bSPeter Grehan# notice, this list of conditions and the following disclaimer. 910b59a9bSPeter Grehan# 2. Redistributions in binary form must reproduce the above copyright 1010b59a9bSPeter Grehan# notice, this list of conditions and the following disclaimer in the 1110b59a9bSPeter Grehan# documentation and/or other materials provided with the distribution. 1210b59a9bSPeter Grehan# 1310b59a9bSPeter Grehan# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1410b59a9bSPeter Grehan# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1510b59a9bSPeter Grehan# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1610b59a9bSPeter Grehan# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1710b59a9bSPeter Grehan# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1810b59a9bSPeter Grehan# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1910b59a9bSPeter Grehan# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2010b59a9bSPeter Grehan# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2110b59a9bSPeter Grehan# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2210b59a9bSPeter Grehan# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2310b59a9bSPeter Grehan# SUCH DAMAGE. 2410b59a9bSPeter Grehan# 2510b59a9bSPeter Grehan 26*8f3600b1SBryan Venteicher.include <bsd.own.mk> 27*8f3600b1SBryan Venteicher 2810b59a9bSPeter Grehan.PATH: ${.CURDIR}/../../../dev/virtio/network 2910b59a9bSPeter Grehan 3010b59a9bSPeter GrehanKMOD= if_vtnet 3110b59a9bSPeter GrehanSRCS= if_vtnet.c 3210b59a9bSPeter GrehanSRCS+= virtio_bus_if.h virtio_if.h 3310b59a9bSPeter GrehanSRCS+= bus_if.h device_if.h 34*8f3600b1SBryan VenteicherSRCS+= opt_inet.h opt_inet6.h 3510b59a9bSPeter Grehan 3610b59a9bSPeter GrehanMFILES= kern/bus_if.m kern/device_if.m \ 3710b59a9bSPeter Grehan dev/virtio/virtio_bus_if.m dev/virtio/virtio_if.m 3810b59a9bSPeter Grehan 39*8f3600b1SBryan Venteicher.if !defined(KERNBUILDDIR) 40*8f3600b1SBryan Venteicher.if ${MK_INET_SUPPORT} != "no" 41*8f3600b1SBryan Venteicheropt_inet.h: 42*8f3600b1SBryan Venteicher @echo "#define INET 1" > ${.TARGET} 43*8f3600b1SBryan Venteicher.endif 44*8f3600b1SBryan Venteicher 45*8f3600b1SBryan Venteicher.if ${MK_INET6_SUPPORT} != "no" 46*8f3600b1SBryan Venteicheropt_inet6.h: 47*8f3600b1SBryan Venteicher @echo "#define INET6 1" > ${.TARGET} 48*8f3600b1SBryan Venteicher.endif 49*8f3600b1SBryan Venteicher.endif 50*8f3600b1SBryan Venteicher 5110b59a9bSPeter Grehan.include <bsd.kmod.mk> 52