xref: /freebsd/sys/modules/Makefile (revision dba6dd177bdee890cf445fbe21a5dccefd5de18e)
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	${_arl} \
25	${_asr} \
26	ath \
27	${_ath_hal} \
28	aue \
29	${_awi} \
30	axe \
31	bfe \
32	bge \
33	${_bios} \
34	${_bktr} \
35	bridge \
36	cam \
37	${_canbepm} \
38	${_canbus} \
39	${_cardbus} \
40	${_cbb} \
41	cd9660 \
42	cd9660_iconv \
43	${_ciss} \
44	${_cm} \
45	coda \
46	coda5 \
47	${_coff} \
48	${_cp} \
49	${_crypto} \
50	${_cryptodev} \
51	${_ctau} \
52	cue \
53	${_cx} \
54	dc \
55	dcons \
56	dcons_crom \
57	de \
58	digi \
59	${_dpt} \
60	${_drm} \
61	dummynet \
62	${_ed} \
63	${_el} \
64	${_elink} \
65	${_em} \
66	en \
67	${_ep} \
68	${_ex} \
69	${_exca} \
70	${_ext2fs} \
71	fatm \
72	fdc \
73	fdescfs \
74	${_fe} \
75	firewire \
76	fxp \
77	${_gem} \
78	geom \
79	gx \
80	harp \
81	hatm \
82	${_hfa} \
83	hifn \
84	${_hme} \
85	${_i2c} \
86	${_ibcs2} \
87	${_ichwd} \
88	${_ida} \
89	${_idt} \
90	${_ie} \
91	if_disc \
92	if_ef \
93	if_faith \
94	if_gif \
95	if_gre \
96	if_ppp \
97	if_sl \
98	if_stf \
99	if_tap \
100	if_tun \
101	if_vlan \
102	${_iir} \
103	ip6fw \
104	${_ipfilter} \
105	ipfw \
106	ip_mroute_mod \
107	${_ips} \
108	isp \
109	ispfw \
110	joy \
111	kue \
112	lge \
113	libiconv \
114	libmbpool \
115	libmchain \
116	${_linprocfs} \
117	${_linux} \
118	${_lnc} \
119	lpt \
120	mac_biba \
121	mac_bsdextended \
122	mac_ifoff \
123	mac_lomac \
124	mac_mls \
125	mac_none \
126	mac_partition \
127	mac_portacl \
128	mac_seeotheruids \
129	mac_stub \
130	mac_test \
131	mcd \
132	md \
133	mii \
134	mlx \
135	${_mly} \
136	mpt \
137	msdosfs \
138	msdosfs_iconv \
139	my \
140	${_ncp} \
141	${_ncv} \
142	${_ndis} \
143	${_netgraph} \
144	nfsclient \
145	nfsserver \
146	nge \
147	nmdm \
148	${_nsp} \
149	ntfs \
150	ntfs_iconv \
151	${_null} \
152	nullfs \
153	${_nwfs} \
154	${_oltr} \
155	${_osf1} \
156	patm \
157	${_pccard} \
158	${_pcfclock} \
159	pcn \
160	${_pecoff} \
161	${_pf} \
162	${_pflog} \
163	${_pfsync} \
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_null=		null
257_ufs=		ufs
258.endif
259
260.if !defined(NOCRYPT) || defined(ALL_MODULES)
261.if exists(${.CURDIR}/../opencrypto)
262_crypto=	crypto
263_cryptodev=	cryptodev
264.endif
265.if exists(${.CURDIR}/../crypto)
266_random=	random
267.endif
268.endif
269
270.if !defined(NO_IPFILTER) || defined(ALL_MODULES)
271_ipfilter=	ipfilter
272.endif
273
274.if !defined(NO_PF) || defined(ALL_MODULES)
275_pf=		pf
276_pflog=		pflog
277_pfsync=	pfsync
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_linprocfs=	linprocfs
308_linux=		linux
309_lnc=		lnc
310_ncp=		ncp
311_ncv=		ncv
312_ndis=		ndis
313_netgraph=	netgraph
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_vinum=		vinum
333_wi=		wi
334_xe=		xe
335.if ${MACHINE} == "i386"
336_aac=		aac
337_acpi=		acpi
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_ichwd=		ichwd
352_ida=		ida
353_idt=		idt
354_iir=		iir
355_ips=		ips
356_mly=		mly
357_s3=		s3
358_twa=		twa
359_vesa=		vesa
360.elif ${MACHINE} == "pc98"
361_canbepm=	canbepm
362_canbus=	canbus
363_pmc=		pmc
364_snc=		snc
365.endif
366.endif
367
368.if ${MACHINE_ARCH} == "alpha"
369_agp=		agp
370_ext2fs=	ext2fs
371_linprocfs=	linprocfs
372_linux=		linux
373_osf1=		osf1
374_sound=		sound
375_sppp=		sppp
376_vinum=		vinum
377.endif
378
379.if ${MACHINE_ARCH} == "amd64"
380#_ndis=		ndis
381.endif
382
383.if ${MACHINE_ARCH} == "ia64"
384# Modules not enabled on ia64 (as compared to i386) include:
385#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
386#	nsp oltr pecoff s3 sbni stg vesa
387_aic=		aic
388_ar=		ar
389_arcnet=	arcnet
390_asr=		asr
391_bktr=		bktr
392_cardbus=	cardbus
393_cbb=		cbb
394_ciss=		ciss
395_cm=		cm
396_coff=		coff
397_el=		el
398_em=		em
399_ep=		ep
400_exca=		exca
401_fe=		fe
402_hfa=		hfa
403_iir=		iir
404_mly=		mly
405_netgraph=	netgraph
406_pccard=	pccard
407_ray=		ray
408_scsi_low=	scsi_low
409_smbfs=		smbfs
410_sound=		sound
411_splash=	splash
412_sppp=		sppp
413_sr=		sr
414_streams=	streams
415_vinum=		vinum
416_wi=		wi
417_xe=		xe
418.endif
419
420.if ${MACHINE_ARCH} == "powerpc"
421_gem=		gem
422.endif
423
424.if ${MACHINE_ARCH} == "sparc64"
425_gem=		gem
426_hme=		hme
427_vinum=		vinum
428.endif
429
430.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
431SUBDIR=${MODULES_OVERRIDE}
432.endif
433
434# Calling kldxref(8) for each module is expensive.
435.if !defined(NO_XREF)
436.MAKEFLAGS+=	-DNO_XREF
437afterinstall:
438	@if type kldxref >/dev/null 2>&1; then \
439		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
440		kldxref ${DESTDIR}${KMODDIR}; \
441	fi
442.endif
443
444.include <bsd.subdir.mk>
445