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