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