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