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