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