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