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