Makefile revision 318851
1#
2# $FreeBSD: stable/10/sys/modules/cxgbe/if_cxgbe/Makefile 318851 2017-05-25 01:43:28Z np $
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_sched.c
24SRCS+=	t4_sge.c
25SRCS+=	t4_tracer.c
26
27# Provide the timestamp of a packet in its header mbuf.
28#CFLAGS+= -DT4_PKT_TIMESTAMP
29
30CFLAGS+= -I${CXGBE}
31
32.if !defined(KERNBUILDDIR)
33.if ${MK_INET_SUPPORT} != "no"
34opt_inet.h:
35	@echo "#define INET 1" > ${.TARGET}
36	@echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
37.endif
38
39.if ${MK_INET6_SUPPORT} != "no"
40opt_inet6.h:
41	@echo "#define INET6 1" > ${.TARGET}
42.endif
43.endif
44
45.include <bsd.kmod.mk>
46CFLAGS+= ${GCC_MS_EXTENSIONS}
47