]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/Makefile
Upgrade libcompiler_rt to upstream revision 147390.
[FreeBSD/FreeBSD.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         ${_amdsbwd} \
26         ${_amdtemp} \
27         amr \
28         ${_an} \
29         ${_aout} \
30         ${_apm} \
31         ${_arcmsr} \
32         ${_arcnet} \
33         ${_asmc} \
34         ${_asr} \
35         ata \
36         ath \
37         ath_pci \
38         ${_auxio} \
39         bce \
40         bfe \
41         bge \
42         ${_bxe} \
43         ${_bios} \
44         ${_bktr} \
45         ${_bm} \
46         bridgestp \
47         bwi \
48         bwn \
49         cam \
50         ${_canbepm} \
51         ${_canbus} \
52         ${_cardbus} \
53         ${_carp} \
54         cas \
55         ${_cbb} \
56         cc \
57         cd9660 \
58         cd9660_iconv \
59         ${_ce} \
60         ${_cfi} \
61         ${_ciss} \
62         ${_cm} \
63         ${_cmx} \
64         coda \
65         coda5 \
66         ${_coff} \
67         ${_coretemp} \
68         ${_cp} \
69         ${_cpuctl} \
70         ${_cpufreq} \
71         ${_crypto} \
72         ${_cryptodev} \
73         ${_cs} \
74         ${_ctau} \
75         ${_cxgb} \
76         cxgbe \
77         ${_cyclic} \
78         dc \
79         dcons \
80         dcons_crom \
81         de \
82         ${_dpms} \
83         ${_dpt} \
84         ${_drm} \
85         ${_dtrace} \
86         dummynet \
87         ${_ed} \
88         ${_elink} \
89         ${_em} \
90         en \
91         ${_ep} \
92         ${_epic} \
93         esp \
94         ${_et} \
95         ${_ex} \
96         ${_exca} \
97         ${_ext2fs} \
98         fatm \
99         fdc \
100         fdescfs \
101         ${_fe} \
102         firewire \
103         firmware \
104         fxp \
105         gem \
106         geom \
107         ${_glxiic} \
108         ${_glxsb} \
109         hatm \
110         hifn \
111         hme \
112         ${_hpt27xx} \
113         ${_hptiop} \
114         ${_hptmv} \
115         ${_hptrr} \
116         hwpmc \
117         ${_i2c} \
118         ${_ibcs2} \
119         ${_ichwd} \
120         ${_ida} \
121         ${_ie} \
122         if_bridge \
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         ${_padlock} \
240         patm \
241         ${_pccard} \
242         ${_pcfclock} \
243         pcn \
244         ${_pf} \
245         ${_pflog} \
246         ${_pfsync} \
247         plip \
248         ${_pmc} \
249         portalfs \
250         ppbus \
251         ppc \
252         ppi \
253         pps \
254         procfs \
255         pseudofs \
256         ${_pst} \
257         pty  \
258         puc \
259         ${_qlxgb} \
260         ral \
261         ralfw \
262         ${_random} \
263         rc4 \
264         ${_rdma} \
265         re \
266         reiserfs \
267         rl \
268         runfw \
269         ${_s3} \
270         ${_safe} \
271         ${_sbni} \
272         scc \
273         scd \
274         ${_scsi_low} \
275         sdhci \
276         sem \
277         send \
278         sf \
279         ${_sfxge} \
280         sge \
281         siba_bwn \
282         siftr \
283         siis \
284         sis \
285         sk \
286         ${_smbfs} \
287         sn \
288         ${_snc} \
289         snp \
290         ${_sound} \
291         ${_speaker} \
292         ${_splash} \
293         ${_sppp} \
294         ste \
295         ${_stg} \
296         stge \
297         ${_streams} \
298         ${_svr4} \
299         ${_sym} \
300         ${_syscons} \
301         sysvipc \
302         ti \
303         tl \
304         tmpfs \
305         ${_tpm} \
306         trm \
307         ${_twa} \
308         twe \
309         tws \
310         tx \
311         txp \
312         uart \
313         ubsec \
314         udf \
315         udf_iconv \
316         ufs \
317         unionfs \
318         usb \
319         utopia \
320         ${_vesa} \
321         ${_virtio} \
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 _carp=  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 _an=            an
411 _aout=          aout
412 _apm=           apm
413 _arcnet=        arcnet
414 _bktr=          bktr
415 _bxe=           bxe
416 _cardbus=       cardbus
417 _cbb=           cbb
418 _ce=            ce
419 _coff=          coff
420 _cp=            cp
421 _cpuctl=        cpuctl
422 _cpufreq=       cpufreq
423 _cs=            cs
424 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
425 _cyclic=        cyclic
426 .endif
427 _dpms=          dpms
428 _drm=           drm
429 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
430 _dtrace=        dtrace
431 .endif
432 _ed=            ed
433 _elink=         elink
434 _em=            em
435 _ep=            ep
436 _et=            et
437 _exca=          exca
438 _ext2fs=        ext2fs
439 _fe=            fe
440 _glxiic=        glxiic
441 _glxsb=         glxsb
442 _i2c=           i2c
443 _ibcs2=         ibcs2
444 _ie=            ie
445 _if_ndis=       if_ndis
446 _igb=           igb
447 _io=            io
448 _lindev=        lindev
449 _linprocfs=     linprocfs
450 _linsysfs=      linsysfs
451 _linux=         linux
452 _mse=           mse
453 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
454 _mlx4=          mlx4
455 _mlx4ib=        mlx4ib
456 _mlxen=         mlxen
457 _mthca=         mthca
458 .endif
459 .if ${MK_NCP} != "no"
460 _ncp=           ncp
461 .endif
462 _ncv=           ncv
463 _ndis=          ndis
464 _nsp=           nsp
465 .if ${MK_NCP} != "no"
466 _nwfs=          nwfs
467 .endif
468 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
469 _opensolaris=   opensolaris
470 .endif
471 _pccard=        pccard
472 _pcfclock=      pcfclock
473 _pst=           pst
474 _rdma=          rdma
475 _safe=          safe
476 _sbni=          sbni
477 _scsi_low=      scsi_low
478 _smbfs=         smbfs
479 _sound=         sound
480 _speaker=       speaker
481 _splash=        splash
482 _sppp=          sppp
483 _stg=           stg
484 _streams=       streams
485 _svr4=          svr4
486 _vxge=          vxge
487 _wi=            wi
488 _xe=            xe
489 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
490 _zfs=           zfs
491 .endif
492 .if ${MACHINE} == "i386"
493 _aac=           aac
494 _acpi=          acpi
495 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
496 _aesni=         aesni
497 .endif
498 _ahb=           ahb
499 _amdsbwd=       amdsbwd
500 _amdtemp=       amdtemp
501 _arcmsr=        arcmsr
502 _asmc=          asmc
503 _asr=           asr
504 _bios=          bios
505 _ciss=          ciss
506 _cm=            cm
507 _cmx=           cmx
508 _coretemp=      coretemp
509 _ctau=          ctau
510 _dpt=           dpt
511 _ex=            ex
512 _hpt27xx=       hpt27xx
513 _hptiop=        hptiop
514 _hptmv=         hptmv
515 _hptrr=         hptrr
516 _ichwd=         ichwd
517 _ida=           ida
518 _iir=           iir
519 _ipmi=          ipmi
520 _ips=           ips
521 _ipw=           ipw
522 _ipwfw=         ipwfw
523 _iwi=           iwi
524 _iwifw=         iwifw
525 _iwn=           iwn
526 _iwnfw=         iwnfw
527 _ixgb=          ixgb
528 _ixgbe=         ixgbe
529 _mly=           mly
530 _nfe=           nfe
531 _nve=           nve
532 _nvram=         nvram
533 _nxge=          nxge
534 _tpm=           tpm
535 _viawd=         viawd
536 _wpi=           wpi
537 _wpifw=         wpifw
538 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
539 _padlock=       padlock
540 .endif
541 _s3=            s3
542 _twa=           twa
543 _vesa=          vesa
544 _virtio=        virtio
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 _virtio=        virtio
648 _vxge=          vxge
649 _x86bios=       x86bios
650 _wi=            wi
651 _wpi=           wpi
652 _wpifw=         wpifw
653 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
654 _zfs=           zfs
655 .endif
656 .endif
657
658 .if ${MACHINE_CPUARCH} == "arm"
659 _cfi=           cfi
660 .endif
661
662 .if ${MACHINE_CPUARCH} == "ia64"
663 _aac=           aac
664 _aic=           aic
665 _an=            an
666 _arcnet=        arcnet
667 _asr=           asr
668 _bktr=          bktr
669 _cardbus=       cardbus
670 _cbb=           cbb
671 _ciss=          ciss
672 _cm=            cm
673 _cmx=           cmx
674 _coff=          coff
675 _cpufreq=       cpufreq
676 _dpt=           dpt
677 _em=            em
678 _ep=            ep
679 _et=            et
680 _exca=          exca
681 _fe=            fe
682 _hptiop=        hptiop
683 _ida=           ida
684 _igb=           igb
685 _iir=           iir
686 _ips=           ips
687 _mly=           mly
688 _pccard=        pccard
689 _scsi_low=      scsi_low
690 _smbfs=         smbfs
691 _sound=         sound
692 _splash=        splash
693 _sppp=          sppp
694 _streams=       streams
695 _tpm=           tpm
696 _twa=           twa
697 _wi=            wi
698 _xe=            xe
699 .endif
700
701 .if ${MACHINE_CPUARCH} == "powerpc"
702 _agp=           agp
703 _an=            an
704 _bm=            bm
705 _cfi=           cfi
706 _cpufreq=       cpufreq
707 _nvram=         powermac_nvram
708 _smbfs=         smbfs
709 _sound=         sound
710 .endif
711
712 .if ${MACHINE_ARCH} == "powerpc64"
713 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
714 _opensolaris=   opensolaris
715 .endif
716 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
717 _zfs=           zfs
718 .endif
719 .endif
720
721 .if ${MACHINE_CPUARCH} == "sparc64"
722 _auxio=         auxio
723 _em=            em
724 _epic=          epic
725 _i2c=           i2c
726 _igb=           igb
727 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
728 _opensolaris=   opensolaris
729 .endif
730 _smbfs=         smbfs
731 _sound=         sound
732 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
733 _zfs=           zfs
734 .endif
735 .endif
736
737 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
738 SUBDIR=${MODULES_OVERRIDE}
739 .endif
740
741 .for reject in ${WITHOUT_MODULES}
742 SUBDIR:= ${SUBDIR:N${reject}}
743 .endfor
744
745 # Calling kldxref(8) for each module is expensive.
746 .if !defined(NO_XREF)
747 .MAKEFLAGS+=    -DNO_XREF
748 afterinstall:
749         @if type kldxref >/dev/null 2>&1; then \
750                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
751                 kldxref ${DESTDIR}${KMODDIR}; \
752         fi
753 .endif
754
755 .include <bsd.subdir.mk>