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