xref: /freebsd/sys/modules/cxgb/cxgb/Makefile (revision 09fe63205c597be4f762c7f3017e2854c121d6d1)
122a80c41SKip Macy# $FreeBSD$
222a80c41SKip Macy
3de21233fSUlrich Spörlein.include <bsd.own.mk>
4de21233fSUlrich Spörlein
522a80c41SKip MacyCXGB = ${.CURDIR}/../../../dev/cxgb
622a80c41SKip Macy.PATH: ${CXGB} ${CXGB}/common ${CXGB}/sys
722a80c41SKip Macy
822a80c41SKip MacyKMOD=	if_cxgb
922a80c41SKip MacySRCS=	cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c
10c01f2b83SNavdeep ParharSRCS+=	cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c cxgb_aq100x.c
11*09fe6320SNavdeep ParharSRCS+=  cxgb_sge.c cxgb_tn1010.c
12710ca673SBjoern A. ZeebSRCS+=	device_if.h bus_if.h pci_if.h
1347cfa99aSBjoern A. ZeebSRCS+=	opt_inet.h opt_inet6.h opt_zero.h opt_sched.h
143f345a5dSKip MacySRCS+=	uipc_mvec.c
1522a80c41SKip Macy
1679775f8fSKip MacyCFLAGS+= -g -DDEFAULT_JUMBO -I${CXGB}
1722a80c41SKip Macy
1847cfa99aSBjoern A. Zeeb.if !defined(KERNBUILDDIR)
1947cfa99aSBjoern A. Zeeb.if ${MK_INET_SUPPORT} != "no"
2047cfa99aSBjoern A. Zeebopt_inet.h:
2147cfa99aSBjoern A. Zeeb	@echo "#define INET 1" > ${.TARGET}
22*09fe6320SNavdeep Parhar	@echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
2347cfa99aSBjoern A. Zeeb.endif
2447cfa99aSBjoern A. Zeeb
2547cfa99aSBjoern A. Zeeb.if ${MK_INET6_SUPPORT} != "no"
2647cfa99aSBjoern A. Zeebopt_inet6.h:
2747cfa99aSBjoern A. Zeeb	@echo "#define INET6 1" > ${.TARGET}
2847cfa99aSBjoern A. Zeeb.endif
2947cfa99aSBjoern A. Zeeb.endif
3047cfa99aSBjoern A. Zeeb
3122a80c41SKip Macy.include <bsd.kmod.mk>
32