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