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