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