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