]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/modules/cxgbe/if_cxgbe/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.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 = t4_main.c t4_sge.c t4_l2t.c t4_tracer.c
12 SRCS+= t4_hw.c
13 SRCS+= device_if.h bus_if.h pci_if.h
14 SRCS+= opt_inet.h opt_inet6.h
15 SRCS+= opt_ofed.h
16
17 CFLAGS+= -I${CXGBE}
18
19 # Provide the timestamp of a packet in its header mbuf.
20 #CFLAGS+= -DT4_PKT_TIMESTAMP
21
22 .if !defined(KERNBUILDDIR)
23 .if ${MK_INET_SUPPORT} != "no"
24 opt_inet.h:
25         @echo "#define INET 1" > ${.TARGET}
26         @echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
27 .endif
28
29 .if ${MK_INET6_SUPPORT} != "no"
30 opt_inet6.h:
31         @echo "#define INET6 1" > ${.TARGET}
32 .endif
33 .endif
34
35 .include <bsd.kmod.mk>