]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/modules/cxgbe/if_cxgbe/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / sys / modules / cxgbe / if_cxgbe / Makefile
1 #
2 # $FreeBSD$
3 #
4
5 .include <bsd.own.mk>
6
7 CXGBE=  ${.CURDIR}/../../../dev/cxgbe
8 .PATH: ${CXGBE} ${CXGBE}/common
9
10 KMOD=   if_cxgbe
11 SRCS=   bus_if.h
12 SRCS+=  device_if.h
13 SRCS+=  opt_inet.h
14 SRCS+=  opt_inet6.h
15 SRCS+=  opt_ofed.h
16 SRCS+=  pci_if.h
17 SRCS+=  t4_hw.c
18 SRCS+=  t4_l2t.c
19 SRCS+=  t4_main.c
20 SRCS+=  t4_mp_ring.c
21 SRCS+=  t4_netmap.c
22 SRCS+=  t4_sge.c
23 SRCS+=  t4_tracer.c
24
25 # Provide the timestamp of a packet in its header mbuf.
26 #CFLAGS+= -DT4_PKT_TIMESTAMP
27
28 CFLAGS+= -I${CXGBE}
29
30 .if !defined(KERNBUILDDIR)
31 .if ${MK_INET_SUPPORT} != "no"
32 opt_inet.h:
33         @echo "#define INET 1" > ${.TARGET}
34         @echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
35 .endif
36
37 .if ${MK_INET6_SUPPORT} != "no"
38 opt_inet6.h:
39         @echo "#define INET6 1" > ${.TARGET}
40 .endif
41 .endif
42
43 .include <bsd.kmod.mk>
44 CFLAGS+= ${GCC_MS_EXTENSIONS}