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