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