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