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