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