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