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