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