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