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