xref: /freebsd/sys/modules/Makefile (revision acbfc85b17d797dccd4d713fd532f4704539c84e)
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	${_hptiop} \
97	${_hptmv} \
98	hwpmc \
99	${_i2c} \
100	${_ibcs2} \
101	${_ichwd} \
102	${_ida} \
103	${_idt} \
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_ppp \
115	if_sl \
116	if_stf \
117	if_tap \
118	if_tun \
119	if_vlan \
120	${_iir} \
121	${_io} \
122	ipdivert \
123	${_ipfilter} \
124	ipfw \
125	ip_mroute_mod \
126	${_ipmi} \
127	${_ips} \
128	${_ipw} \
129	${_ipwfw} \
130	iscsi \
131	isp \
132	ispfw \
133	${_iwi} \
134	${_iwifw} \
135	${_ixgb} \
136	joy \
137	kbdmux \
138	kue \
139	le \
140	lge \
141	libalias \
142	libiconv \
143	libmbpool \
144	libmchain \
145	${_linprocfs} \
146	${_linsysfs} \
147	${_linux} \
148	lmc \
149	lpt \
150	mac_biba \
151	mac_bsdextended \
152	mac_ifoff \
153	mac_lomac \
154	mac_mls \
155	mac_none \
156	mac_partition \
157	mac_portacl \
158	mac_seeotheruids \
159	mac_stub \
160	mac_test \
161	mcd \
162	md \
163	mem \
164	mfi \
165	mii \
166	mlx \
167	${_mly} \
168	mpt \
169	mqueue \
170	msdosfs \
171	msdosfs_iconv \
172	${_mse} \
173	msk \
174	mxge \
175	my \
176	${_ncp} \
177	${_ncv} \
178	${_ndis} \
179	netgraph \
180	${_nfe} \
181	nfsclient \
182	nfsserver \
183	nge \
184	nmdm \
185	${_nsp} \
186	ntfs \
187	ntfs_iconv \
188	${_nxge} \
189	nullfs \
190	${_nve} \
191	${_nwfs} \
192	${_oltr} \
193	${_padlock} \
194	patm \
195	${_pccard} \
196	${_pcfclock} \
197	pcn \
198	${_pecoff} \
199	${_pf} \
200	${_pflog} \
201	plip \
202	${_pmc} \
203	portalfs \
204	${_powermac_nvram} \
205	ppbus \
206	ppc \
207	ppi \
208	pps \
209	procfs \
210	pseudofs \
211	${_pst} \
212	puc \
213	ral \
214	${_random} \
215	${_ray} \
216	rc \
217	rc4 \
218	re \
219	reiserfs \
220	rl \
221	rp \
222	${_rr232x} \
223	rue \
224	rum \
225	${_s3} \
226	${_safe} \
227	${_sbni} \
228	sbsh \
229	scc \
230	scd \
231	${_scsi_low} \
232	sem \
233	sf \
234	${_sio} \
235	sis \
236	sk \
237	${_smbfs} \
238	sn \
239	${_snc} \
240	snp \
241	${_sound} \
242	${_speaker} \
243	${_splash} \
244	${_sppp} \
245	${_sr} \
246	ste \
247	${_stg} \
248	stge \
249	${_streams} \
250	sym \
251	${_syscons} \
252	sysvipc \
253	ti \
254	tl \
255	${_tmpfs} \
256	trm \
257	${_twa} \
258	twe \
259	tx \
260	txp \
261	uark \
262	uart \
263	ubsa \
264	ubsec \
265	ubser \
266	ucom \
267	ucycom \
268	udav \
269	udbp \
270	udf \
271	udf_iconv \
272	ufm \
273	${_ufs} \
274	ufoma \
275	uftdi \
276	ugen \
277	uhid \
278	ukbd \
279	ulpt \
280	umass \
281	umct \
282	umodem \
283	ums \
284	unionfs \
285	uplcom \
286	ural \
287	urio \
288	usb \
289	uscanner \
290	utopia \
291	uvisor \
292	uvscom \
293	${_vesa} \
294	vge \
295	vkbd \
296	${_vpo} \
297	vr \
298	vx \
299	wb \
300	${_wi} \
301	wlan \
302	wlan_scan_ap \
303	wlan_scan_sta \
304	wlan_acl \
305	wlan_amrr \
306	wlan_ccmp \
307	wlan_tkip \
308	wlan_wep \
309	wlan_xauth \
310	${_xe} \
311	xfs \
312	xl \
313	${_zfs} \
314	zlib
315
316.if ${MACHINE_ARCH} != "powerpc"
317_syscons=	syscons
318_vpo=		vpo
319.endif
320
321.if defined(ALL_MODULES)
322_ufs=		ufs
323.endif
324
325# Disabled in 7.0 as netatm is not MPSAFE.
326#if ${MK_ATM} != "no"
327#_harp=		harp
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_awi=		awi
368_bktr=		bktr
369_cardbus=	cardbus
370_cbb=		cbb
371_ce=		ce
372_coff=		coff
373_cp=		cp
374_cpufreq=	cpufreq
375_cs=		cs
376_digi=		digi
377_drm=		drm
378_ed=		ed
379_elink=		elink
380_em=		em
381_ep=		ep
382_exca=		exca
383_ext2fs=	ext2fs
384_fe=		fe
385# Disabled due to non-MPSAFEty in 7.0
386#_hfa=		hfa
387_i2c=		i2c
388_ibcs2=		ibcs2
389_ie=		ie
390_if_ndis=	if_ndis
391_io=		io
392_linprocfs=	linprocfs
393_linsysfs=	linsysfs
394_linux=		linux
395_mse=		mse
396.if ${MK_NCP} != "no"
397_ncp=		ncp
398.endif
399_ncv=		ncv
400_ndis=		ndis
401_nsp=		nsp
402.if ${MK_NCP} != "no"
403_nwfs=		nwfs
404.endif
405_oltr=		oltr
406_pccard=	pccard
407_pcfclock=	pcfclock
408_pecoff=	pecoff
409_pst=		pst
410_ray=		ray
411_safe=		safe
412_sbni=		sbni
413_scsi_low=	scsi_low
414_sio=		sio
415_smbfs=		smbfs
416_sound=		sound
417_speaker=	speaker
418_splash=	splash
419_sppp=		sppp
420_sr=		sr
421_stg=		stg
422_streams=	streams
423_tmpfs= 	tmpfs
424_wi=		wi
425_xe=		xe
426.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
427_zfs=		zfs
428.endif
429.if ${MACHINE} == "i386"
430_aac=		aac
431_acpi=		acpi
432_ahb=		ahb
433_arcmsr=	arcmsr
434_arl=		arl
435_asr=		asr
436_bios=		bios
437_ciss=		ciss
438_cm=		cm
439_ctau=		ctau
440_cx=		cx
441_dpt=		dpt
442_ex=		ex
443_hptiop=	hptiop
444_hptmv=		hptmv
445_ichwd=		ichwd
446_ida=		ida
447# Disabled due to non-MPSAFEty in 7.0
448#_idt=		idt
449_iir=		iir
450_ipmi=		ipmi
451_ips=		ips
452_ipw=		ipw
453_ipwfw=		ipwfw
454_iwi=		iwi
455_iwifw=		iwifw
456_ixgb=   	ixgb
457_mly=		mly
458_nfe=		nfe
459_nve=		nve
460_nxge=		nxge
461.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
462.if exists(${.CURDIR}/../crypto/via)
463_padlock=	padlock
464.endif
465.endif
466_rr232x=	rr232x
467_s3=		s3
468_twa=		twa
469_vesa=		vesa
470.elif ${MACHINE} == "pc98"
471_canbepm=	canbepm
472_canbus=	canbus
473_pmc=		pmc
474_snc=		snc
475.endif
476.endif
477
478.if ${MACHINE_ARCH} == "amd64"
479_aac=		aac
480_acpi=		acpi
481_agp=		agp
482_an=		an
483_arcmsr=	arcmsr
484_ath=		ath
485_ath_hal=	ath_hal
486_ath_rate_amrr=	ath_rate_amrr
487_ath_rate_onoe=	ath_rate_onoe
488_ath_rate_sample=ath_rate_sample
489_cardbus=	cardbus
490_cbb=		cbb
491_ciss=		ciss
492_cpufreq=	cpufreq
493_digi=		digi
494_drm=		drm
495_ed=		ed
496_em=		em
497_exca=		exca
498_ext2fs=	ext2fs
499_hptiop=	hptiop
500_hptmv=		hptmv
501_i2c=		i2c
502_ichwd=		ichwd
503_ida=		ida
504_if_ndis=	if_ndis
505_iir=		iir
506_io=		io
507_ipmi=		ipmi
508_ips=		ips
509_ipw=		ipw
510_ipwfw=		ipwfw
511_ixgb=   	ixgb
512_linprocfs=	linprocfs
513_linsysfs=	linsysfs
514_linux=		linux
515_mly=		mly
516_ndis=		ndis
517_nfe=		nfe
518_nve=		nve
519_nxge=		nxge
520_pccard=	pccard
521_rr232x=	rr232x
522_safe=		safe
523_scsi_low=	scsi_low
524_smbfs=		smbfs
525_sound=		sound
526_speaker=	speaker
527_sppp=		sppp
528_tmpfs= 	tmpfs
529_twa=		twa
530_wi=		wi
531.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
532_zfs=		zfs
533.endif
534.endif
535
536.if ${MACHINE_ARCH} == "ia64"
537# Modules not enabled on ia64 (as compared to i386) include:
538#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
539#	nsp oltr pecoff s3 sbni stg vesa
540# acpi is not enabled because it is broken as a module on ia64
541_aic=		aic
542#_ar=		ar	not 64-bit clean
543_arcnet=	arcnet
544_asr=		asr
545_an=		an
546_bktr=		bktr
547_cardbus=	cardbus
548_cbb=		cbb
549_ciss=		ciss
550_cm=		cm
551_coff=		coff
552_cpufreq=	cpufreq
553_em=		em
554_ep=		ep
555_exca=		exca
556_fe=		fe
557_hfa=		hfa
558_iir=		iir
559_mly=		mly
560_pccard=	pccard
561_scsi_low=	scsi_low
562_smbfs=		smbfs
563_sound=		sound
564_splash=	splash
565_sppp=		sppp
566#_sr=		sr		not 64bit clean
567_streams=	streams
568_wi=		wi
569_xe=		xe
570.endif
571
572.if ${MACHINE_ARCH} == "powerpc"
573_an=		an
574_ath=		ath
575_ath_hal=	ath_hal
576_ath_rate_amrr=	ath_rate_amrr
577_ath_rate_onoe=	ath_rate_onoe
578_ath_rate_sample=ath_rate_sample
579_gem=		gem
580_powermac_nvram=	powermac_nvram
581_smbfs=		smbfs
582.endif
583
584.if ${MACHINE_ARCH} == "sparc64"
585_ath=		ath
586_ath_hal=	ath_hal
587_ath_rate_amrr=	ath_rate_amrr
588_ath_rate_onoe=	ath_rate_onoe
589_ath_rate_sample=ath_rate_sample
590_auxio=		auxio
591_em=		em
592_gem=		gem
593_i2c=		i2c
594_sound=		sound
595.endif
596
597.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
598SUBDIR=${MODULES_OVERRIDE}
599.endif
600
601.for reject in ${WITHOUT_MODULES}
602SUBDIR:= ${SUBDIR:N${reject}}
603.endfor
604
605# Calling kldxref(8) for each module is expensive.
606.if !defined(NO_XREF)
607.MAKEFLAGS+=	-DNO_XREF
608afterinstall:
609	@if type kldxref >/dev/null 2>&1; then \
610		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
611		kldxref ${DESTDIR}${KMODDIR}; \
612	fi
613.endif
614
615.include <bsd.subdir.mk>
616