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