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