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