]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - sys/modules/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.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_http \
10         ${_acpi} \
11         ae \
12         age \
13         ${_agp} \
14         aha \
15         ${_ahb} \
16         ${_aic} \
17         aic7xxx \
18         aio \
19         ${_amd} \
20         ale \
21         amr \
22         ${_an} \
23         ${_aout} \
24         ${_apm} \
25         ${_ar} \
26         ${_arcmsr} \
27         ${_arcnet} \
28         ${_arl} \
29         ${_asr} \
30         ata \
31         ath \
32         aue \
33         ${_auxio} \
34         ${_awi} \
35         axe \
36         bce \
37         bfe \
38         bge \
39         ${_bios} \
40         ${_bktr} \
41         ${_bm} \
42         bridgestp \
43         cam \
44         ${_canbepm} \
45         ${_canbus} \
46         ${_cardbus} \
47         ${_cbb} \
48         cd9660 \
49         cd9660_iconv \
50         cdce \
51         ${_ce} \
52         ${_ciss} \
53         ${_cm} \
54         ${_cmx} \
55         coda \
56         coda5 \
57         ${_coff} \
58         ${_coretemp} \
59         ${_cp} \
60         ${_cpuctl} \
61         ${_cpufreq} \
62         ${_crypto} \
63         ${_cryptodev} \
64         ${_cs} \
65         ${_ctau} \
66         cue \
67         cxgb \
68         ${_cx} \
69         ${_cyclic} \
70         dc \
71         dcons \
72         dcons_crom \
73         de \
74         ${_digi} \
75         ${_dpms} \
76         ${_dpt} \
77         ${_drm} \
78         ${_dtrace} \
79         dummynet \
80         ${_ed} \
81         ${_elink} \
82         ${_em} \
83         en \
84         ${_ep} \
85         ${_et} \
86         ${_ex} \
87         ${_exca} \
88         ${_ext2fs} \
89         fatm \
90         fdc \
91         fdescfs \
92         ${_fe} \
93         firewire \
94         firmware \
95         fxp \
96         gem \
97         geom \
98         ${_glxsb} \
99         hatm \
100         hifn \
101         hme \
102         ${_hptiop} \
103         ${_hptmv} \
104         ${_hptrr} \
105         hwpmc \
106         ${_i2c} \
107         ${_ibcs2} \
108         ${_ichwd} \
109         ${_ida} \
110         ${_ie} \
111         if_bridge \
112         if_disc \
113         if_edsc \
114         if_ef \
115         if_faith \
116         if_gif \
117         if_gre \
118         if_lagg \
119         ${_if_ndis} \
120         if_ppp \
121         if_sl \
122         if_stf \
123         if_tap \
124         if_tun \
125         if_vlan \
126         ${_igb} \
127         ${_iir} \
128         ${_io} \
129         ipdivert \
130         ${_ipfilter} \
131         ipfw \
132         ipfw_nat \
133         ip_mroute_mod \
134         ${_ipmi} \
135         ${_ips} \
136         ${_ipw} \
137         ${_ipwfw} \
138         iscsi \
139         isp \
140         ispfw \
141         ${_iwi} \
142         ${_iwifw} \
143         ${_ixgb} \
144         jme \
145         joy \
146         ${_k8temp} \
147         kbdmux \
148         krpc \
149         kue \
150         le \
151         lge \
152         libalias \
153         libiconv \
154         libmbpool \
155         libmchain \
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         mxge \
189         my \
190         ${_ncp} \
191         ${_ncv} \
192         ${_ndis} \
193         netgraph \
194         ${_nfe} \
195         nfsclient \
196         nfslockd \
197         nfsserver \
198         nge \
199         nmdm \
200         ${_nsp} \
201         ntfs \
202         ntfs_iconv \
203         ${_nxge} \
204         nullfs \
205         ${_nve} \
206         ${_nvram} \
207         ${_nwfs} \
208         ${_oltr} \
209         ${_opensolaris} \
210         ${_padlock} \
211         patm \
212         ${_pccard} \
213         ${_pcfclock} \
214         pcn \
215         ${_pecoff} \
216         ${_pf} \
217         ${_pflog} \
218         plip \
219         ${_pmc} \
220         portalfs \
221         ppbus \
222         ppc \
223         ppi \
224         pps \
225         procfs \
226         pseudofs \
227         ${_pst} \
228         puc \
229         ral \
230         ${_random} \
231         ${_ray} \
232         rc \
233         rc4 \
234         ${_rdma} \
235         re \
236         reiserfs \
237         rl \
238         rp \
239         rue \
240         rum \
241         ${_s3} \
242         ${_safe} \
243         ${_sbni} \
244         sbsh \
245         scc \
246         scd \
247         ${_scsi_low} \
248         sdhci \
249         sem \
250         sf \
251         ${_sio} \
252         sis \
253         sk \
254         ${_smbfs} \
255         sn \
256         ${_snc} \
257         snp \
258         ${_sound} \
259         ${_speaker} \
260         ${_splash} \
261         ${_sppp} \
262         ${_sr} \
263         ste \
264         ${_stg} \
265         stge \
266         ${_streams} \
267         sym \
268         ${_syscons} \
269         sysvipc \
270         ti \
271         tl \
272         ${_tmpfs} \
273         trm \
274         ${_twa} \
275         twe \
276         tx \
277         txp \
278         u3g \
279         uark \
280         uart \
281         ubsa \
282         ubsec \
283         ubser \
284         ucom \
285         ucycom \
286         udav \
287         udbp \
288         udf \
289         udf_iconv \
290         ufm \
291         ${_ufs} \
292         ufoma \
293         uftdi \
294         ugen \
295         uhid \
296         ukbd \
297         ulpt \
298         umass \
299         umct \
300         umodem \
301         ums \
302         unionfs \
303         uplcom \
304         ural \
305         urio \
306         usb \
307         uscanner \
308         uslcom \
309         utopia \
310         uvisor \
311         uvscom \
312         ${_vesa} \
313         vge \
314         vkbd \
315         ${_vpo} \
316         vr \
317         vx \
318         wb \
319         ${_wi} \
320         wlan \
321         wlan_scan_ap \
322         wlan_scan_sta \
323         wlan_acl \
324         wlan_amrr \
325         wlan_ccmp \
326         wlan_tkip \
327         wlan_wep \
328         wlan_xauth \
329         ${_wpi} \
330         ${_wpifw} \
331         ${_xe} \
332         xfs \
333         xl \
334         ${_zfs} \
335         zlib \
336         zyd
337
338 .if ${MACHINE_ARCH} != "powerpc"
339 _syscons=       syscons
340 _vpo=           vpo
341 .endif
342
343 .if defined(ALL_MODULES)
344 _ufs=           ufs
345 .endif
346
347 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
348 .if exists(${.CURDIR}/../opencrypto)
349 _crypto=        crypto
350 _cryptodev=     cryptodev
351 .endif
352 .if exists(${.CURDIR}/../crypto)
353 _random=        random
354 .endif
355 .endif
356
357 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
358 _ipfilter=      ipfilter
359 .endif
360
361 .if ${MK_PF} != "no" || defined(ALL_MODULES)
362 _pf=            pf
363 _pflog=         pflog
364 .endif
365
366 .if ${MACHINE_ARCH} == "i386"
367 # XXX some of these can move to the general case when de-i386'ed
368 # XXX some of these can move now, but are untested on other architectures.
369 _3dfx=          3dfx
370 _3dfx_linux=    3dfx_linux
371 _agp=           agp
372 _aic=           aic
373 _amd=           amd
374 _an=            an
375 _aout=          aout
376 _apm=           apm
377 _ar=            ar
378 _arcnet=        arcnet
379 _awi=           awi
380 _bktr=          bktr
381 _cardbus=       cardbus
382 _cbb=           cbb
383 _ce=            ce
384 _coff=          coff
385 _cp=            cp
386 _cpuctl=        cpuctl
387 _cpufreq=       cpufreq
388 _cs=            cs
389 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
390 _cyclic=        cyclic
391 .endif
392 _digi=          digi
393 _dpms=          dpms
394 _drm=           drm
395 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
396 _dtrace=        dtrace
397 .endif
398 _ed=            ed
399 _elink=         elink
400 _em=            em
401 _ep=            ep
402 _et=            et
403 _exca=          exca
404 _ext2fs=        ext2fs
405 _fe=            fe
406 _glxsb=         glxsb
407 _i2c=           i2c
408 _ibcs2=         ibcs2
409 _ie=            ie
410 _if_ndis=       if_ndis
411 _igb=           igb
412 _io=            io
413 _linprocfs=     linprocfs
414 _linsysfs=      linsysfs
415 _linux=         linux
416 _mse=           mse
417 .if ${MK_NCP} != "no"
418 _ncp=           ncp
419 .endif
420 _ncv=           ncv
421 _ndis=          ndis
422 _nsp=           nsp
423 .if ${MK_NCP} != "no"
424 _nwfs=          nwfs
425 .endif
426 _oltr=          oltr
427 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
428 _opensolaris=   opensolaris
429 .endif
430 _pccard=        pccard
431 _pcfclock=      pcfclock
432 _pecoff=        pecoff
433 _pst=           pst
434 _ray=           ray
435 _rdma=          rdma
436 _safe=          safe
437 _sbni=          sbni
438 _scsi_low=      scsi_low
439 _sio=           sio
440 _smbfs=         smbfs
441 _sound=         sound
442 _speaker=       speaker
443 _splash=        splash
444 _sppp=          sppp
445 _sr=            sr
446 _stg=           stg
447 _streams=       streams
448 _tmpfs=         tmpfs
449 _wi=            wi
450 _xe=            xe
451 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
452 _zfs=           zfs
453 .endif
454 .if ${MACHINE} == "i386"
455 _aac=           aac
456 _acpi=          acpi
457 _ahb=           ahb
458 _arcmsr=        arcmsr
459 _arl=           arl
460 _asr=           asr
461 _bios=          bios
462 _ciss=          ciss
463 _cm=            cm
464 _cmx=           cmx
465 _coretemp=      coretemp
466 _ctau=          ctau
467 _cx=            cx
468 _dpt=           dpt
469 _ex=            ex
470 _hptiop=        hptiop
471 _hptmv=         hptmv
472 _hptrr=         hptrr
473 _ichwd=         ichwd
474 _ida=           ida
475 _iir=           iir
476 _ipmi=          ipmi
477 _ips=           ips
478 _ipw=           ipw
479 _ipwfw=         ipwfw
480 _iwi=           iwi
481 _iwifw=         iwifw
482 _ixgb=          ixgb
483 _mly=           mly
484 _nfe=           nfe
485 _nve=           nve
486 _nvram=         nvram
487 _nxge=          nxge
488 _wpi=           wpi
489 _wpifw=         wpifw
490 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
491 .if exists(${.CURDIR}/../crypto/via)
492 _padlock=       padlock
493 .endif
494 .endif
495 _s3=            s3
496 _twa=           twa
497 _vesa=          vesa
498 .elif ${MACHINE} == "pc98"
499 _canbepm=       canbepm
500 _canbus=        canbus
501 _pmc=           pmc
502 _snc=           snc
503 .endif
504 .endif
505
506 .if ${MACHINE_ARCH} == "amd64"
507 _aac=           aac
508 _acpi=          acpi
509 _agp=           agp
510 _an=            an
511 _arcmsr=        arcmsr
512 _cardbus=       cardbus
513 _cbb=           cbb
514 _cmx=           cmx
515 _ciss=          ciss
516 _coretemp=      coretemp
517 _cpuctl=        cpuctl
518 _cpufreq=       cpufreq
519 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
520 _cyclic=        cyclic
521 .endif
522 _digi=          digi
523 _drm=           drm
524 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
525 _dtrace=        dtrace
526 .endif
527 _ed=            ed
528 _et=            et
529 _em=            em
530 _exca=          exca
531 _ext2fs=        ext2fs
532 _hptiop=        hptiop
533 _hptmv=         hptmv
534 _hptrr=         hptrr
535 _i2c=           i2c
536 _ichwd=         ichwd
537 _ida=           ida
538 _if_ndis=       if_ndis
539 _igb=           igb
540 _iir=           iir
541 _io=            io
542 _ipmi=          ipmi
543 _ips=           ips
544 _ipw=           ipw
545 _ipwfw=         ipwfw
546 _ixgb=          ixgb
547 _k8temp=        k8temp
548 _linprocfs=     linprocfs
549 _linsysfs=      linsysfs
550 _linux=         linux
551 _mly=           mly
552 _ndis=          ndis
553 _nfe=           nfe
554 _nve=           nve
555 _nvram=         nvram
556 _nxge=          nxge
557 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
558 _opensolaris=   opensolaris
559 .endif
560 _pccard=        pccard
561 _rdma=          rdma    
562 _safe=          safe
563 _scsi_low=      scsi_low
564 _smbfs=         smbfs
565 _sound=         sound
566 _speaker=       speaker
567 _sppp=          sppp
568 _tmpfs=         tmpfs
569 _twa=           twa
570 _wi=            wi
571 _wpi=           wpi
572 _wpifw=         wpifw
573 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
574 _zfs=           zfs
575 .endif
576 .endif
577
578 .if ${MACHINE_ARCH} == "ia64"
579 # Modules not enabled on ia64 (as compared to i386) include:
580 #       aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
581 #       nsp oltr pecoff s3 sbni stg vesa
582 # acpi is not enabled because it is broken as a module on ia64
583 _aic=           aic
584 #_ar=           ar      not 64-bit clean
585 _arcnet=        arcnet
586 _asr=           asr
587 _an=            an
588 _bktr=          bktr
589 _cardbus=       cardbus
590 _cbb=           cbb
591 _ciss=          ciss
592 _cm=            cm
593 _cmx=           cmx
594 _coff=          coff
595 _cpufreq=       cpufreq
596 _em=            em
597 _ep=            ep
598 _exca=          exca
599 _fe=            fe
600 _igb=           igb
601 _iir=           iir
602 _mly=           mly
603 _pccard=        pccard
604 _scsi_low=      scsi_low
605 _smbfs=         smbfs
606 _sound=         sound
607 _splash=        splash
608 _sppp=          sppp
609 #_sr=           sr              not 64bit clean
610 _streams=       streams
611 _wi=            wi
612 _xe=            xe
613 .endif
614
615 .if ${MACHINE_ARCH} == "powerpc"
616 _an=            an
617 _bm=            bm
618 _nvram=         powermac_nvram
619 _smbfs=         smbfs
620 .endif
621
622 .if ${MACHINE_ARCH} == "sparc64"
623 _auxio=         auxio
624 _em=            em
625 _i2c=           i2c
626 _igb=           igb
627 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
628 _opensolaris=   opensolaris
629 .endif
630 _sound=         sound
631 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
632 _zfs=           zfs
633 .endif
634 .endif
635
636 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
637 SUBDIR=${MODULES_OVERRIDE}
638 .endif
639
640 .for reject in ${WITHOUT_MODULES}
641 SUBDIR:= ${SUBDIR:N${reject}}
642 .endfor
643
644 # Calling kldxref(8) for each module is expensive.
645 .if !defined(NO_XREF)
646 .MAKEFLAGS+=    -DNO_XREF
647 afterinstall:
648         @if type kldxref >/dev/null 2>&1; then \
649                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
650                 kldxref ${DESTDIR}${KMODDIR}; \
651         fi
652 .endif
653
654 .include <bsd.subdir.mk>