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