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