1227652Sgrehan# 2227652Sgrehan# $FreeBSD: releng/10.2/sys/modules/virtio/network/Makefile 255112 2013-09-01 04:33:47Z bryanv $ 3227652Sgrehan# 4227652Sgrehan# Redistribution and use in source and binary forms, with or without 5227652Sgrehan# modification, are permitted provided that the following conditions 6227652Sgrehan# are met: 7227652Sgrehan# 1. Redistributions of source code must retain the above copyright 8227652Sgrehan# notice, this list of conditions and the following disclaimer. 9227652Sgrehan# 2. Redistributions in binary form must reproduce the above copyright 10227652Sgrehan# notice, this list of conditions and the following disclaimer in the 11227652Sgrehan# documentation and/or other materials provided with the distribution. 12227652Sgrehan# 13227652Sgrehan# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14227652Sgrehan# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15227652Sgrehan# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16227652Sgrehan# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17227652Sgrehan# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18227652Sgrehan# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19227652Sgrehan# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20227652Sgrehan# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21227652Sgrehan# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22227652Sgrehan# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23227652Sgrehan# SUCH DAMAGE. 24227652Sgrehan# 25227652Sgrehan 26255112Sbryanv.include <bsd.own.mk> 27255112Sbryanv 28227652Sgrehan.PATH: ${.CURDIR}/../../../dev/virtio/network 29227652Sgrehan 30227652SgrehanKMOD= if_vtnet 31227652SgrehanSRCS= if_vtnet.c 32227652SgrehanSRCS+= virtio_bus_if.h virtio_if.h 33227652SgrehanSRCS+= bus_if.h device_if.h 34255112SbryanvSRCS+= opt_inet.h opt_inet6.h 35227652Sgrehan 36227652SgrehanMFILES= kern/bus_if.m kern/device_if.m \ 37227652Sgrehan dev/virtio/virtio_bus_if.m dev/virtio/virtio_if.m 38227652Sgrehan 39255112Sbryanv.if !defined(KERNBUILDDIR) 40255112Sbryanv.if ${MK_INET_SUPPORT} != "no" 41255112Sbryanvopt_inet.h: 42255112Sbryanv @echo "#define INET 1" > ${.TARGET} 43255112Sbryanv.endif 44255112Sbryanv 45255112Sbryanv.if ${MK_INET6_SUPPORT} != "no" 46255112Sbryanvopt_inet6.h: 47255112Sbryanv @echo "#define INET6 1" > ${.TARGET} 48255112Sbryanv.endif 49255112Sbryanv.endif 50255112Sbryanv 51227652Sgrehan.include <bsd.kmod.mk> 52