xref: /freebsd-12.1/sys/modules/Makefile (revision dc08ffec)
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	ucom \
209	udbp \
210	udf \
211	udf_iconv \
212	ufm \
213	${_ufs} \
214	uftdi \
215	ugen \
216	uhid \
217	ukbd \
218	ulpt \
219	umapfs \
220	umass \
221	umct \
222	umodem \
223	ums \
224	unionfs \
225	uplcom \
226	urio \
227	usb \
228	uscanner \
229	utopia \
230	uvisor \
231	uvscom \
232	${_vesa} \
233	${_vinum} \
234	vpo \
235	vr \
236	vx \
237	wb \
238	${_wi} \
239	wlan \
240	${_xe} \
241	xl
242
243.if ${MACHINE_ARCH} != "sparc64"
244_syscons=	syscons
245.endif
246
247.if defined(ALL_MODULES)
248_null=		null
249_ufs=		ufs
250.endif
251
252.if !defined(NOCRYPT) || defined(ALL_MODULES)
253.if exists(${.CURDIR}/../opencrypto)
254_crypto=	crypto
255_cryptodev=	cryptodev
256.endif
257.if exists(${.CURDIR}/../crypto)
258_random=	random
259.endif
260.endif
261
262.if !defined(NO_IPFILTER) || defined(ALL_MODULES)
263_ipfilter=	ipfilter
264.endif
265
266.if ${MACHINE_ARCH} == "i386"
267# XXX some of these can move to the general case when de-i386'ed
268# XXX some of these can move now, but are untested on other architectures.
269_3dfx=		3dfx
270_agp=		agp
271_aic=		aic
272_amd=		amd
273_aout=		aout
274_apm=		apm
275_ar=		ar
276_arcnet=	arcnet
277_ath_hal=	ath_hal
278_awi=		awi
279_bktr=		bktr
280_coff=		coff
281_drm=		drm
282_ed=		ed
283_elink=		elink
284_em=		em
285_ep=		ep
286_ext2fs=	ext2fs
287_fe=		fe
288_hfa=		hfa
289_i2c=		i2c
290_ibcs2=		ibcs2
291_ie=		ie
292_linprocfs=	linprocfs
293_linux=		linux
294_lnc=		lnc
295_ncp=		ncp
296_ncv=		ncv
297_ndis=		ndis
298_netgraph=	netgraph
299_nsp=		nsp
300_nwfs=		nwfs
301_oltr=		oltr
302_pccard=	pccard
303_pcfclock=	pcfclock
304_pecoff=	pecoff
305_ray=		ray
306_safe=		safe
307_sbni=		sbni
308_scsi_low=	scsi_low
309_smbfs=		smbfs
310_sound=		sound
311_speaker=	speaker
312_splash=	splash
313_sppp=		sppp
314_sr=		sr
315_stg=		stg
316_streams=	streams
317_vinum=		vinum
318_wi=		wi
319_xe=		xe
320.if ${MACHINE} == "i386"
321_aac=		aac
322_acpi=		acpi
323_asr=		asr
324_bios=		bios
325_cardbus=	cardbus
326_cbb=		cbb
327_ciss=		ciss
328_cm=		cm
329_cx=		cx
330_dpt=		dpt
331_el=		el
332_ex=		ex
333_exca=		exca
334_ida=		ida
335_idt=		idt
336_iir=		iir
337_ips=		ips
338_mly=		mly
339_s3=		s3
340_vesa=		vesa
341.elif ${MACHINE} == "pc98"
342_canbepm=	canbepm
343_canbus=	canbus
344_pmc=		pmc
345_snc=		snc
346.endif
347.endif
348
349.if ${MACHINE_ARCH} == "alpha"
350_agp=		agp
351_ext2fs=	ext2fs
352_linprocfs=	linprocfs
353_linux=		linux
354_osf1=		osf1
355_sound=		sound
356_sppp=		sppp
357_vinum=		vinum
358.endif
359
360.if ${MACHINE_ARCH} == "amd64"
361_ndis=		ndis
362.endif
363
364.if ${MACHINE_ARCH} == "ia64"
365# Modules not enabled on ia64 (as compared to i386) include:
366#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
367#	nsp oltr pecoff s3 sbni stg vesa
368_aic=		aic
369_ar=		ar
370_arcnet=	arcnet
371_asr=		asr
372_bktr=		bktr
373_cardbus=	cardbus
374_cbb=		cbb
375_ciss=		ciss
376_cm=		cm
377_coff=		coff
378_el=		el
379_em=		em
380_ep=		ep
381_exca=		exca
382_fe=		fe
383_hfa=		hfa
384_iir=		iir
385_mly=		mly
386_netgraph=	netgraph
387_pccard=	pccard
388_ray=		ray
389_scsi_low=	scsi_low
390_smbfs=		smbfs
391_sound=		sound
392_splash=	splash
393_sppp=		sppp
394_sr=		sr
395_streams=	streams
396_vinum=		vinum
397_wi=		wi
398_xe=		xe
399.endif
400
401.if ${MACHINE_ARCH} == "powerpc"
402_gem=		gem
403.endif
404
405.if ${MACHINE_ARCH} == "sparc64"
406_gem=		gem
407_hme=		hme
408.endif
409
410.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
411SUBDIR=${MODULES_OVERRIDE}
412.endif
413
414# Calling kldxref(8) for each module is expensive.
415.if !defined(NO_XREF)
416.MAKEFLAGS+=	-DNO_XREF
417afterinstall:
418	@if type kldxref >/dev/null 2>&1; then \
419		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
420		kldxref ${DESTDIR}${KMODDIR}; \
421	fi
422.endif
423
424.include <bsd.subdir.mk>
425