xref: /freebsd/sys/modules/Makefile (revision 1e413cf93298b5b97441a21d9a50fdcd0ee9945e)
1# $FreeBSD$
2
3.include <bsd.own.mk>
4
5SUBDIR=	${_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	${_ipmi} \
129	ip_mroute_mod \
130	${_ips} \
131	${_ipw} \
132	${_ipwfw} \
133	iscsi \
134	isp \
135	ispfw \
136	${_iwi} \
137	${_iwifw} \
138	${_ixgb} \
139	joy \
140	kbdmux \
141	kue \
142	le \
143	lge \
144	libalias \
145	libiconv \
146	libmbpool \
147	libmchain \
148	${_linprocfs} \
149	${_linsysfs} \
150	${_linux} \
151	lmc \
152	lpt \
153	mac_biba \
154	mac_bsdextended \
155	mac_ifoff \
156	mac_lomac \
157	mac_mls \
158	mac_none \
159	mac_partition \
160	mac_portacl \
161	mac_seeotheruids \
162	mac_stub \
163	mac_test \
164	mcd \
165	md \
166	mem \
167	mfi \
168	mii \
169	mlx \
170	${_mly} \
171	mpt \
172	mqueue \
173	msdosfs \
174	msdosfs_iconv \
175	${_mse} \
176	msk \
177	mxge \
178	my \
179	${_ncp} \
180	${_ncv} \
181	${_ndis} \
182	netgraph \
183	${_nfe} \
184	nfsclient \
185	nfsserver \
186	nge \
187	nmdm \
188	${_nsp} \
189	ntfs \
190	ntfs_iconv \
191	nullfs \
192	${_nve} \
193	${_nvram} \
194	${_nwfs} \
195	${_nxge} \
196	${_oltr} \
197	${_padlock} \
198	patm \
199	${_pccard} \
200	${_pcfclock} \
201	pcn \
202	${_pecoff} \
203	${_pf} \
204	${_pflog} \
205	plip \
206	${_pmc} \
207	portalfs \
208	ppbus \
209	ppc \
210	ppi \
211	pps \
212	procfs \
213	pseudofs \
214	${_pst} \
215	puc \
216	ral \
217	${_random} \
218	${_ray} \
219	rc \
220	rc4 \
221	re \
222	reiserfs \
223	rl \
224	rp \
225	${_rr232x} \
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_rr232x=	rr232x
479_s3=		s3
480_twa=		twa
481_vesa=		vesa
482.elif ${MACHINE} == "pc98"
483_canbepm=	canbepm
484_canbus=	canbus
485_pmc=		pmc
486_snc=		snc
487.endif
488.endif
489
490.if ${MACHINE_ARCH} == "amd64"
491_aac=		aac
492_acpi=		acpi
493_agp=		agp
494_an=		an
495_arcmsr=	arcmsr
496_asmc=		asmc
497_ath=		ath
498_ath_hal=	ath_hal
499_ath_rate_amrr=	ath_rate_amrr
500_ath_rate_onoe=	ath_rate_onoe
501_ath_rate_sample=ath_rate_sample
502_cardbus=	cardbus
503_cbb=		cbb
504_ciss=		ciss
505_coretemp=	coretemp
506_cpufreq=	cpufreq
507_digi=		digi
508_drm=		drm
509_ed=		ed
510_em=		em
511_exca=		exca
512_ext2fs=	ext2fs
513_hptiop=	hptiop
514_hptmv=		hptmv
515_hptrr=		hptrr
516_i2c=		i2c
517_ichwd=		ichwd
518_ida=		ida
519_if_ndis=	if_ndis
520_iir=		iir
521_io=		io
522_ipmi=		ipmi
523_ips=		ips
524_ipw=		ipw
525_ipwfw=		ipwfw
526_ixgb=		ixgb
527_linprocfs=	linprocfs
528_linsysfs=	linsysfs
529_linux=		linux
530_mly=		mly
531_ndis=		ndis
532_nfe=		nfe
533_nve=		nve
534_nvram=		nvram
535_nxge=		nxge
536_pccard=	pccard
537_rr232x=	rr232x
538_safe=		safe
539_scsi_low=	scsi_low
540_smbfs=		smbfs
541_sound=		sound
542_speaker=	speaker
543_sppp=		sppp
544_tmpfs=		tmpfs
545_twa=		twa
546_wi=		wi
547_wpi=		wpi
548_wpifw=		wpifw
549.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
550_zfs=		zfs
551.endif
552.endif
553
554.if ${MACHINE_ARCH} == "ia64"
555# Modules not enabled on ia64 (as compared to i386) include:
556#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
557#	nsp oltr pecoff s3 sbni stg vesa
558# acpi is not enabled because it is broken as a module on ia64
559_aic=		aic
560#_ar=		ar	not 64-bit clean
561_an=		an
562_arcnet=	arcnet
563_asr=		asr
564_bktr=		bktr
565_cardbus=	cardbus
566_cbb=		cbb
567_ciss=		ciss
568_cm=		cm
569_coff=		coff
570_cpufreq=	cpufreq
571_em=		em
572_ep=		ep
573_exca=		exca
574_fe=		fe
575_hfa=		hfa
576_iir=		iir
577_mly=		mly
578_pccard=	pccard
579_scsi_low=	scsi_low
580_smbfs=		smbfs
581_sound=		sound
582_splash=	splash
583_sppp=		sppp
584#_sr=		sr		not 64bit clean
585_streams=	streams
586_wi=		wi
587_xe=		xe
588.endif
589
590.if ${MACHINE_ARCH} == "powerpc"
591_an=		an
592_ath=		ath
593_ath_hal=	ath_hal
594_ath_rate_amrr=	ath_rate_amrr
595_ath_rate_onoe=	ath_rate_onoe
596_ath_rate_sample=ath_rate_sample
597_nvram=		powermac_nvram
598_smbfs=		smbfs
599.endif
600
601.if ${MACHINE_ARCH} == "sparc64"
602_ath=		ath
603_ath_hal=	ath_hal
604_ath_rate_amrr=	ath_rate_amrr
605_ath_rate_onoe=	ath_rate_onoe
606_ath_rate_sample=ath_rate_sample
607_auxio=		auxio
608_em=		em
609_i2c=		i2c
610_sound=		sound
611.endif
612
613.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
614SUBDIR=${MODULES_OVERRIDE}
615.endif
616
617.for reject in ${WITHOUT_MODULES}
618SUBDIR:= ${SUBDIR:N${reject}}
619.endfor
620
621# Calling kldxref(8) for each module is expensive.
622.if !defined(NO_XREF)
623.MAKEFLAGS+=	-DNO_XREF
624afterinstall:
625	@if type kldxref >/dev/null 2>&1; then \
626		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
627		kldxref ${DESTDIR}${KMODDIR}; \
628	fi
629.endif
630
631.include <bsd.subdir.mk>
632