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