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