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