122a80c41SKip Macy# $FreeBSD$ 222a80c41SKip Macy 322a80c41SKip MacyCXGB = ${.CURDIR}/../../../dev/cxgb 422a80c41SKip Macy.PATH: ${CXGB} ${CXGB}/common ${CXGB}/sys 522a80c41SKip Macy 622a80c41SKip MacyKMOD= if_cxgb 722a80c41SKip MacySRCS= cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c 822a80c41SKip MacySRCS+= cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c 922a80c41SKip MacySRCS+= cxgb_sge.c cxgb_lro.c cxgb_offload.c cxgb_l2t.c 1022a80c41SKip MacySRCS+= device_if.h bus_if.h pci_if.h opt_zero.h opt_sched.h 118090c9f5SKip MacySRCS+= uipc_mvec.c cxgb_support.c 129c76da33SKip MacySRCS+= cxgb_multiq.c 1322a80c41SKip Macy 1422a80c41SKip MacyCFLAGS+= -DCONFIG_CHELSIO_T3_CORE -g -DCONFIG_DEFINED -DDEFAULT_JUMBO -I${CXGB} -DSMP 158090c9f5SKip Macy#CFLAGS+= -DDISABLE_MBUF_IOVEC 1622a80c41SKip Macy#CFLAGS+= -DIFNET_MULTIQUEUE 1722a80c41SKip Macy#CFLAGS+= -DINVARIANT_SUPPORT -DINVARIANTS 1822a80c41SKip Macy#CFLAGS+= -DWITNESS 1922a80c41SKip Macy#CFLAGS+= -DDEBUG -DDEBUG_PRINT 2022a80c41SKip Macy 2122a80c41SKip Macy 2222a80c41SKip Macy.if ${MACHINE_ARCH} != "ia64" 2322a80c41SKip Macy# ld is broken on ia64 2422a80c41SKip Macyt3fw-4.7.0.bin: ${CXGB}/t3fw-4.7.0.bin.gz.uu 2522a80c41SKip Macy uudecode -p < ${CXGB}/t3fw-4.7.0.bin.gz.uu \ 2622a80c41SKip Macy | gzip -dc > ${.TARGET} 2722a80c41SKip Macy 2822a80c41SKip MacyFIRMWS= t3fw-4.7.0.bin:t3fw470 2922a80c41SKip MacyCLEANFILES+= t3fw-4.7.0.bin 3022a80c41SKip Macy 3122a80c41SKip Macyt3b_protocol_sram-1.1.0.bin: ${CXGB}/t3b_protocol_sram-1.1.0.bin.gz.uu 3222a80c41SKip Macy uudecode -p < ${CXGB}/t3b_protocol_sram-1.1.0.bin.gz.uu \ 3322a80c41SKip Macy | gzip -dc > ${.TARGET} 3422a80c41SKip Macy 3522a80c41SKip MacyFIRMWS+= t3b_protocol_sram-1.1.0.bin:t3bps110 3622a80c41SKip MacyCLEANFILES+= t3b_protocol_sram-1.1.0.bin 3722a80c41SKip Macy 3822a80c41SKip Macyt3b_tp_eeprom-1.1.0.bin: ${CXGB}/t3b_tp_eeprom-1.1.0.bin.gz.uu 3922a80c41SKip Macy uudecode -p < ${CXGB}/t3b_tp_eeprom-1.1.0.bin.gz.uu \ 4022a80c41SKip Macy | gzip -dc > ${.TARGET} 4122a80c41SKip Macy 4222a80c41SKip MacyFIRMWS+= t3b_tp_eeprom-1.1.0.bin:t3btpe110 4322a80c41SKip MacyCLEANFILES+= t3b_tp_eeprom-1.1.0.bin 4422a80c41SKip Macy 4522a80c41SKip Macy 4622a80c41SKip Macy.endif 4722a80c41SKip Macy 4822a80c41SKip Macy 4922a80c41SKip Macy.include <bsd.kmod.mk> 50