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