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