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