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