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