]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - sys/modules/Makefile
MFC r227064:
[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         ${_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         sge \
278         siba_bwn \
279         siftr \
280         siis \
281         sis \
282         sk \
283         ${_smbfs} \
284         sn \
285         ${_snc} \
286         snp \
287         ${_sound} \
288         ${_speaker} \
289         ${_splash} \
290         ${_sppp} \
291         ste \
292         ${_stg} \
293         stge \
294         ${_streams} \
295         ${_svr4} \
296         ${_sym} \
297         ${_syscons} \
298         sysvipc \
299         ti \
300         tl \
301         tmpfs \
302         ${_tpm} \
303         trm \
304         ${_twa} \
305         twe \
306         tws \
307         tx \
308         txp \
309         uart \
310         ubsec \
311         udf \
312         udf_iconv \
313         ufs \
314         unionfs \
315         usb \
316         utopia \
317         ${_vesa} \
318         vge \
319         vkbd \
320         ${_vpo} \
321         vr \
322         vte \
323         vx \
324         ${_vxge} \
325         wb \
326         ${_wi} \
327         wlan \
328         wlan_acl \
329         wlan_amrr \
330         wlan_ccmp \
331         wlan_rssadapt \
332         wlan_tkip \
333         wlan_wep \
334         wlan_xauth \
335         ${_wpi} \
336         ${_wpifw} \
337         ${_x86bios} \
338         ${_xe} \
339         xfs \
340         xl \
341         ${_zfs} \
342         zlib \
343
344 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
345         ${MACHINE_CPUARCH} != "mips"
346 _syscons=       syscons
347 _vpo=           vpo
348 .endif
349
350 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
351 # no BUS_SPACE_UNSPECIFIED
352 # No barrier instruction support (specific to this driver)
353 _sym=           sym
354 # intr_disable() is a macro, causes problems
355 _cxgb=          cxgb
356 .endif
357
358 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
359 .if exists(${.CURDIR}/../opencrypto)
360 _crypto=        crypto
361 _cryptodev=     cryptodev
362 .endif
363 .if exists(${.CURDIR}/../crypto)
364 _random=        random
365 .endif
366 .endif
367
368 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
369 _if_gre=        if_gre
370 .endif
371
372 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
373         defined(ALL_MODULES)
374 _if_carp=       if_carp
375 .endif
376
377 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
378 _ipfilter=      ipfilter
379 .endif
380
381 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
382 _ipfw=          ipfw
383 .endif
384
385 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
386 _netgraph=      netgraph
387 .endif
388
389 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
390         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
391 _pf=            pf
392 _pflog=         pflog
393 .if ${MK_INET_SUPPORT} != "no"
394 _pfsync=        pfsync
395 .endif
396 .endif
397
398 .if ${MACHINE_CPUARCH} == "i386"
399 # XXX some of these can move to the general case when de-i386'ed
400 # XXX some of these can move now, but are untested on other architectures.
401 _3dfx=          3dfx
402 _3dfx_linux=    3dfx_linux
403 _agp=           agp
404 _aic=           aic
405 _amd=           amd
406 _an=            an
407 _aout=          aout
408 _apm=           apm
409 _arcnet=        arcnet
410 _bktr=          bktr
411 _bxe=           bxe
412 _cardbus=       cardbus
413 _cbb=           cbb
414 _ce=            ce
415 _coff=          coff
416 _cp=            cp
417 _cpuctl=        cpuctl
418 _cpufreq=       cpufreq
419 _cs=            cs
420 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
421 _cyclic=        cyclic
422 .endif
423 _dpms=          dpms
424 _drm=           drm
425 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
426 _dtrace=        dtrace
427 .endif
428 _ed=            ed
429 _elink=         elink
430 _em=            em
431 _ep=            ep
432 _et=            et
433 _exca=          exca
434 _ext2fs=        ext2fs
435 _fe=            fe
436 _glxiic=        glxiic
437 _glxsb=         glxsb
438 _i2c=           i2c
439 _ibcs2=         ibcs2
440 _ie=            ie
441 _if_ndis=       if_ndis
442 _igb=           igb
443 _io=            io
444 _lindev=        lindev
445 _linprocfs=     linprocfs
446 _linsysfs=      linsysfs
447 _linux=         linux
448 _mse=           mse
449 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
450 _mlx4=          mlx4
451 _mlx4ib=        mlx4ib
452 _mlxen=         mlxen
453 _mthca=         mthca
454 .endif
455 .if ${MK_NCP} != "no"
456 _ncp=           ncp
457 .endif
458 _ncv=           ncv
459 _ndis=          ndis
460 _nsp=           nsp
461 .if ${MK_NCP} != "no"
462 _nwfs=          nwfs
463 .endif
464 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
465 _opensolaris=   opensolaris
466 .endif
467 _pccard=        pccard
468 _pcfclock=      pcfclock
469 _pst=           pst
470 _rdma=          rdma
471 _safe=          safe
472 _sbni=          sbni
473 _scsi_low=      scsi_low
474 _smbfs=         smbfs
475 _sound=         sound
476 _speaker=       speaker
477 _splash=        splash
478 _sppp=          sppp
479 _stg=           stg
480 _streams=       streams
481 _svr4=          svr4
482 _vxge=          vxge
483 _wi=            wi
484 _xe=            xe
485 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
486 _zfs=           zfs
487 .endif
488 .if ${MACHINE} == "i386"
489 _aac=           aac
490 _acpi=          acpi
491 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
492 _aesni=         aesni
493 .endif
494 _ahb=           ahb
495 _amdsbwd=       amdsbwd
496 _amdtemp=       amdtemp
497 _arcmsr=        arcmsr
498 _asmc=          asmc
499 _asr=           asr
500 _bios=          bios
501 _ciss=          ciss
502 _cm=            cm
503 _cmx=           cmx
504 _coretemp=      coretemp
505 _ctau=          ctau
506 _dpt=           dpt
507 _ex=            ex
508 _hptiop=        hptiop
509 _hptmv=         hptmv
510 _hptrr=         hptrr
511 _ichwd=         ichwd
512 _ida=           ida
513 _iir=           iir
514 _ipmi=          ipmi
515 _ips=           ips
516 _ipw=           ipw
517 _ipwfw=         ipwfw
518 _iwi=           iwi
519 _iwifw=         iwifw
520 _iwn=           iwn
521 _iwnfw=         iwnfw
522 _ixgb=          ixgb
523 _ixgbe=         ixgbe
524 _mly=           mly
525 _nfe=           nfe
526 _nve=           nve
527 _nvram=         nvram
528 _nxge=          nxge
529 _tpm=           tpm
530 _wpi=           wpi
531 _wpifw=         wpifw
532 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
533 _padlock=       padlock
534 .endif
535 _s3=            s3
536 _twa=           twa
537 _vesa=          vesa
538 _x86bios=       x86bios
539 .elif ${MACHINE} == "pc98"
540 _canbepm=       canbepm
541 _canbus=        canbus
542 _pmc=           pmc
543 _snc=           snc
544 .endif
545 .endif
546
547 .if ${MACHINE_CPUARCH} == "amd64"
548 _aac=           aac
549 _aout=          aout
550 _acpi=          acpi
551 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
552 _aesni=         aesni
553 .endif
554 _agp=           agp
555 _an=            an
556 _amdsbwd=       amdsbwd
557 _amdtemp=       amdtemp
558 _arcmsr=        arcmsr
559 _asmc=          asmc
560 _bxe=           bxe
561 _cardbus=       cardbus
562 _cbb=           cbb
563 _cmx=           cmx
564 _ciss=          ciss
565 _coretemp=      coretemp
566 _cpuctl=        cpuctl
567 _cpufreq=       cpufreq
568 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
569 _cyclic=        cyclic
570 .endif
571 _dpms=          dpms
572 _drm=           drm
573 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
574 _dtrace=        dtrace
575 .endif
576 _ed=            ed
577 _et=            et
578 _em=            em
579 _exca=          exca
580 _ext2fs=        ext2fs
581 _hptiop=        hptiop
582 _hptmv=         hptmv
583 _hptrr=         hptrr
584 _i2c=           i2c
585 _ichwd=         ichwd
586 _ida=           ida
587 _if_ndis=       if_ndis
588 _igb=           igb
589 _iir=           iir
590 _io=            io
591 _ipmi=          ipmi
592 _ips=           ips
593 _ipw=           ipw
594 _ipwfw=         ipwfw
595 _iwi=           iwi
596 _iwifw=         iwifw
597 _iwn=           iwn
598 _iwnfw=         iwnfw
599 _ixgb=          ixgb
600 _ixgbe=         ixgbe
601 _lindev=        lindev
602 _linprocfs=     linprocfs
603 _linsysfs=      linsysfs
604 _linux=         linux
605 _mly=           mly
606 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
607 _mlx4=          mlx4
608 _mlx4ib=        mlx4ib
609 _mlxen=         mlxen
610 _mthca=         mthca
611 .endif
612 _ndis=          ndis
613 _nfe=           nfe
614 _nve=           nve
615 _nvram=         nvram
616 _nxge=          nxge
617 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
618 _opensolaris=   opensolaris
619 .endif
620 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
621 _padlock=       padlock
622 .endif
623 _pccard=        pccard
624 _qlxgb=         qlxgb
625 _rdma=          rdma    
626 _s3=            s3
627 _safe=          safe
628 _scsi_low=      scsi_low
629 _smbfs=         smbfs
630 _sound=         sound
631 _speaker=       speaker
632 _splash=        splash
633 _sppp=          sppp
634 _tpm=           tpm
635 _twa=           twa
636 _vesa=          vesa
637 _vxge=          vxge
638 _x86bios=       x86bios
639 _wi=            wi
640 _wpi=           wpi
641 _wpifw=         wpifw
642 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
643 _zfs=           zfs
644 .endif
645 .endif
646
647 .if ${MACHINE_CPUARCH} == "ia64"
648 _aac=           aac
649 _aic=           aic
650 _an=            an
651 _arcnet=        arcnet
652 _asr=           asr
653 _bktr=          bktr
654 _cardbus=       cardbus
655 _cbb=           cbb
656 _ciss=          ciss
657 _cm=            cm
658 _cmx=           cmx
659 _coff=          coff
660 _cpufreq=       cpufreq
661 _dpt=           dpt
662 _em=            em
663 _ep=            ep
664 _et=            et
665 _exca=          exca
666 _fe=            fe
667 _hptiop=        hptiop
668 _ida=           ida
669 _igb=           igb
670 _iir=           iir
671 _ips=           ips
672 _mly=           mly
673 _pccard=        pccard
674 _scsi_low=      scsi_low
675 _smbfs=         smbfs
676 _sound=         sound
677 _splash=        splash
678 _sppp=          sppp
679 _streams=       streams
680 _tpm=           tpm
681 _twa=           twa
682 _wi=            wi
683 _xe=            xe
684 .endif
685
686 .if ${MACHINE_CPUARCH} == "powerpc"
687 _agp=           agp
688 _an=            an
689 _bm=            bm
690 _cpufreq=       cpufreq
691 _nvram=         powermac_nvram
692 _smbfs=         smbfs
693 _sound=         sound
694 .endif
695
696 .if ${MACHINE_ARCH} == "powerpc64"
697 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
698 _opensolaris=   opensolaris
699 .endif
700 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
701 _zfs=           zfs
702 .endif
703 .endif
704
705 .if ${MACHINE_CPUARCH} == "sparc64"
706 _auxio=         auxio
707 _em=            em
708 _epic=          epic
709 _i2c=           i2c
710 _igb=           igb
711 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
712 _opensolaris=   opensolaris
713 .endif
714 _smbfs=         smbfs
715 _sound=         sound
716 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
717 _zfs=           zfs
718 .endif
719 .endif
720
721 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
722 SUBDIR=${MODULES_OVERRIDE}
723 .endif
724
725 .for reject in ${WITHOUT_MODULES}
726 SUBDIR:= ${SUBDIR:N${reject}}
727 .endfor
728
729 # Calling kldxref(8) for each module is expensive.
730 .if !defined(NO_XREF)
731 .MAKEFLAGS+=    -DNO_XREF
732 afterinstall:
733         @if type kldxref >/dev/null 2>&1; then \
734                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
735                 kldxref ${DESTDIR}${KMODDIR}; \
736         fi
737 .endif
738
739 .include <bsd.subdir.mk>