]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - sys/modules/Makefile
MFC cxgbe(4) and fixes.
[FreeBSD/stable/8.git] / sys / modules / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 SUBDIR= ${_3dfx} \
6         ${_3dfx_linux} \
7         ${_aac} \
8         accf_data \
9         accf_dns \
10         accf_http \
11         ${_acpi} \
12         ae \
13         ${_aesni} \
14         age \
15         ${_agp} \
16         aha \
17         ${_ahb} \
18         ahci \
19         ${_aic} \
20         aic7xxx \
21         aio \
22         alc \
23         ale \
24         alq \
25         ${_amd} \
26         ${_amdsbwd} \
27         ${_amdtemp} \
28         amr \
29         ${_an} \
30         ${_aout} \
31         ${_apm} \
32         ${_arcmsr} \
33         ${_arcnet} \
34         ${_asmc} \
35         ${_asr} \
36         ata \
37         ath \
38         ${_auxio} \
39         ${_bce} \
40         bfe \
41         bge \
42         ${_bios} \
43         ${_bktr} \
44         ${_bm} \
45         bridgestp \
46         ${_bwi} \
47         ${_bwn} \
48         cam \
49         ${_canbepm} \
50         ${_canbus} \
51         ${_cardbus} \
52         cas \
53         ${_cbb} \
54         cd9660 \
55         cd9660_iconv \
56         ${_ce} \
57         ${_ciss} \
58         ${_cm} \
59         ${_cmx} \
60         coda \
61         coda5 \
62         ${_coff} \
63         ${_coretemp} \
64         ${_cp} \
65         ${_cpuctl} \
66         ${_cpufreq} \
67         ${_crypto} \
68         ${_cryptodev} \
69         ${_cs} \
70         ${_ctau} \
71         ${_cxgb} \
72         cxgbe \
73         ${_cyclic} \
74         dc \
75         dcons \
76         dcons_crom \
77         de \
78         ${_dpms} \
79         ${_dpt} \
80         ${_drm} \
81         ${_dtrace} \
82         dummynet \
83         ${_ed} \
84         ${_elink} \
85         ${_em} \
86         en \
87         ${_ep} \
88         ${_epic} \
89         ${_et} \
90         ${_ex} \
91         ${_exca} \
92         ${_ext2fs} \
93         fatm \
94         fdc \
95         fdescfs \
96         ${_fe} \
97         firewire \
98         firmware \
99         fxp \
100         gem \
101         geom \
102         ${_glxsb} \
103         hatm \
104         hifn \
105         hme \
106         ${_hptiop} \
107         ${_hptmv} \
108         ${_hptrr} \
109         hwpmc \
110         ${_i2c} \
111         ${_ibcs2} \
112         ${_ichwd} \
113         ${_ida} \
114         ${_ie} \
115         if_bridge \
116         if_carp \
117         if_disc \
118         if_edsc \
119         if_ef \
120         if_epair \
121         if_faith \
122         if_gif \
123         if_gre \
124         if_lagg \
125         ${_if_ndis} \
126         if_stf \
127         if_tap \
128         if_tun \
129         if_vlan \
130         ${_igb} \
131         ${_iir} \
132         ${_io} \
133         ipdivert \
134         ${_ipfilter} \
135         ipfw \
136         ipfw_nat \
137         ${_ipmi} \
138         ip_mroute_mod \
139         ${_ips} \
140         ${_ipw} \
141         ${_ipwfw} \
142         iscsi \
143         isp \
144         ispfw \
145         ${_iwi} \
146         ${_iwifw} \
147         ${_iwn} \
148         ${_iwnfw} \
149         ${_ixgb} \
150         ${_ixgbe} \
151         jme \
152         joy \
153         kbdmux \
154         krpc \
155         ksyms \
156         le \
157         lge \
158         libalias \
159         libiconv \
160         libmbpool \
161         libmchain \
162         ${_lindev} \
163         ${_linprocfs} \
164         ${_linsysfs} \
165         ${_linux} \
166         lmc \
167         lpt \
168         mac_biba \
169         mac_bsdextended \
170         mac_ifoff \
171         mac_lomac \
172         mac_mls \
173         mac_none \
174         mac_partition \
175         mac_portacl \
176         mac_seeotheruids \
177         mac_stub \
178         mac_test \
179         malo \
180         mcd \
181         md \
182         mem \
183         ${_mfi} \
184         mii \
185         mlx \
186         ${_mly} \
187         mmc \
188         mmcsd \
189         ${_mpt} \
190         mps \
191         mqueue \
192         msdosfs \
193         msdosfs_iconv \
194         ${_mse} \
195         msk \
196         mvs \
197         mwl \
198         mwlfw \
199         mxge \
200         my \
201         ${_ncp} \
202         ${_ncv} \
203         ${_ndis} \
204         ${_netgraph} \
205         ${_nfe} \
206         nfs_common \
207         nfscl \
208         nfsclient \
209         nfscommon \
210         nfsd \
211         nfslock \
212         nfslockd \
213         nfsserver \
214         nfssvc \
215         nge \
216         nmdm \
217         ${_nsp} \
218         ntfs \
219         ntfs_iconv \
220         nullfs \
221         ${_nve} \
222         ${_nvram} \
223         ${_nwfs} \
224         ${_nxge} \
225         ${_opensolaris} \
226         ${_padlock} \
227         patm \
228         ${_pccard} \
229         ${_pcfclock} \
230         pcn \
231         ${_pf} \
232         ${_pflog} \
233         plip \
234         ${_pmc} \
235         portalfs \
236         ppbus \
237         ppc \
238         ppi \
239         pps \
240         procfs \
241         pseudofs \
242         ${_pst} \
243         puc \
244         ral \
245         ralfw \
246         ${_random} \
247         rc4 \
248         ${_rdma} \
249         re \
250         reiserfs \
251         rl \
252         runfw \
253         ${_s3} \
254         ${_safe} \
255         ${_sbni} \
256         scc \
257         scd \
258         ${_scsi_low} \
259         sdhci \
260         sem \
261         sf \
262         sge \
263         ${_siba_bwn} \
264         siftr \
265         siis \
266         sis \
267         sk \
268         ${_smbfs} \
269         sn \
270         ${_snc} \
271         snp \
272         ${_sound} \
273         ${_speaker} \
274         ${_splash} \
275         ${_sppp} \
276         ste \
277         ${_stg} \
278         stge \
279         ${_streams} \
280         ${_svr4} \
281         ${_sym} \
282         ${_syscons} \
283         sysvipc \
284         ti \
285         tl \
286         ${_tmpfs} \
287         ${_tpm} \
288         trm \
289         ${_twa} \
290         twe \
291         tx \
292         txp \
293         ${_uart} \
294         ubsec \
295         udf \
296         udf_iconv \
297         ufs \
298         unionfs \
299         usb \
300         utopia \
301         ${_vesa} \
302         vge \
303         vkbd \
304         ${_vpo} \
305         vr \
306         vte \
307         vx \
308         wb \
309         ${_wi} \
310         wlan \
311         wlan_acl \
312         wlan_amrr \
313         wlan_ccmp \
314         wlan_rssadapt \
315         wlan_tkip \
316         wlan_wep \
317         wlan_xauth \
318         ${_wpi} \
319         ${_wpifw} \
320         ${_x86bios} \
321         ${_xe} \
322         xfs \
323         xl \
324         ${_zfs} \
325         zlib \
326
327 .if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "arm" && \
328         ${MACHINE_ARCH} != "mips"
329 _syscons=       syscons
330 _vpo=           vpo
331 .endif
332
333 .if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
334 # no BUS_SPACE_UNSPECIFIED
335 _bce=           bce
336 _bwi=           bwi
337 _bwn=           bwn
338 _mfi=           mfi
339 _mpt=           mpt
340 _siba_bwn=      siba_bwn
341 # No barrier instruction support (specific to this driver)
342 _sym=           sym
343 # no uart_cpu_$MACHINE_ARCH
344 _uart=          uart
345 # disable_intr() interferes
346 _cxgb=          cxgb
347 .endif
348
349 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
350 .if exists(${.CURDIR}/../opencrypto)
351 _crypto=        crypto
352 _cryptodev=     cryptodev
353 .endif
354 .if exists(${.CURDIR}/../crypto)
355 _random=        random
356 .endif
357 .endif
358
359 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
360 _ipfilter=      ipfilter
361 .endif
362
363 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
364 _netgraph=      netgraph
365 .endif
366
367 .if ${MK_PF} != "no" || defined(ALL_MODULES)
368 _pf=            pf
369 _pflog=         pflog
370 .endif
371
372 .if ${MACHINE_ARCH} == "i386"
373 # XXX some of these can move to the general case when de-i386'ed
374 # XXX some of these can move now, but are untested on other architectures.
375 _3dfx=          3dfx
376 _3dfx_linux=    3dfx_linux
377 _agp=           agp
378 _aic=           aic
379 _amd=           amd
380 _an=            an
381 _aout=          aout
382 _apm=           apm
383 _arcnet=        arcnet
384 _bktr=          bktr
385 _cardbus=       cardbus
386 _cbb=           cbb
387 _ce=            ce
388 _coff=          coff
389 _cp=            cp
390 _cpuctl=        cpuctl
391 _cpufreq=       cpufreq
392 _cs=            cs
393 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
394 _cyclic=        cyclic
395 .endif
396 _dpms=          dpms
397 _drm=           drm
398 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
399 _dtrace=        dtrace
400 .endif
401 _ed=            ed
402 _elink=         elink
403 _em=            em
404 _ep=            ep
405 _et=            et
406 _exca=          exca
407 _ext2fs=        ext2fs
408 _fe=            fe
409 _glxsb=         glxsb
410 _i2c=           i2c
411 _ibcs2=         ibcs2
412 _ie=            ie
413 _if_ndis=       if_ndis
414 _igb=           igb
415 _io=            io
416 _lindev=        lindev
417 _linprocfs=     linprocfs
418 _linsysfs=      linsysfs
419 _linux=         linux
420 _mse=           mse
421 .if ${MK_NCP} != "no"
422 _ncp=           ncp
423 .endif
424 _ncv=           ncv
425 _ndis=          ndis
426 _nsp=           nsp
427 .if ${MK_NCP} != "no"
428 _nwfs=          nwfs
429 .endif
430 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
431 _opensolaris=   opensolaris
432 .endif
433 _pccard=        pccard
434 _pcfclock=      pcfclock
435 _pst=           pst
436 _rdma=          rdma
437 _safe=          safe
438 _sbni=          sbni
439 _scsi_low=      scsi_low
440 _smbfs=         smbfs
441 _sound=         sound
442 _speaker=       speaker
443 _splash=        splash
444 _sppp=          sppp
445 _stg=           stg
446 _streams=       streams
447 _svr4=          svr4
448 _tmpfs=         tmpfs
449 _wi=            wi
450 _xe=            xe
451 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
452 _zfs=           zfs
453 .endif
454 .if ${MACHINE} == "i386"
455 _aac=           aac
456 _acpi=          acpi
457 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
458 _aesni=         aesni
459 .endif
460 _ahb=           ahb
461 _amdsbwd=       amdsbwd
462 _amdtemp=       amdtemp
463 _arcmsr=        arcmsr
464 _asmc=          asmc
465 _asr=           asr
466 _bios=          bios
467 _ciss=          ciss
468 _cm=            cm
469 _cmx=           cmx
470 _coretemp=      coretemp
471 _ctau=          ctau
472 _dpt=           dpt
473 _ex=            ex
474 _hptiop=        hptiop
475 _hptmv=         hptmv
476 _hptrr=         hptrr
477 _ichwd=         ichwd
478 _ida=           ida
479 _iir=           iir
480 _ipmi=          ipmi
481 _ips=           ips
482 _ipw=           ipw
483 _ipwfw=         ipwfw
484 _iwi=           iwi
485 _iwifw=         iwifw
486 _iwn=           iwn
487 _iwnfw=         iwnfw
488 _ixgb=          ixgb
489 _ixgbe=         ixgbe
490 _mly=           mly
491 _nfe=           nfe
492 _nve=           nve
493 _nvram=         nvram
494 _nxge=          nxge
495 _tpm=           tpm
496 _wpi=           wpi
497 _wpifw=         wpifw
498 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
499 _padlock=       padlock
500 .endif
501 _s3=            s3
502 _twa=           twa
503 _vesa=          vesa
504 _x86bios=       x86bios
505 .elif ${MACHINE} == "pc98"
506 _canbepm=       canbepm
507 _canbus=        canbus
508 _pmc=           pmc
509 _snc=           snc
510 .endif
511 .endif
512
513 .if ${MACHINE_ARCH} == "amd64"
514 _aac=           aac
515 _acpi=          acpi
516 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
517 _aesni=         aesni
518 .endif
519 _agp=           agp
520 _an=            an
521 _amdsbwd=       amdsbwd
522 _amdtemp=       amdtemp
523 _arcmsr=        arcmsr
524 _asmc=          asmc
525 _cardbus=       cardbus
526 _cbb=           cbb
527 _cmx=           cmx
528 _ciss=          ciss
529 _coretemp=      coretemp
530 _cpuctl=        cpuctl
531 _cpufreq=       cpufreq
532 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
533 _cyclic=        cyclic
534 .endif
535 _dpms=          dpms
536 _drm=           drm
537 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
538 _dtrace=        dtrace
539 .endif
540 _ed=            ed
541 _et=            et
542 _em=            em
543 _exca=          exca
544 _ext2fs=        ext2fs
545 _hptiop=        hptiop
546 _hptmv=         hptmv
547 _hptrr=         hptrr
548 _i2c=           i2c
549 _ichwd=         ichwd
550 _ida=           ida
551 _if_ndis=       if_ndis
552 _igb=           igb
553 _iir=           iir
554 _io=            io
555 _ipmi=          ipmi
556 _ips=           ips
557 _ipw=           ipw
558 _ipwfw=         ipwfw
559 _iwi=           iwi
560 _iwifw=         iwifw
561 _iwn=           iwn
562 _iwnfw=         iwnfw
563 _ixgb=          ixgb
564 _ixgbe=         ixgbe
565 _lindev=        lindev
566 _linprocfs=     linprocfs
567 _linsysfs=      linsysfs
568 _linux=         linux
569 _mly=           mly
570 _ndis=          ndis
571 _nfe=           nfe
572 _nve=           nve
573 _nvram=         nvram
574 _nxge=          nxge
575 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
576 _opensolaris=   opensolaris
577 .endif
578 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
579 _padlock=       padlock
580 .endif
581 _pccard=        pccard
582 _rdma=          rdma    
583 _s3=            s3
584 _safe=          safe
585 _scsi_low=      scsi_low
586 _smbfs=         smbfs
587 _sound=         sound
588 _speaker=       speaker
589 _splash=        splash
590 _sppp=          sppp
591 _tmpfs=         tmpfs
592 _tpm=           tpm
593 _twa=           twa
594 _vesa=          vesa
595 _x86bios=       x86bios
596 _wi=            wi
597 _wpi=           wpi
598 _wpifw=         wpifw
599 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
600 _zfs=           zfs
601 .endif
602 .endif
603
604 .if ${MACHINE_ARCH} == "ia64"
605 _aac=           aac
606 _aic=           aic
607 _an=            an
608 _arcnet=        arcnet
609 _asr=           asr
610 _bktr=          bktr
611 _cardbus=       cardbus
612 _cbb=           cbb
613 _ciss=          ciss
614 _cm=            cm
615 _cmx=           cmx
616 _coff=          coff
617 _cpufreq=       cpufreq
618 _dpt=           dpt
619 _em=            em
620 _ep=            ep
621 _et=            et
622 _exca=          exca
623 _fe=            fe
624 _hptiop=        hptiop
625 _ida=           ida
626 _igb=           igb
627 _iir=           iir
628 _ips=           ips
629 _mly=           mly
630 _pccard=        pccard
631 _scsi_low=      scsi_low
632 _smbfs=         smbfs
633 _sound=         sound
634 _splash=        splash
635 _sppp=          sppp
636 _streams=       streams
637 _tpm=           tpm
638 _twa=           twa
639 _wi=            wi
640 _xe=            xe
641 .endif
642
643 .if ${MACHINE_ARCH} == "powerpc"
644 _an=            an
645 _bm=            bm
646 _cpufreq=       cpufreq
647 _nvram=         powermac_nvram
648 _smbfs=         smbfs
649 _sound=         sound
650 .endif
651
652 .if ${MACHINE_ARCH} == "sparc64"
653 _auxio=         auxio
654 _em=            em
655 _epic=          epic
656 _i2c=           i2c
657 _igb=           igb
658 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
659 _opensolaris=   opensolaris
660 .endif
661 _sound=         sound
662 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
663 _zfs=           zfs
664 .endif
665 .endif
666
667 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
668 SUBDIR=${MODULES_OVERRIDE}
669 .endif
670
671 .for reject in ${WITHOUT_MODULES}
672 SUBDIR:= ${SUBDIR:N${reject}}
673 .endfor
674
675 # Calling kldxref(8) for each module is expensive.
676 .if !defined(NO_XREF)
677 .MAKEFLAGS+=    -DNO_XREF
678 afterinstall:
679         @if type kldxref >/dev/null 2>&1; then \
680                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
681                 kldxref ${DESTDIR}${KMODDIR}; \
682         fi
683 .endif
684
685 .include <bsd.subdir.mk>