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