]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/modules/mlx4/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sys / modules / mlx4 / Makefile
1 # $FreeBSD$
2 .PATH:  ${.CURDIR}/../../ofed/drivers/net/mlx4
3
4 .include <bsd.own.mk>
5
6 KMOD    = mlx4
7 SRCS    = device_if.h bus_if.h pci_if.h vnode_if.h
8 SRCS+=  alloc.c catas.c cmd.c cq.c eq.c fw.c icm.c intf.c main.c mcg.c mr.c
9 SRCS+=  pd.c port.c profile.c qp.c reset.c sense.c srq.c xrcd.c
10 SRCS+=  opt_inet.h opt_inet6.h
11
12 CFLAGS+= -I${.CURDIR}/../../ofed/drivers/net/mlx4
13 CFLAGS+= -I${.CURDIR}/../../ofed/include/
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 -fms-extensions