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