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