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