Makefile revision 188943
1255253Ssjg# $FreeBSD: head/sys/modules/cxgb/Makefile 186119 2008-12-15 06:10:57Z qingli $ 2246149SsjgSUBDIR= cxgb 3249033SsjgSUBDIR+= ${_toecore} 4249033SsjgSUBDIR+= ${_tom} 5246149SsjgSUBDIR+= ${_iw_cxgb} 6246149SsjgSUBDIR+= cxgb_t3fw 7246149Ssjg 8246149Ssjg.if defined(SYSDIR) 9246149Ssjg_sysdir = ${SYSDIR} 10246149Ssjg.endif 11246149Ssjg 12246149Ssjg# Based on bsd.kmod.mk but we don't modify SYSDIR in this one. 13246149Ssjg.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \ 14246149Ssjg /sys /usr/src/sys 15246149Ssjg.if !defined(_sysdir) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk) 16246149Ssjg_sysdir = ${_dir} 17246149Ssjg.endif 18246149Ssjg.endfor 19246149Ssjg.if !defined(_sysdir) || !exists(${_sysdir}/kern/) || \ 20246149Ssjg !exists(${_sysdir}/conf/kmod.mk) 21246149Ssjg.error "can't find kernel source tree" 22246149Ssjg.endif 23246149Ssjg 24246149Ssjg_toe_header = ${_sysdir}/netinet/toedev.h 25246149Ssjg 26246149Ssjg.if exists(${_toe_header}) 27246149Ssjg_toecore = toecore 28246149Ssjg#_tom = tom 29246149Ssjg.endif 30246149Ssjg 31246149Ssjg.if ${MACHINE_ARCH} == "i386" && exists(${_toe_header}) 32246149Ssjg_iw_cxgb = iw_cxgb 33246149Ssjg.endif 34246149Ssjg 35246149Ssjg.if ${MACHINE_ARCH} == "amd64" && exists(${_toe_header}) 36246149Ssjg_iw_cxgb = iw_cxgb 37246149Ssjg.endif 38246149Ssjg 39246149Ssjg.include <bsd.subdir.mk> 40246149Ssjg