xref: /freebsd/sys/modules/Makefile (revision 7562eaabc01a48e6b11d5b558c41e3b92dae5c2d)
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	aue \
30	autofs \
31	${_auxio} \
32	${_awi} \
33	axe \
34	bfe \
35	bge \
36	${_bios} \
37	${_bktr} \
38	bridge \
39	cam \
40	${_canbepm} \
41	${_canbus} \
42	${_cardbus} \
43	${_cbb} \
44	cd9660 \
45	cd9660_iconv \
46	${_ciss} \
47	${_cm} \
48	coda \
49	coda5 \
50	${_coff} \
51	${_cp} \
52	${_crypto} \
53	${_cryptodev} \
54	${_ctau} \
55	cue \
56	${_cx} \
57	dc \
58	dcons \
59	dcons_crom \
60	de \
61	digi \
62	${_dpt} \
63	${_drm} \
64	dummynet \
65	${_ed} \
66	${_el} \
67	${_elink} \
68	${_em} \
69	en \
70	${_ep} \
71	${_ex} \
72	${_exca} \
73	${_ext2fs} \
74	fatm \
75	fdc \
76	fdescfs \
77	${_fe} \
78	firewire \
79	fxp \
80	${_gem} \
81	geom \
82	gx \
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	vpo \
248	vr \
249	vx \
250	wb \
251	${_wi} \
252	wlan \
253	${_xe} \
254	xl
255
256.if ${MACHINE_ARCH} != "sparc64"
257_syscons=	syscons
258.endif
259
260.if defined(ALL_MODULES)
261_ufs=		ufs
262.endif
263
264.if !defined(NOCRYPT) || defined(ALL_MODULES)
265.if exists(${.CURDIR}/../opencrypto)
266_crypto=	crypto
267_cryptodev=	cryptodev
268.endif
269.if exists(${.CURDIR}/../crypto)
270_random=	random
271.endif
272.endif
273
274.if !defined(NO_IPFILTER) || defined(ALL_MODULES)
275_ipfilter=	ipfilter
276.endif
277
278.if !defined(NO_PF) || defined(ALL_MODULES)
279_pf=		pf
280.endif
281
282.if ${MACHINE_ARCH} == "i386"
283# XXX some of these can move to the general case when de-i386'ed
284# XXX some of these can move now, but are untested on other architectures.
285_3dfx=		3dfx
286_agp=		agp
287_aic=		aic
288_amd=		amd
289_aout=		aout
290_apm=		apm
291_ar=		ar
292_arcnet=	arcnet
293_ath_hal=	ath_hal
294_awi=		awi
295_bktr=		bktr
296_coff=		coff
297_cp=		cp
298_drm=		drm
299_ed=		ed
300_elink=		elink
301_em=		em
302_ep=		ep
303_ext2fs=	ext2fs
304_fe=		fe
305_hfa=		hfa
306_i2c=		i2c
307_ibcs2=		ibcs2
308_ie=		ie
309_io=		io
310_linprocfs=	linprocfs
311_linux=		linux
312_lnc=		lnc
313_ncp=		ncp
314_ncv=		ncv
315_ndis=		ndis
316_nsp=		nsp
317_nwfs=		nwfs
318_oltr=		oltr
319_pccard=	pccard
320_pcfclock=	pcfclock
321_pecoff=	pecoff
322_ray=		ray
323_safe=		safe
324_sbni=		sbni
325_scsi_low=	scsi_low
326_smbfs=		smbfs
327_sound=		sound
328_speaker=	speaker
329_splash=	splash
330_sppp=		sppp
331_sr=		sr
332_stg=		stg
333_streams=	streams
334_wi=		wi
335_xe=		xe
336.if ${MACHINE} == "i386"
337_aac=		aac
338_acpi=		acpi
339_ahb=		ahb
340_arl=		arl
341_asr=		asr
342_bios=		bios
343_cardbus=	cardbus
344_cbb=		cbb
345_ciss=		ciss
346_cm=		cm
347_ctau=		ctau
348_cx=		cx
349_dpt=		dpt
350_el=		el
351_ex=		ex
352_exca=		exca
353_hptmv=		hptmv
354_ichwd=		ichwd
355_ida=		ida
356_idt=		idt
357_iir=		iir
358_ips=		ips
359_mly=		mly
360_s3=		s3
361_twa=		twa
362_vesa=		vesa
363.elif ${MACHINE} == "pc98"
364_canbepm=	canbepm
365_canbus=	canbus
366_pmc=		pmc
367_snc=		snc
368.endif
369.endif
370
371.if ${MACHINE_ARCH} == "alpha"
372_agp=		agp
373_ahb=		ahb
374_ext2fs=	ext2fs
375_linprocfs=	linprocfs
376_linux=		linux
377_osf1=		osf1
378_sound=		sound
379_sppp=		sppp
380.endif
381
382.if ${MACHINE_ARCH} == "amd64"
383_aac=		aac
384_agp=		agp
385_ciss=		ciss
386_drm=		drm
387_em=		em
388_ext2fs=	ext2fs
389_i2c=		i2c
390_ida=		ida
391_iir=		iir
392_io=		io
393_ips=		ips
394_lnc=		lnc
395_mly=		mly
396#_ndis=		ndis
397_safe=		safe
398_scsi_low=	scsi_low
399_smbfs=		smbfs
400_sound=		sound
401_sppp=		sppp
402_twa=		twa
403.endif
404
405.if ${MACHINE_ARCH} == "ia64"
406# Modules not enabled on ia64 (as compared to i386) include:
407#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
408#	nsp oltr pecoff s3 sbni stg vesa
409_aic=		aic
410_ar=		ar
411_arcnet=	arcnet
412_asr=		asr
413_bktr=		bktr
414_cardbus=	cardbus
415_cbb=		cbb
416_ciss=		ciss
417_cm=		cm
418_coff=		coff
419_el=		el
420_em=		em
421_ep=		ep
422_exca=		exca
423_fe=		fe
424_hfa=		hfa
425_iir=		iir
426_mly=		mly
427_pccard=	pccard
428_ray=		ray
429_scsi_low=	scsi_low
430_smbfs=		smbfs
431_sound=		sound
432_splash=	splash
433_sppp=		sppp
434_sr=		sr
435_streams=	streams
436_wi=		wi
437_xe=		xe
438.endif
439
440.if ${MACHINE_ARCH} == "powerpc"
441_gem=		gem
442.endif
443
444.if ${MACHINE_ARCH} == "sparc64"
445_auxio=		auxio
446_gem=		gem
447_sound=		sound
448.endif
449
450.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
451SUBDIR=${MODULES_OVERRIDE}
452.endif
453
454# Calling kldxref(8) for each module is expensive.
455.if !defined(NO_XREF)
456.MAKEFLAGS+=	-DNO_XREF
457afterinstall:
458	@if type kldxref >/dev/null 2>&1; then \
459		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
460		kldxref ${DESTDIR}${KMODDIR}; \
461	fi
462.endif
463
464.include <bsd.subdir.mk>
465