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