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