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