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