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