xref: /freebsd/sys/modules/Makefile (revision 6fd05b64b5b65dd4ba9b86482a0634a5f0b96c29)
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	ip6fw \
105	${_ipfilter} \
106	ipfw \
107	ip_mroute_mod \
108	${_ips} \
109	isp \
110	ispfw \
111	joy \
112	kue \
113	lge \
114	libiconv \
115	libmbpool \
116	libmchain \
117	${_linprocfs} \
118	${_linux} \
119	${_lnc} \
120	lpt \
121	mac_biba \
122	mac_bsdextended \
123	mac_ifoff \
124	mac_lomac \
125	mac_mls \
126	mac_none \
127	mac_partition \
128	mac_portacl \
129	mac_seeotheruids \
130	mac_stub \
131	mac_test \
132	mcd \
133	md \
134	mii \
135	mlx \
136	${_mly} \
137	mpt \
138	msdosfs \
139	msdosfs_iconv \
140	my \
141	${_ncp} \
142	${_ncv} \
143	${_ndis} \
144	${_netgraph} \
145	nfsclient \
146	nfsserver \
147	nge \
148	nmdm \
149	${_nsp} \
150	ntfs \
151	ntfs_iconv \
152	${_null} \
153	nullfs \
154	${_nwfs} \
155	${_oltr} \
156	${_osf1} \
157	patm \
158	${_pccard} \
159	${_pcfclock} \
160	pcn \
161	${_pecoff} \
162	${_pf} \
163	plip \
164	${_pmc} \
165	portalfs \
166	ppbus \
167	ppi \
168	pps \
169	procfs \
170	pseudofs \
171	pst \
172	${_random} \
173	${_ray} \
174	rc \
175	rc4 \
176	re \
177	rl \
178	rp \
179	rue \
180	${_s3} \
181	${_safe} \
182	${_sbni} \
183	sbsh \
184	scd \
185	${_scsi_low} \
186	sf \
187	sis \
188	sk \
189	${_smbfs} \
190	sn \
191	${_snc} \
192	snp \
193	${_sound} \
194	${_speaker} \
195	${_splash} \
196	${_sppp} \
197	${_sr} \
198	ste \
199	${_stg} \
200	${_streams} \
201	sym \
202	${_syscons} \
203	sysvipc \
204	ti \
205	tl \
206	trm \
207	${_twa} \
208	twe \
209	tx \
210	txp \
211	uart \
212	ubsa \
213	ubsec \
214	ubser \
215	ucom \
216	udav \
217	udbp \
218	udf \
219	udf_iconv \
220	ufm \
221	${_ufs} \
222	uftdi \
223	ugen \
224	uhid \
225	ukbd \
226	ulpt \
227	umass \
228	umct \
229	umodem \
230	ums \
231	unionfs \
232	uplcom \
233	urio \
234	usb \
235	uscanner \
236	utopia \
237	uvisor \
238	uvscom \
239	${_vesa} \
240	vinum \
241	vpo \
242	vr \
243	vx \
244	wb \
245	${_wi} \
246	wlan \
247	${_xe} \
248	xl
249
250.if ${MACHINE_ARCH} != "sparc64"
251_syscons=	syscons
252.endif
253
254.if defined(ALL_MODULES)
255_null=		null
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_linprocfs=	linprocfs
305_linux=		linux
306_lnc=		lnc
307_ncp=		ncp
308_ncv=		ncv
309_ndis=		ndis
310_netgraph=	netgraph
311_nsp=		nsp
312_nwfs=		nwfs
313_oltr=		oltr
314_pccard=	pccard
315_pcfclock=	pcfclock
316_pecoff=	pecoff
317_ray=		ray
318_safe=		safe
319_sbni=		sbni
320_scsi_low=	scsi_low
321_smbfs=		smbfs
322_sound=		sound
323_speaker=	speaker
324_splash=	splash
325_sppp=		sppp
326_sr=		sr
327_stg=		stg
328_streams=	streams
329_wi=		wi
330_xe=		xe
331.if ${MACHINE} == "i386"
332_aac=		aac
333_acpi=		acpi
334_ahb=		ahb
335_arl=		arl
336_asr=		asr
337_bios=		bios
338_cardbus=	cardbus
339_cbb=		cbb
340_ciss=		ciss
341_cm=		cm
342_ctau=		ctau
343_cx=		cx
344_dpt=		dpt
345_el=		el
346_ex=		ex
347_exca=		exca
348_ichwd=		ichwd
349_ida=		ida
350_idt=		idt
351_iir=		iir
352_ips=		ips
353_mly=		mly
354_s3=		s3
355_twa=		twa
356_vesa=		vesa
357.elif ${MACHINE} == "pc98"
358_canbepm=	canbepm
359_canbus=	canbus
360_pmc=		pmc
361_snc=		snc
362.endif
363.endif
364
365.if ${MACHINE_ARCH} == "alpha"
366_agp=		agp
367_ahb=		ahb
368_ext2fs=	ext2fs
369_linprocfs=	linprocfs
370_linux=		linux
371_osf1=		osf1
372_sound=		sound
373_sppp=		sppp
374.endif
375
376.if ${MACHINE_ARCH} == "amd64"
377#_ndis=		ndis
378.endif
379
380.if ${MACHINE_ARCH} == "ia64"
381# Modules not enabled on ia64 (as compared to i386) include:
382#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
383#	nsp oltr pecoff s3 sbni stg vesa
384_aic=		aic
385_ar=		ar
386_arcnet=	arcnet
387_asr=		asr
388_bktr=		bktr
389_cardbus=	cardbus
390_cbb=		cbb
391_ciss=		ciss
392_cm=		cm
393_coff=		coff
394_el=		el
395_em=		em
396_ep=		ep
397_exca=		exca
398_fe=		fe
399_hfa=		hfa
400_iir=		iir
401_mly=		mly
402_netgraph=	netgraph
403_pccard=	pccard
404_ray=		ray
405_scsi_low=	scsi_low
406_smbfs=		smbfs
407_sound=		sound
408_splash=	splash
409_sppp=		sppp
410_sr=		sr
411_streams=	streams
412_wi=		wi
413_xe=		xe
414.endif
415
416.if ${MACHINE_ARCH} == "powerpc"
417_gem=		gem
418.endif
419
420.if ${MACHINE_ARCH} == "sparc64"
421_gem=		gem
422_hme=		hme
423.endif
424
425.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
426SUBDIR=${MODULES_OVERRIDE}
427.endif
428
429# Calling kldxref(8) for each module is expensive.
430.if !defined(NO_XREF)
431.MAKEFLAGS+=	-DNO_XREF
432afterinstall:
433	@if type kldxref >/dev/null 2>&1; then \
434		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
435		kldxref ${DESTDIR}${KMODDIR}; \
436	fi
437.endif
438
439.include <bsd.subdir.mk>
440