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