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