xref: /freebsd/sys/modules/cxgb/cxgb/Makefile (revision de21233f45ddb25c3587d897fb057886c328d402)
122a80c41SKip Macy# $FreeBSD$
222a80c41SKip Macy
3*de21233fSUlrich Spörlein.include <bsd.own.mk>
4*de21233fSUlrich 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
1125292debSKip MacySRCS+=  cxgb_sge.c cxgb_offload.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}
2247cfa99aSBjoern A. Zeeb.endif
2347cfa99aSBjoern A. Zeeb
2447cfa99aSBjoern A. Zeeb.if ${MK_INET6_SUPPORT} != "no"
2547cfa99aSBjoern A. Zeebopt_inet6.h:
2647cfa99aSBjoern A. Zeeb	@echo "#define INET6 1" > ${.TARGET}
2747cfa99aSBjoern A. Zeeb.endif
2847cfa99aSBjoern A. Zeeb.endif
2947cfa99aSBjoern A. Zeeb
3022a80c41SKip Macy.include <bsd.kmod.mk>
31