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