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