]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/modules/mlxen/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / sys / modules / mlxen / Makefile
1 # $FreeBSD$
2 .PATH:  ${.CURDIR}/../../ofed/drivers/net/mlx4
3
4 .include <bsd.own.mk>
5
6 KMOD    = mlxen
7 SRCS    = device_if.h bus_if.h pci_if.h vnode_if.h
8 SRCS    += en_cq.c en_main.c en_netdev.c en_port.c en_resources.c
9 SRCS    += en_rx.c en_tx.c utils.c
10 SRCS    += opt_inet.h opt_inet6.h
11 CFLAGS+= -I${.CURDIR}/../../ofed/drivers/net/mlx4
12 CFLAGS+= -I${.CURDIR}/../../ofed/include/
13 CFLAGS+= -fms-extensions
14
15 .if !defined(KERNBUILDDIR)
16 .if ${MK_INET_SUPPORT} != "no"
17 opt_inet.h:
18         @echo "#define INET 1" > ${.TARGET}
19 .endif
20
21 .if ${MK_INET6_SUPPORT} != "no"
22 opt_inet6.h:
23         @echo "#define INET6 1" > ${.TARGET}
24 .endif
25 .endif
26
27 .include <bsd.kmod.mk>
28
29 CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}