xref: /freebsd/sys/modules/Makefile (revision 83825b7109e5dd034c48dfba10503ecfd2002feb)
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	age \
13	${_agp} \
14	aha \
15	${_ahb} \
16	${_aic} \
17	aic7xxx \
18	aio \
19	${_amd} \
20	amr \
21	${_an} \
22	${_aout} \
23	${_apm} \
24	${_ar} \
25	${_arcmsr} \
26	${_arcnet} \
27	${_asmc} \
28	${_asr} \
29	ata \
30	${_ath} \
31	${_ath_hal} \
32	${_ath_rate_amrr} \
33	${_ath_rate_onoe} \
34	${_ath_rate_sample} \
35	aue \
36	${_auxio} \
37	axe \
38	bce \
39	bfe \
40	bge \
41	${_bios} \
42	${_bktr} \
43	${_bm} \
44	bridgestp \
45	cam \
46	${_canbepm} \
47	${_canbus} \
48	${_cardbus} \
49	${_cbb} \
50	cd9660 \
51	cd9660_iconv \
52	cdce \
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	cue \
69	cxgb \
70	${_cyclic} \
71	dc \
72	dcons \
73	dcons_crom \
74	de \
75	${_dpt} \
76	${_drm} \
77	${_dtrace} \
78	dummynet \
79	${_ed} \
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	mpt \
180	mqueue \
181	msdosfs \
182	msdosfs_iconv \
183	${_mse} \
184	msk \
185	mxge \
186	my \
187	${_ncp} \
188	${_ncv} \
189	${_ndis} \
190	netgraph \
191	${_nfe} \
192	nfsclient \
193	nfslockd \
194	nfsserver \
195	nge \
196	nmdm \
197	${_nsp} \
198	ntfs \
199	ntfs_iconv \
200	nullfs \
201	${_nve} \
202	${_nvram} \
203	${_nwfs} \
204	${_nxge} \
205	${_opensolaris} \
206	${_padlock} \
207	patm \
208	${_pccard} \
209	${_pcfclock} \
210	pcn \
211	${_pf} \
212	${_pflog} \
213	plip \
214	${_pmc} \
215	portalfs \
216	ppbus \
217	ppc \
218	ppi \
219	pps \
220	procfs \
221	pseudofs \
222	${_pst} \
223	puc \
224	ral \
225	${_random} \
226	${_ray} \
227	rc4 \
228	${_rdma} \
229	re \
230	reiserfs \
231	rl \
232	rue \
233	rum \
234	${_s3} \
235	${_safe} \
236	scc \
237	scd \
238	${_scsi_low} \
239	sem \
240	sf \
241	sis \
242	sk \
243	${_smbfs} \
244	sn \
245	${_snc} \
246	${_sound} \
247	${_speaker} \
248	${_splash} \
249	${_sppp} \
250	${_sr} \
251	ste \
252	${_stg} \
253	stge \
254	${_streams} \
255	sym \
256	${_syscons} \
257	sysvipc \
258	ti \
259	tl \
260	${_tmpfs} \
261	trm \
262	${_twa} \
263	twe \
264	tx \
265	txp \
266	uark \
267	uart \
268	ubsa \
269	ubsec \
270	ucom \
271	udav \
272	udbp \
273	udf \
274	udf_iconv \
275	ufm \
276	${_ufs} \
277	uftdi \
278	ugen \
279	uhid \
280	ukbd \
281	ulpt \
282	umass \
283	umct \
284	umodem \
285	ums \
286	unionfs \
287	uplcom \
288	ural \
289	urio \
290	usb \
291	uscanner \
292	uslcom \
293	utopia \
294	uvisor \
295	uvscom \
296	${_vesa} \
297	vge \
298	vkbd \
299	${_vpo} \
300	vr \
301	vx \
302	wb \
303	${_wi} \
304	wlan \
305	wlan_acl \
306	wlan_amrr \
307	wlan_ccmp \
308	wlan_rssadapt \
309	wlan_tkip \
310	wlan_wep \
311	wlan_xauth \
312	${_wpi} \
313	${_wpifw} \
314	${_xe} \
315	xfs \
316	xl \
317	${_zfs} \
318	zlib \
319	zyd
320
321.if ${MACHINE_ARCH} != "powerpc"
322_syscons=	syscons
323_vpo=		vpo
324.endif
325
326.if defined(ALL_MODULES)
327_ufs=		ufs
328.endif
329
330.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
331.if exists(${.CURDIR}/../opencrypto)
332_crypto=	crypto
333_cryptodev=	cryptodev
334.endif
335.if exists(${.CURDIR}/../crypto)
336_random=	random
337.endif
338.endif
339
340.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
341_ipfilter=	ipfilter
342.endif
343
344.if ${MK_PF} != "no" || defined(ALL_MODULES)
345_pf=		pf
346_pflog=		pflog
347.endif
348
349.if ${MACHINE_ARCH} == "i386"
350# XXX some of these can move to the general case when de-i386'ed
351# XXX some of these can move now, but are untested on other architectures.
352_3dfx=		3dfx
353_3dfx_linux=	3dfx_linux
354_agp=		agp
355_aic=		aic
356_amd=		amd
357_an=		an
358_aout=		aout
359_apm=		apm
360_ar=		ar
361_arcnet=	arcnet
362_ath=		ath
363_ath_hal=	ath_hal
364_ath_rate_amrr=	ath_rate_amrr
365_ath_rate_onoe=	ath_rate_onoe
366_ath_rate_sample=ath_rate_sample
367_bktr=		bktr
368_cardbus=	cardbus
369_cbb=		cbb
370_ce=		ce
371_coff=		coff
372_cp=		cp
373_cpuctl=	cpuctl
374_cpufreq=	cpufreq
375_cs=		cs
376.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
377_cyclic=	cyclic
378.endif
379_drm=		drm
380.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
381_dtrace=	dtrace
382.endif
383_ed=		ed
384_elink=		elink
385_em=		em
386_ep=		ep
387_et=		et
388_exca=		exca
389_ext2fs=	ext2fs
390_fe=		fe
391_glxsb=		glxsb
392_i2c=		i2c
393_ibcs2=		ibcs2
394_ie=		ie
395_if_ndis=	if_ndis
396_igb=		igb
397_io=		io
398_linprocfs=	linprocfs
399_linsysfs=	linsysfs
400_linux=		linux
401_mse=		mse
402.if ${MK_NCP} != "no"
403_ncp=		ncp
404.endif
405_ncv=		ncv
406_ndis=		ndis
407_nsp=		nsp
408.if ${MK_NCP} != "no"
409_nwfs=		nwfs
410.endif
411.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
412_opensolaris=	opensolaris
413.endif
414_pccard=	pccard
415_pcfclock=	pcfclock
416_pst=		pst
417_ray=		ray
418_rdma=		rdma
419_safe=		safe
420_scsi_low=	scsi_low
421_smbfs=		smbfs
422_sound=		sound
423_speaker=	speaker
424_splash=	splash
425_sppp=		sppp
426_sr=		sr
427_stg=		stg
428_streams=	streams
429_tmpfs=		tmpfs
430_wi=		wi
431_xe=		xe
432.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
433_zfs=		zfs
434.endif
435.if ${MACHINE} == "i386"
436_aac=		aac
437_acpi=		acpi
438_ahb=		ahb
439_arcmsr=	arcmsr
440_asmc=		asmc
441_asr=		asr
442_bios=		bios
443_ciss=		ciss
444_cm=		cm
445_cmx=		cmx
446_coretemp=	coretemp
447_ctau=		ctau
448_dpt=		dpt
449_ex=		ex
450_hptiop=	hptiop
451_hptmv=		hptmv
452_hptrr=		hptrr
453_ichwd=		ichwd
454_ida=		ida
455_iir=		iir
456_ipmi=		ipmi
457_ips=		ips
458_ipw=		ipw
459_ipwfw=		ipwfw
460_iwi=		iwi
461_iwifw=		iwifw
462_iwn=		iwn
463_iwnfw=		iwnfw
464_ixgb=		ixgb
465_mly=		mly
466_nfe=		nfe
467_nve=		nve
468_nvram=		nvram
469_nxge=		nxge
470_wpi=		wpi
471_wpifw=		wpifw
472.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
473.if exists(${.CURDIR}/../crypto/via)
474_padlock=	padlock
475.endif
476.endif
477_s3=		s3
478_twa=		twa
479_vesa=		vesa
480.elif ${MACHINE} == "pc98"
481_canbepm=	canbepm
482_canbus=	canbus
483_pmc=		pmc
484_snc=		snc
485.endif
486.endif
487
488.if ${MACHINE_ARCH} == "amd64"
489_aac=		aac
490_acpi=		acpi
491_agp=		agp
492_an=		an
493_arcmsr=	arcmsr
494_asmc=		asmc
495_ath=		ath
496_ath_hal=	ath_hal
497_ath_rate_amrr=	ath_rate_amrr
498_ath_rate_onoe=	ath_rate_onoe
499_ath_rate_sample=ath_rate_sample
500_cardbus=	cardbus
501_cbb=		cbb
502_cmx=		cmx
503_ciss=		ciss
504_coretemp=	coretemp
505_cpuctl=	cpuctl
506_cpufreq=	cpufreq
507.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
508_cyclic=	cyclic
509.endif
510_drm=		drm
511.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
512_dtrace=	dtrace
513.endif
514_ed=		ed
515_et=		et
516_em=		em
517_exca=		exca
518_ext2fs=	ext2fs
519_hptiop=	hptiop
520_hptmv=		hptmv
521_hptrr=		hptrr
522_i2c=		i2c
523_ichwd=		ichwd
524_ida=		ida
525_if_ndis=	if_ndis
526_igb=		igb
527_iir=		iir
528_io=		io
529_ipmi=		ipmi
530_ips=		ips
531_ipw=		ipw
532_ipwfw=		ipwfw
533_iwn=		iwn
534_iwnfw=		iwnfw
535_ixgb=		ixgb
536_k8temp=	k8temp
537_linprocfs=	linprocfs
538_linsysfs=	linsysfs
539_linux=		linux
540_mly=		mly
541_ndis=		ndis
542_nfe=		nfe
543_nve=		nve
544_nvram=		nvram
545_nxge=		nxge
546.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
547_opensolaris=	opensolaris
548.endif
549_pccard=	pccard
550_rdma=		rdma
551_safe=		safe
552_scsi_low=	scsi_low
553_smbfs=		smbfs
554_sound=		sound
555_speaker=	speaker
556_sppp=		sppp
557_tmpfs=		tmpfs
558_twa=		twa
559_wi=		wi
560_wpi=		wpi
561_wpifw=		wpifw
562.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
563_zfs=		zfs
564.endif
565.endif
566
567.if ${MACHINE_ARCH} == "ia64"
568# Modules not enabled on ia64 (as compared to i386) include:
569#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
570#	nsp s3 stg vesa
571# acpi is not enabled because it is broken as a module on ia64
572_aic=		aic
573#_ar=		ar	not 64-bit clean
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#_sr=		sr		not 64bit clean
599_streams=	streams
600_wi=		wi
601_xe=		xe
602.endif
603
604.if ${MACHINE_ARCH} == "powerpc"
605_an=		an
606_ath=		ath
607_ath_hal=	ath_hal
608_ath_rate_amrr=	ath_rate_amrr
609_ath_rate_onoe=	ath_rate_onoe
610_ath_rate_sample=ath_rate_sample
611_bm=		bm
612_nvram=		powermac_nvram
613_smbfs=		smbfs
614.endif
615
616.if ${MACHINE_ARCH} == "sparc64"
617_ath=		ath
618_ath_hal=	ath_hal
619_ath_rate_amrr=	ath_rate_amrr
620_ath_rate_onoe=	ath_rate_onoe
621_ath_rate_sample=ath_rate_sample
622_auxio=		auxio
623_em=		em
624_i2c=		i2c
625_igb=		igb
626_sound=		sound
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