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