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