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