]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/ofed/drivers/net/mlx4/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / sys / ofed / drivers / net / mlx4 / Makefile
1 # $FreeBSD$
2 #.PATH:  ${.CURDIR}/../../ofed/drivers/net/mlx4:${.CURDIR}/../../ofed/include/linux
3 .PATH:  ${.CURDIR}/../../../../../include/linux
4
5 .include <bsd.own.mk>
6
7
8 KMOD    = mlx4
9 SRCS    = device_if.h bus_if.h pci_if.h vnode_if.h 
10 SRCS+=  alloc.c catas.c cmd.c cq.c eq.c fw.c icm.c intf.c main.c mcg.c mr.c linux_compat.c linux_radix.c
11 SRCS+=  pd.c port.c profile.c qp.c reset.c sense.c srq.c resource_tracker.c sys_tune.c
12 SRCS+=  opt_inet.h opt_inet6.h
13
14
15 #CFLAGS+= -I${.CURDIR}/../../ofed/drivers/net/mlx4
16 #CFLAGS+= -I${.CURDIR}/../../ofed/include/
17 CFLAGS+= -I${.CURDIR}/../../../../../include
18
19 .if !defined(KERNBUILDDIR)
20 .if ${MK_INET_SUPPORT} != "no"
21 opt_inet.h:
22         @echo "#define INET 1" > ${.TARGET}
23 .endif
24
25 .if ${MK_INET6_SUPPORT} != "no"
26 opt_inet6.h:
27         @echo "#define INET6 1" > ${.TARGET}
28 .endif
29 .endif
30
31 .include <bsd.kmod.mk>
32
33 CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}