]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - sys/modules/Makefile
MFC 211249
[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         ${_tpm} \
285         trm \
286         ${_twa} \
287         twe \
288         tx \
289         txp \
290         uart \
291         ubsec \
292         udf \
293         udf_iconv \
294         ufs \
295         unionfs \
296         usb \
297         utopia \
298         ${_vesa} \
299         vge \
300         vkbd \
301         ${_vpo} \
302         vr \
303         vx \
304         wb \
305         ${_wi} \
306         wlan \
307         wlan_acl \
308         wlan_amrr \
309         wlan_ccmp \
310         wlan_rssadapt \
311         wlan_tkip \
312         wlan_wep \
313         wlan_xauth \
314         ${_wpi} \
315         ${_wpifw} \
316         ${_x86bios} \
317         ${_xe} \
318         xfs \
319         xl \
320         ${_zfs} \
321         zlib \
322
323 .if ${MACHINE_ARCH} != "powerpc"
324 _syscons=       syscons
325 _vpo=           vpo
326 .endif
327
328 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
329 .if exists(${.CURDIR}/../opencrypto)
330 _crypto=        crypto
331 _cryptodev=     cryptodev
332 .endif
333 .if exists(${.CURDIR}/../crypto)
334 _random=        random
335 .endif
336 .endif
337
338 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
339 _ipfilter=      ipfilter
340 .endif
341
342 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
343 _netgraph=      netgraph
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 _arcnet=        arcnet
363 _bktr=          bktr
364 _cardbus=       cardbus
365 _cbb=           cbb
366 _ce=            ce
367 _coff=          coff
368 _cp=            cp
369 _cpuctl=        cpuctl
370 _cpufreq=       cpufreq
371 _cs=            cs
372 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
373 _cyclic=        cyclic
374 .endif
375 _dpms=          dpms
376 _drm=           drm
377 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
378 _dtrace=        dtrace
379 .endif
380 _ed=            ed
381 _elink=         elink
382 _em=            em
383 _ep=            ep
384 _et=            et
385 _exca=          exca
386 _ext2fs=        ext2fs
387 _fe=            fe
388 _glxsb=         glxsb
389 _i2c=           i2c
390 _ibcs2=         ibcs2
391 _ie=            ie
392 _if_ndis=       if_ndis
393 _igb=           igb
394 _io=            io
395 _lindev=        lindev
396 _linprocfs=     linprocfs
397 _linsysfs=      linsysfs
398 _linux=         linux
399 _mse=           mse
400 .if ${MK_NCP} != "no"
401 _ncp=           ncp
402 .endif
403 _ncv=           ncv
404 _ndis=          ndis
405 _nsp=           nsp
406 .if ${MK_NCP} != "no"
407 _nwfs=          nwfs
408 .endif
409 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
410 _opensolaris=   opensolaris
411 .endif
412 _pccard=        pccard
413 _pcfclock=      pcfclock
414 _pst=           pst
415 _rdma=          rdma
416 _safe=          safe
417 _sbni=          sbni
418 _scsi_low=      scsi_low
419 _smbfs=         smbfs
420 _sound=         sound
421 _speaker=       speaker
422 _splash=        splash
423 _sppp=          sppp
424 _stg=           stg
425 _streams=       streams
426 _svr4=          svr4
427 _tmpfs=         tmpfs
428 _wi=            wi
429 _xe=            xe
430 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
431 _zfs=           zfs
432 .endif
433 .if ${MACHINE} == "i386"
434 _aac=           aac
435 _acpi=          acpi
436 _ahb=           ahb
437 _amdsbwd=       amdsbwd
438 _amdtemp=       amdtemp
439 _arcmsr=        arcmsr
440 _asmc=          asmc
441 _asr=           asr
442 _bios=          bios
443 _ciss=          ciss
444 _cm=            cm
445 _cmx=           cmx
446 _coretemp=      coretemp
447 _ctau=          ctau
448 _dpt=           dpt
449 _ex=            ex
450 _hptiop=        hptiop
451 _hptmv=         hptmv
452 _hptrr=         hptrr
453 _ichwd=         ichwd
454 _ida=           ida
455 _iir=           iir
456 _ipmi=          ipmi
457 _ips=           ips
458 _ipw=           ipw
459 _ipwfw=         ipwfw
460 _iwi=           iwi
461 _iwifw=         iwifw
462 _iwn=           iwn
463 _iwnfw=         iwnfw
464 _ixgb=          ixgb
465 _ixgbe=         ixgbe
466 _mly=           mly
467 _nfe=           nfe
468 _nve=           nve
469 _nvram=         nvram
470 _nxge=          nxge
471 _tpm=           tpm
472 _wpi=           wpi
473 _wpifw=         wpifw
474 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
475 _padlock=       padlock
476 .endif
477 _s3=            s3
478 _twa=           twa
479 _vesa=          vesa
480 _x86bios=       x86bios
481 .elif ${MACHINE} == "pc98"
482 _canbepm=       canbepm
483 _canbus=        canbus
484 _pmc=           pmc
485 _snc=           snc
486 .endif
487 .endif
488
489 .if ${MACHINE_ARCH} == "amd64"
490 _aac=           aac
491 _acpi=          acpi
492 _agp=           agp
493 _an=            an
494 _amdsbwd=       amdsbwd
495 _amdtemp=       amdtemp
496 _arcmsr=        arcmsr
497 _asmc=          asmc
498 _cardbus=       cardbus
499 _cbb=           cbb
500 _cmx=           cmx
501 _ciss=          ciss
502 _coretemp=      coretemp
503 _cpuctl=        cpuctl
504 _cpufreq=       cpufreq
505 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
506 _cyclic=        cyclic
507 .endif
508 _dpms=          dpms
509 _drm=           drm
510 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
511 _dtrace=        dtrace
512 .endif
513 _ed=            ed
514 _et=            et
515 _em=            em
516 _exca=          exca
517 _ext2fs=        ext2fs
518 _hptiop=        hptiop
519 _hptmv=         hptmv
520 _hptrr=         hptrr
521 _i2c=           i2c
522 _ichwd=         ichwd
523 _ida=           ida
524 _if_ndis=       if_ndis
525 _igb=           igb
526 _iir=           iir
527 _io=            io
528 _ipmi=          ipmi
529 _ips=           ips
530 _ipw=           ipw
531 _ipwfw=         ipwfw
532 _iwi=           iwi
533 _iwifw=         iwifw
534 _iwn=           iwn
535 _iwnfw=         iwnfw
536 _ixgb=          ixgb
537 _ixgbe=         ixgbe
538 _lindev=        lindev
539 _linprocfs=     linprocfs
540 _linsysfs=      linsysfs
541 _linux=         linux
542 _mly=           mly
543 _ndis=          ndis
544 _nfe=           nfe
545 _nve=           nve
546 _nvram=         nvram
547 _nxge=          nxge
548 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
549 _opensolaris=   opensolaris
550 .endif
551 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
552 _padlock=       padlock
553 .endif
554 _pccard=        pccard
555 _rdma=          rdma    
556 _s3=            s3
557 _safe=          safe
558 _scsi_low=      scsi_low
559 _smbfs=         smbfs
560 _sound=         sound
561 _speaker=       speaker
562 _splash=        splash
563 _sppp=          sppp
564 _tmpfs=         tmpfs
565 _tpm=           tpm
566 _twa=           twa
567 _vesa=          vesa
568 _x86bios=       x86bios
569 _wi=            wi
570 _wpi=           wpi
571 _wpifw=         wpifw
572 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
573 _zfs=           zfs
574 .endif
575 .endif
576
577 .if ${MACHINE_ARCH} == "ia64"
578 _aac=           aac
579 _aic=           aic
580 _an=            an
581 _arcnet=        arcnet
582 _asr=           asr
583 _bktr=          bktr
584 _cardbus=       cardbus
585 _cbb=           cbb
586 _ciss=          ciss
587 _cm=            cm
588 _cmx=           cmx
589 _coff=          coff
590 _cpufreq=       cpufreq
591 _dpt=           dpt
592 _em=            em
593 _ep=            ep
594 _et=            et
595 _exca=          exca
596 _fe=            fe
597 _hptiop=        hptiop
598 _ida=           ida
599 _igb=           igb
600 _iir=           iir
601 _ips=           ips
602 _mly=           mly
603 _pccard=        pccard
604 _scsi_low=      scsi_low
605 _smbfs=         smbfs
606 _sound=         sound
607 _splash=        splash
608 _sppp=          sppp
609 _streams=       streams
610 _tpm=           tpm
611 _twa=           twa
612 _wi=            wi
613 _xe=            xe
614 .endif
615
616 .if ${MACHINE_ARCH} == "powerpc"
617 _an=            an
618 _bm=            bm
619 _cpufreq=       cpufreq
620 _nvram=         powermac_nvram
621 _smbfs=         smbfs
622 _sound=         sound
623 .endif
624
625 .if ${MACHINE_ARCH} == "sparc64"
626 _auxio=         auxio
627 _em=            em
628 _epic=          epic
629 _i2c=           i2c
630 _igb=           igb
631 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
632 _opensolaris=   opensolaris
633 .endif
634 _sound=         sound
635 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
636 _zfs=           zfs
637 .endif
638 .endif
639
640 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
641 SUBDIR=${MODULES_OVERRIDE}
642 .endif
643
644 .for reject in ${WITHOUT_MODULES}
645 SUBDIR:= ${SUBDIR:N${reject}}
646 .endfor
647
648 # Calling kldxref(8) for each module is expensive.
649 .if !defined(NO_XREF)
650 .MAKEFLAGS+=    -DNO_XREF
651 afterinstall:
652         @if type kldxref >/dev/null 2>&1; then \
653                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
654                 kldxref ${DESTDIR}${KMODDIR}; \
655         fi
656 .endif
657
658 .include <bsd.subdir.mk>