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