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