xref: /freebsd/sys/modules/Makefile (revision b82183f68f9546e22be3bcf6841817e2d6584ce1)
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	${_amdtemp} \
22	ale \
23	amr \
24	${_an} \
25	${_aout} \
26	${_apm} \
27	${_arcmsr} \
28	${_arcnet} \
29	${_asmc} \
30	${_asr} \
31	ata \
32	ath \
33	${_auxio} \
34	bce \
35	bfe \
36	bge \
37	${_bios} \
38	${_bktr} \
39	${_bm} \
40	bridgestp \
41	cam \
42	${_canbepm} \
43	${_canbus} \
44	${_cardbus} \
45	${_cbb} \
46	cd9660 \
47	cd9660_iconv \
48	${_ce} \
49	${_ciss} \
50	${_cm} \
51	${_cmx} \
52	coda \
53	coda5 \
54	${_coff} \
55	${_coretemp} \
56	${_cp} \
57	${_cpuctl} \
58	${_cpufreq} \
59	${_crypto} \
60	${_cryptodev} \
61	${_cs} \
62	${_ctau} \
63	cxgb \
64	${_cyclic} \
65	dc \
66	dcons \
67	dcons_crom \
68	de \
69	${_dpms} \
70	${_dpt} \
71	${_drm} \
72	${_dtrace} \
73	dummynet \
74	${_ed} \
75	${_elink} \
76	${_em} \
77	en \
78	${_ep} \
79	${_et} \
80	${_ex} \
81	${_exca} \
82	${_ext2fs} \
83	fatm \
84	fdc \
85	fdescfs \
86	${_fe} \
87	firewire \
88	firmware \
89	fxp \
90	gem \
91	geom \
92	${_glxsb} \
93	hatm \
94	hifn \
95	hme \
96	${_hptiop} \
97	${_hptmv} \
98	${_hptrr} \
99	hwpmc \
100	${_i2c} \
101	${_ibcs2} \
102	${_ichwd} \
103	${_ida} \
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_stf \
115	if_tap \
116	if_tun \
117	if_vlan \
118	${_igb} \
119	${_iir} \
120	${_io} \
121	ipdivert \
122	${_ipfilter} \
123	ipfw \
124	ipfw_nat \
125	${_ipmi} \
126	ip_mroute_mod \
127	${_ips} \
128	${_ipw} \
129	${_ipwfw} \
130	iscsi \
131	isp \
132	ispfw \
133	${_iwi} \
134	${_iwifw} \
135	${_iwn} \
136	${_iwnfw} \
137	${_ixgb} \
138	jme \
139	joy \
140	kbdmux \
141	krpc \
142	le \
143	lge \
144	libalias \
145	libiconv \
146	libmbpool \
147	libmchain \
148	${_linprocfs} \
149	${_linsysfs} \
150	${_linux} \
151	lmc \
152	lpt \
153	mac_biba \
154	mac_bsdextended \
155	mac_ifoff \
156	mac_lomac \
157	mac_mls \
158	mac_none \
159	mac_partition \
160	mac_portacl \
161	mac_seeotheruids \
162	mac_stub \
163	mac_test \
164	malo \
165	mcd \
166	md \
167	mem \
168	mfi \
169	mii \
170	mlx \
171	${_mly} \
172	mmc \
173	mmcsd \
174	mpt \
175	mqueue \
176	msdosfs \
177	msdosfs_iconv \
178	${_mse} \
179	msk \
180	mxge \
181	my \
182	${_ncp} \
183	${_ncv} \
184	${_ndis} \
185	netgraph \
186	${_nfe} \
187	nfsclient \
188	nfslockd \
189	nfsserver \
190	nge \
191	nmdm \
192	${_nsp} \
193	ntfs \
194	ntfs_iconv \
195	nullfs \
196	${_nve} \
197	${_nvram} \
198	${_nwfs} \
199	${_nxge} \
200	${_opensolaris} \
201	${_padlock} \
202	patm \
203	${_pccard} \
204	${_pcfclock} \
205	pcn \
206	${_pf} \
207	${_pflog} \
208	plip \
209	${_pmc} \
210	portalfs \
211	ppbus \
212	ppc \
213	ppi \
214	pps \
215	procfs \
216	pseudofs \
217	${_pst} \
218	puc \
219	ral \
220	${_random} \
221	rc4 \
222	${_rdma} \
223	re \
224	reiserfs \
225	rl \
226	${_s3} \
227	${_safe} \
228	${_sbni} \
229	scc \
230	scd \
231	${_scsi_low} \
232	sdhci \
233	sem \
234	sf \
235	sis \
236	sk \
237	${_smbfs} \
238	sn \
239	${_snc} \
240	snp \
241	${_sound} \
242	${_speaker} \
243	${_splash} \
244	${_sppp} \
245	ste \
246	${_stg} \
247	stge \
248	${_streams} \
249	${_svr4} \
250	sym \
251	${_syscons} \
252	sysvipc \
253	ti \
254	tl \
255	${_tmpfs} \
256	trm \
257	${_twa} \
258	twe \
259	tx \
260	txp \
261	uart \
262	ubsec \
263	udf \
264	udf_iconv \
265	${_ufs} \
266	unionfs \
267	usb \
268	utopia \
269	${_vesa} \
270	vge \
271	vkbd \
272	${_vpo} \
273	vr \
274	vx \
275	wb \
276	${_wi} \
277	wlan \
278	wlan_acl \
279	wlan_amrr \
280	wlan_ccmp \
281	wlan_rssadapt \
282	wlan_tkip \
283	wlan_wep \
284	wlan_xauth \
285	${_wpi} \
286	${_wpifw} \
287	${_xe} \
288	xfs \
289	xl \
290	${_zfs} \
291	zlib \
292
293.if ${MACHINE_ARCH} != "powerpc"
294_syscons=	syscons
295_vpo=		vpo
296.endif
297
298.if defined(ALL_MODULES)
299_ufs=		ufs
300.endif
301
302.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
303.if exists(${.CURDIR}/../opencrypto)
304_crypto=	crypto
305_cryptodev=	cryptodev
306.endif
307.if exists(${.CURDIR}/../crypto)
308_random=	random
309.endif
310.endif
311
312.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
313_ipfilter=	ipfilter
314.endif
315
316.if ${MK_PF} != "no" || defined(ALL_MODULES)
317_pf=		pf
318_pflog=		pflog
319.endif
320
321.if ${MACHINE_ARCH} == "i386"
322# XXX some of these can move to the general case when de-i386'ed
323# XXX some of these can move now, but are untested on other architectures.
324_3dfx=		3dfx
325_3dfx_linux=	3dfx_linux
326_agp=		agp
327_aic=		aic
328_amd=		amd
329_an=		an
330_aout=		aout
331_apm=		apm
332_arcnet=	arcnet
333_bktr=		bktr
334_cardbus=	cardbus
335_cbb=		cbb
336_ce=		ce
337_coff=		coff
338_cp=		cp
339_cpuctl=	cpuctl
340_cpufreq=	cpufreq
341_cs=		cs
342.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
343_cyclic=	cyclic
344.endif
345_dpms=		dpms
346_drm=		drm
347.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
348_dtrace=	dtrace
349.endif
350_ed=		ed
351_elink=		elink
352_em=		em
353_ep=		ep
354_et=		et
355_exca=		exca
356_ext2fs=	ext2fs
357_fe=		fe
358_glxsb=		glxsb
359_i2c=		i2c
360_ibcs2=		ibcs2
361_ie=		ie
362_if_ndis=	if_ndis
363_igb=		igb
364_io=		io
365_linprocfs=	linprocfs
366_linsysfs=	linsysfs
367_linux=		linux
368_mse=		mse
369.if ${MK_NCP} != "no"
370_ncp=		ncp
371.endif
372_ncv=		ncv
373_ndis=		ndis
374_nsp=		nsp
375.if ${MK_NCP} != "no"
376_nwfs=		nwfs
377.endif
378.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
379_opensolaris=	opensolaris
380.endif
381_pccard=	pccard
382_pcfclock=	pcfclock
383_pst=		pst
384_rdma=		rdma
385_safe=		safe
386_sbni=		sbni
387_scsi_low=	scsi_low
388_smbfs=		smbfs
389_sound=		sound
390_speaker=	speaker
391_splash=	splash
392_sppp=		sppp
393_stg=		stg
394_streams=	streams
395_svr4=		svr4
396_tmpfs=		tmpfs
397_wi=		wi
398_xe=		xe
399.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
400_zfs=		zfs
401.endif
402.if ${MACHINE} == "i386"
403_aac=		aac
404_acpi=		acpi
405_ahb=		ahb
406_amdtemp=	amdtemp
407_arcmsr=	arcmsr
408_asmc=		asmc
409_asr=		asr
410_bios=		bios
411_ciss=		ciss
412_cm=		cm
413_cmx=		cmx
414_coretemp=	coretemp
415_ctau=		ctau
416_dpt=		dpt
417_ex=		ex
418_hptiop=	hptiop
419_hptmv=		hptmv
420_hptrr=		hptrr
421_ichwd=		ichwd
422_ida=		ida
423_iir=		iir
424_ipmi=		ipmi
425_ips=		ips
426_ipw=		ipw
427_ipwfw=		ipwfw
428_iwi=		iwi
429_iwifw=		iwifw
430_iwn=		iwn
431_iwnfw=		iwnfw
432_ixgb=		ixgb
433_mly=		mly
434_nfe=		nfe
435_nve=		nve
436_nvram=		nvram
437_nxge=		nxge
438_wpi=		wpi
439_wpifw=		wpifw
440.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
441.if exists(${.CURDIR}/../crypto/via)
442_padlock=	padlock
443.endif
444.endif
445_s3=		s3
446_twa=		twa
447_vesa=		vesa
448.elif ${MACHINE} == "pc98"
449_canbepm=	canbepm
450_canbus=	canbus
451_pmc=		pmc
452_snc=		snc
453.endif
454.endif
455
456.if ${MACHINE_ARCH} == "amd64"
457_aac=		aac
458_acpi=		acpi
459_agp=		agp
460_an=		an
461_amdtemp=	amdtemp
462_arcmsr=	arcmsr
463_asmc=		asmc
464_cardbus=	cardbus
465_cbb=		cbb
466_cmx=		cmx
467_ciss=		ciss
468_coretemp=	coretemp
469_cpuctl=	cpuctl
470_cpufreq=	cpufreq
471.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
472_cyclic=	cyclic
473.endif
474_drm=		drm
475.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
476_dtrace=	dtrace
477.endif
478_ed=		ed
479_et=		et
480_em=		em
481_exca=		exca
482_ext2fs=	ext2fs
483_hptiop=	hptiop
484_hptmv=		hptmv
485_hptrr=		hptrr
486_i2c=		i2c
487_ichwd=		ichwd
488_ida=		ida
489_if_ndis=	if_ndis
490_igb=		igb
491_iir=		iir
492_io=		io
493_ipmi=		ipmi
494_ips=		ips
495_ipw=		ipw
496_ipwfw=		ipwfw
497_iwn=		iwn
498_iwnfw=		iwnfw
499_ixgb=		ixgb
500_linprocfs=	linprocfs
501_linsysfs=	linsysfs
502_linux=		linux
503_mly=		mly
504_ndis=		ndis
505_nfe=		nfe
506_nve=		nve
507_nvram=		nvram
508_nxge=		nxge
509.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
510_opensolaris=	opensolaris
511.endif
512.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
513.if exists(${.CURDIR}/../crypto/via)
514_padlock=	padlock
515.endif
516.endif
517_pccard=	pccard
518_rdma=		rdma
519_safe=		safe
520_scsi_low=	scsi_low
521_smbfs=		smbfs
522_sound=		sound
523_speaker=	speaker
524_sppp=		sppp
525_tmpfs=		tmpfs
526_twa=		twa
527_wi=		wi
528_wpi=		wpi
529_wpifw=		wpifw
530.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
531_zfs=		zfs
532.endif
533.endif
534
535.if ${MACHINE_ARCH} == "ia64"
536# Modules not enabled on ia64 (as compared to i386) include:
537#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
538#	nsp s3 sbni stg vesa
539# acpi is not enabled because it is broken as a module on ia64
540_aic=		aic
541#_ar=		ar	not 64-bit clean
542_an=		an
543_arcnet=	arcnet
544_asr=		asr
545_bktr=		bktr
546_cardbus=	cardbus
547_cbb=		cbb
548_ciss=		ciss
549_cm=		cm
550_cmx=		cmx
551_coff=		coff
552_cpufreq=	cpufreq
553_em=		em
554_ep=		ep
555_exca=		exca
556_fe=		fe
557_igb=		igb
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_bm=		bm
575_nvram=		powermac_nvram
576_smbfs=		smbfs
577.endif
578
579.if ${MACHINE_ARCH} == "sparc64"
580_auxio=		auxio
581_em=		em
582_i2c=		i2c
583_igb=		igb
584.if ${MK_CDDL} != "no" || defined(ALL_MODULES)
585_opensolaris=	opensolaris
586.endif
587_sound=		sound
588.if ${MK_ZFS} != "no" || defined(ALL_MODULES)
589_zfs=		zfs
590.endif
591.endif
592
593.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
594SUBDIR=${MODULES_OVERRIDE}
595.endif
596
597.for reject in ${WITHOUT_MODULES}
598SUBDIR:= ${SUBDIR:N${reject}}
599.endfor
600
601# Calling kldxref(8) for each module is expensive.
602.if !defined(NO_XREF)
603.MAKEFLAGS+=	-DNO_XREF
604afterinstall:
605	@if type kldxref >/dev/null 2>&1; then \
606		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
607		kldxref ${DESTDIR}${KMODDIR}; \
608	fi
609.endif
610
611.include <bsd.subdir.mk>
612