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