]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sys/modules/cxgbe/if_cxgbe/Makefile
MFC r317702, r317847, r318307
[FreeBSD/stable/10.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_ddb.h
14 SRCS+=  opt_inet.h
15 SRCS+=  opt_inet6.h
16 SRCS+=  opt_ofed.h
17 SRCS+=  pci_if.h
18 SRCS+=  t4_hw.c
19 SRCS+=  t4_l2t.c
20 SRCS+=  t4_main.c
21 SRCS+=  t4_mp_ring.c
22 SRCS+=  t4_netmap.c
23 SRCS+=  t4_sched.c
24 SRCS+=  t4_sge.c
25 SRCS+=  t4_tracer.c
26
27 # Provide the timestamp of a packet in its header mbuf.
28 #CFLAGS+= -DT4_PKT_TIMESTAMP
29
30 CFLAGS+= -I${CXGBE}
31
32 .if !defined(KERNBUILDDIR)
33 .if ${MK_INET_SUPPORT} != "no"
34 opt_inet.h:
35         @echo "#define INET 1" > ${.TARGET}
36         @echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
37 .endif
38
39 .if ${MK_INET6_SUPPORT} != "no"
40 opt_inet6.h:
41         @echo "#define INET6 1" > ${.TARGET}
42 .endif
43 .endif
44
45 .include <bsd.kmod.mk>
46 CFLAGS+= ${GCC_MS_EXTENSIONS}