]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - sys/modules/Makefile
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.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         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_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         ip_mroute_mod \
144         ${_ips} \
145         ${_ipw} \
146         ${_ipwfw} \
147         iscsi \
148         isp \
149         ispfw \
150         ${_iwi} \
151         ${_iwifw} \
152         ${_iwn} \
153         ${_iwnfw} \
154         ${_ixgb} \
155         ${_ixgbe} \
156         jme \
157         joy \
158         kbdmux \
159         kgssapi \
160         kgssapi_krb5 \
161         khelp \
162         krpc \
163         ksyms \
164         le \
165         lge \
166         libalias \
167         libiconv \
168         libmbpool \
169         libmchain \
170         ${_lindev} \
171         ${_linprocfs} \
172         ${_linsysfs} \
173         ${_linux} \
174         lmc \
175         lpt \
176         mac_biba \
177         mac_bsdextended \
178         mac_ifoff \
179         mac_lomac \
180         mac_mls \
181         mac_none \
182         mac_partition \
183         mac_portacl \
184         mac_seeotheruids \
185         mac_stub \
186         mac_test \
187         malo \
188         mcd \
189         md \
190         mem \
191         mfi \
192         mii \
193         mlx \
194         ${_mlx4} \
195         ${_mlx4ib} \
196         ${_mlxen} \
197         ${_mly} \
198         mmc \
199         mmcsd \
200         mps \
201         mpt \
202         mqueue \
203         msdosfs \
204         msdosfs_iconv \
205         ${_mse} \
206         msk \
207         ${_mthca} \
208         mvs \
209         mwl \
210         mwlfw \
211         mxge \
212         my \
213         ${_ncp} \
214         ${_ncv} \
215         ${_ndis} \
216         ${_netgraph} \
217         ${_nfe} \
218         nfs_common \
219         nfscl \
220         nfsclient \
221         nfscommon \
222         nfsd \
223         nfslock \
224         nfslockd \
225         nfsserver \
226         nfssvc \
227         nge \
228         nmdm \
229         ${_nsp} \
230         ntfs \
231         ntfs_iconv \
232         nullfs \
233         ${_nve} \
234         ${_nvram} \
235         ${_nwfs} \
236         ${_nxge} \
237         ${_opensolaris} \
238         ${_padlock} \
239         patm \
240         ${_pccard} \
241         ${_pcfclock} \
242         pcn \
243         ${_pf} \
244         ${_pflog} \
245         ${_pfsync} \
246         plip \
247         ${_pmc} \
248         portalfs \
249         ppbus \
250         ppc \
251         ppi \
252         pps \
253         procfs \
254         pseudofs \
255         ${_pst} \
256         pty  \
257         puc \
258         ${_qlxgb} \
259         ral \
260         ralfw \
261         ${_random} \
262         rc4 \
263         ${_rdma} \
264         re \
265         reiserfs \
266         rl \
267         runfw \
268         ${_s3} \
269         ${_safe} \
270         ${_sbni} \
271         scc \
272         scd \
273         ${_scsi_low} \
274         sdhci \
275         sem \
276         send \
277         sf \
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         vge \
320         vkbd \
321         ${_vpo} \
322         vr \
323         vte \
324         vx \
325         ${_vxge} \
326         wb \
327         ${_wi} \
328         wlan \
329         wlan_acl \
330         wlan_amrr \
331         wlan_ccmp \
332         wlan_rssadapt \
333         wlan_tkip \
334         wlan_wep \
335         wlan_xauth \
336         ${_wpi} \
337         ${_wpifw} \
338         ${_x86bios} \
339         ${_xe} \
340         xfs \
341         xl \
342         ${_zfs} \
343         zlib \
344
345 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
346         ${MACHINE_CPUARCH} != "mips"
347 _syscons=       syscons
348 _vpo=           vpo
349 .endif
350
351 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
352 # no BUS_SPACE_UNSPECIFIED
353 # No barrier instruction support (specific to this driver)
354 _sym=           sym
355 # intr_disable() is a macro, causes problems
356 _cxgb=          cxgb
357 .endif
358
359 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
360 .if exists(${.CURDIR}/../opencrypto)
361 _crypto=        crypto
362 _cryptodev=     cryptodev
363 .endif
364 .if exists(${.CURDIR}/../crypto)
365 _random=        random
366 .endif
367 .endif
368
369 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
370 _if_gre=        if_gre
371 .endif
372
373 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
374         defined(ALL_MODULES)
375 _if_carp=       if_carp
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" && (${MK_INET_SUPPORT} != "no" || \
391         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
392 _pf=            pf
393 _pflog=         pflog
394 .if ${MK_INET_SUPPORT} != "no"
395 _pfsync=        pfsync
396 .endif
397 .endif
398
399 .if ${MACHINE_CPUARCH} == "i386"
400 # XXX some of these can move to the general case when de-i386'ed
401 # XXX some of these can move now, but are untested on other architectures.
402 _3dfx=          3dfx
403 _3dfx_linux=    3dfx_linux
404 _agp=           agp
405 _aic=           aic
406 _amd=           amd
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 _x86bios=       x86bios
540 .elif ${MACHINE} == "pc98"
541 _canbepm=       canbepm
542 _canbus=        canbus
543 _pmc=           pmc
544 _snc=           snc
545 .endif
546 .endif
547
548 .if ${MACHINE_CPUARCH} == "amd64"
549 _aac=           aac
550 _aout=          aout
551 _acpi=          acpi
552 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
553 _aesni=         aesni
554 .endif
555 _agp=           agp
556 _an=            an
557 _amdsbwd=       amdsbwd
558 _amdtemp=       amdtemp
559 _arcmsr=        arcmsr
560 _asmc=          asmc
561 _bxe=           bxe
562 _cardbus=       cardbus
563 _cbb=           cbb
564 _cmx=           cmx
565 _ciss=          ciss
566 _coretemp=      coretemp
567 _cpuctl=        cpuctl
568 _cpufreq=       cpufreq
569 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
570 _cyclic=        cyclic
571 .endif
572 _dpms=          dpms
573 _drm=           drm
574 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
575 _dtrace=        dtrace
576 .endif
577 _ed=            ed
578 _et=            et
579 _em=            em
580 _exca=          exca
581 _ext2fs=        ext2fs
582 _hptiop=        hptiop
583 _hptmv=         hptmv
584 _hptrr=         hptrr
585 _i2c=           i2c
586 _ichwd=         ichwd
587 _ida=           ida
588 _if_ndis=       if_ndis
589 _igb=           igb
590 _iir=           iir
591 _io=            io
592 _ipmi=          ipmi
593 _ips=           ips
594 _ipw=           ipw
595 _ipwfw=         ipwfw
596 _iwi=           iwi
597 _iwifw=         iwifw
598 _iwn=           iwn
599 _iwnfw=         iwnfw
600 _ixgb=          ixgb
601 _ixgbe=         ixgbe
602 _lindev=        lindev
603 _linprocfs=     linprocfs
604 _linsysfs=      linsysfs
605 _linux=         linux
606 _mly=           mly
607 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
608 _mlx4=          mlx4
609 _mlx4ib=        mlx4ib
610 _mlxen=         mlxen
611 _mthca=         mthca
612 .endif
613 _ndis=          ndis
614 _nfe=           nfe
615 _nve=           nve
616 _nvram=         nvram
617 _nxge=          nxge
618 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
619 _opensolaris=   opensolaris
620 .endif
621 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
622 _padlock=       padlock
623 .endif
624 _pccard=        pccard
625 _qlxgb=         qlxgb
626 _rdma=          rdma    
627 _s3=            s3
628 _safe=          safe
629 _scsi_low=      scsi_low
630 _smbfs=         smbfs
631 _sound=         sound
632 _speaker=       speaker
633 _splash=        splash
634 _sppp=          sppp
635 _tpm=           tpm
636 _twa=           twa
637 _vesa=          vesa
638 _vxge=          vxge
639 _x86bios=       x86bios
640 _wi=            wi
641 _wpi=           wpi
642 _wpifw=         wpifw
643 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
644 _zfs=           zfs
645 .endif
646 .endif
647
648 .if ${MACHINE_CPUARCH} == "ia64"
649 _aac=           aac
650 _aic=           aic
651 _an=            an
652 _arcnet=        arcnet
653 _asr=           asr
654 _bktr=          bktr
655 _cardbus=       cardbus
656 _cbb=           cbb
657 _ciss=          ciss
658 _cm=            cm
659 _cmx=           cmx
660 _coff=          coff
661 _cpufreq=       cpufreq
662 _dpt=           dpt
663 _em=            em
664 _ep=            ep
665 _et=            et
666 _exca=          exca
667 _fe=            fe
668 _hptiop=        hptiop
669 _ida=           ida
670 _igb=           igb
671 _iir=           iir
672 _ips=           ips
673 _mly=           mly
674 _pccard=        pccard
675 _scsi_low=      scsi_low
676 _smbfs=         smbfs
677 _sound=         sound
678 _splash=        splash
679 _sppp=          sppp
680 _streams=       streams
681 _tpm=           tpm
682 _twa=           twa
683 _wi=            wi
684 _xe=            xe
685 .endif
686
687 .if ${MACHINE_CPUARCH} == "powerpc"
688 _agp=           agp
689 _an=            an
690 _bm=            bm
691 _cpufreq=       cpufreq
692 _nvram=         powermac_nvram
693 _smbfs=         smbfs
694 _sound=         sound
695 .endif
696
697 .if ${MACHINE_ARCH} == "powerpc64"
698 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
699 _opensolaris=   opensolaris
700 .endif
701 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
702 _zfs=           zfs
703 .endif
704 .endif
705
706 .if ${MACHINE_CPUARCH} == "sparc64"
707 _auxio=         auxio
708 _em=            em
709 _epic=          epic
710 _i2c=           i2c
711 _igb=           igb
712 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
713 _opensolaris=   opensolaris
714 .endif
715 _smbfs=         smbfs
716 _sound=         sound
717 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
718 _zfs=           zfs
719 .endif
720 .endif
721
722 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
723 SUBDIR=${MODULES_OVERRIDE}
724 .endif
725
726 .for reject in ${WITHOUT_MODULES}
727 SUBDIR:= ${SUBDIR:N${reject}}
728 .endfor
729
730 # Calling kldxref(8) for each module is expensive.
731 .if !defined(NO_XREF)
732 .MAKEFLAGS+=    -DNO_XREF
733 afterinstall:
734         @if type kldxref >/dev/null 2>&1; then \
735                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
736                 kldxref ${DESTDIR}${KMODDIR}; \
737         fi
738 .endif
739
740 .include <bsd.subdir.mk>