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