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