]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - sys/modules/cxgb/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / sys / modules / cxgb / Makefile
1 # $FreeBSD$
2 SUBDIR= cxgb
3 SUBDIR+= ${_toecore}
4 SUBDIR+= ${_tom}
5 SUBDIR+= ${_iw_cxgb}
6 SUBDIR+= cxgb_t3fw
7
8 .if defined(SYSDIR)
9 _sysdir = ${SYSDIR}
10 .endif
11
12 # Based on bsd.kmod.mk but we don't modify SYSDIR in this one.
13 .for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
14     /sys /usr/src/sys
15 .if !defined(_sysdir) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
16 _sysdir = ${_dir}
17 .endif
18 .endfor
19 .if !defined(_sysdir) || !exists(${_sysdir}/kern/) || \
20     !exists(${_sysdir}/conf/kmod.mk)
21 .error "can't find kernel source tree"
22 .endif
23
24 _toe_header = ${_sysdir}/netinet/toedev.h
25
26 .if exists(${_toe_header})
27 _toecore = toecore
28 #_tom = tom
29 .endif
30
31 .if ${MACHINE_ARCH} == "i386" && exists(${_toe_header})
32 _iw_cxgb = iw_cxgb
33 .endif
34
35 .if ${MACHINE_ARCH} == "amd64" && exists(${_toe_header})
36 _iw_cxgb = iw_cxgb
37 .endif
38
39 .include <bsd.subdir.mk>