Makefile revision 154974
1# $FreeBSD: head/sys/modules/Makefile 154974 2006-01-29 02:52:42Z mlaier $
2
3SUBDIR=	${_3dfx} \
4	${_aac} \
5	accf_data \
6	accf_http \
7	${_acpi} \
8	${_agp} \
9	aha \
10	${_ahb} \
11	${_aic} \
12	aic7xxx \
13	aio \
14	${_amd} \
15	amr \
16	an \
17	${_aout} \
18	${_apm} \
19	${_ar} \
20	${_arcmsr} \
21	${_arcnet} \
22	${_arl} \
23	${_asr} \
24	ata \
25	ath \
26	${_ath_hal} \
27	ath_rate_amrr \
28	ath_rate_onoe \
29	ath_rate_sample \
30	aue \
31	${_auxio} \
32	${_awi} \
33	axe \
34	bfe \
35	bge \
36	${_bios} \
37	${_bktr} \
38	cam \
39	${_canbepm} \
40	${_canbus} \
41	${_cardbus} \
42	${_cbb} \
43	cd9660 \
44	cd9660_iconv \
45	cdce \
46	${_ciss} \
47	${_cm} \
48	coda \
49	coda5 \
50	${_coff} \
51	${_cp} \
52	${_cpufreq} \
53	${_crypto} \
54	${_cryptodev} \
55	${_cs} \
56	${_ctau} \
57	cue \
58	${_cx} \
59	dc \
60	dcons \
61	dcons_crom \
62	de \
63	${_digi} \
64	${_dpt} \
65	${_drm} \
66	dummynet \
67	${_ed} \
68	${_elink} \
69	${_em} \
70	en \
71	${_ep} \
72	${_ex} \
73	${_exca} \
74	${_ext2fs} \
75	fatm \
76	fdc \
77	fdescfs \
78	${_fe} \
79	firewire \
80	firmware \
81	fxp \
82	${_gem} \
83	geom \
84	harp \
85	hatm \
86	${_hfa} \
87	hifn \
88	hme \
89	${_hptmv} \
90	hwpmc \
91	${_i2c} \
92	${_ibcs2} \
93	${_ichwd} \
94	${_ida} \
95	${_idt} \
96	${_ie} \
97	if_bridge \
98	if_disc \
99	if_ef \
100	if_faith \
101	if_gif \
102	if_gre \
103	${_if_ndis} \
104	if_ppp \
105	if_sl \
106	if_stf \
107	if_tap \
108	if_tun \
109	if_vlan \
110	${_iir} \
111	${_io} \
112	ip6fw \
113	ipdivert \
114	${_ipfilter} \
115	ipfw \
116	ip_mroute_mod \
117	${_ips} \
118	ipw \
119	isp \
120	ispfw \
121	iwi \
122	joy \
123	kbdmux \
124	kue \
125	lge \
126	libalias \
127	libiconv \
128	libmbpool \
129	libmchain \
130	${_linprocfs} \
131	${_linux} \
132	lmc \
133	${_lnc} \
134	lpt \
135	mac_biba \
136	mac_bsdextended \
137	mac_ifoff \
138	mac_lomac \
139	mac_mls \
140	mac_none \
141	mac_partition \
142	mac_portacl \
143	mac_seeotheruids \
144	mac_stub \
145	mac_test \
146	mcd \
147	md \
148	mem \
149	mii \
150	mlx \
151	${_mly} \
152	mpt \
153	mqueue \
154	msdosfs \
155	msdosfs_iconv \
156	${_mse} \
157	my \
158	${_ncp} \
159	${_ncv} \
160	${_ndis} \
161	netgraph \
162	nfsclient \
163	nfsserver \
164	nge \
165	nmdm \
166	${_nsp} \
167	ntfs \
168	ntfs_iconv \
169	nullfs \
170	${_nve} \
171	${_nwfs} \
172	${_oltr} \
173	${_osf1} \
174	${_padlock} \
175	patm \
176	${_pccard} \
177	${_pcfclock} \
178	pcn \
179	${_pecoff} \
180	${_pf} \
181	plip \
182	${_pmc} \
183	portalfs \
184	ppbus \
185	ppi \
186	pps \
187	procfs \
188	pseudofs \
189	${_pst} \
190	${_puc} \
191	ral \
192	${_random} \
193	${_ray} \
194	rc \
195	rc4 \
196	re \
197	reiserfs \
198	rl \
199	rp \
200	rue \
201	${_s3} \
202	${_safe} \
203	${_sbni} \
204	sbsh \
205	scd \
206	${_scsi_low} \
207	sf \
208	${_sio} \
209	sis \
210	sk \
211	${_smbfs} \
212	sn \
213	${_snc} \
214	snp \
215	${_sound} \
216	${_speaker} \
217	${_splash} \
218	${_sppp} \
219	${_sr} \
220	ste \
221	${_stg} \
222	${_streams} \
223	sym \
224	${_syscons} \
225	sysvipc \
226	ti \
227	tl \
228	trm \
229	${_twa} \
230	twe \
231	tx \
232	txp \
233	${_uart} \
234	ubsa \
235	ubsec \
236	ubser \
237	ucom \
238	ucycom \
239	udav \
240	udbp \
241	udf \
242	udf_iconv \
243	ufm \
244	${_ufs} \
245	ufoma \
246	uftdi \
247	ugen \
248	uhid \
249	ukbd \
250	ulpt \
251	umass \
252	umct \
253	umodem \
254	ums \
255	unionfs \
256	uplcom \
257	ural \
258	urio \
259	usb \
260	uscanner \
261	utopia \
262	uvisor \
263	uvscom \
264	${_vesa} \
265	vge \
266	vkbd \
267	${_vpo} \
268	vr \
269	vx \
270	wb \
271	${_wi} \
272	wlan \
273	wlan_acl \
274	wlan_ccmp \
275	wlan_tkip \
276	wlan_wep \
277	wlan_xauth \
278	${_xe} \
279	xfs \
280	xl
281
282.if ${MACHINE_ARCH} != "powerpc"
283_syscons=	syscons
284_uart=		uart
285_vpo=		vpo
286.endif
287
288.if defined(ALL_MODULES)
289_ufs=		ufs
290.endif
291
292.if !defined(NO_CRYPT) || defined(ALL_MODULES)
293.if exists(${.CURDIR}/../opencrypto)
294_crypto=	crypto
295_cryptodev=	cryptodev
296.endif
297.if exists(${.CURDIR}/../crypto)
298_random=	random
299.endif
300.endif
301
302.if !defined(NO_IPFILTER) || defined(ALL_MODULES)
303_ipfilter=	ipfilter
304.endif
305
306.if !defined(NO_PF) || defined(ALL_MODULES)
307_pf=		pf
308.endif
309
310.if ${MACHINE_ARCH} == "i386"
311# XXX some of these can move to the general case when de-i386'ed
312# XXX some of these can move now, but are untested on other architectures.
313_3dfx=		3dfx
314_agp=		agp
315_aic=		aic
316_amd=		amd
317_aout=		aout
318_apm=		apm
319_ar=		ar
320_arcnet=	arcnet
321_ath_hal=	ath_hal
322_awi=		awi
323_bktr=		bktr
324_cardbus=	cardbus
325_cbb=		cbb
326_coff=		coff
327_cp=		cp
328_cpufreq=	cpufreq
329_cs=		cs
330_digi=		digi
331_drm=		drm
332_ed=		ed
333_elink=		elink
334_em=		em
335_ep=		ep
336_exca=		exca
337_ext2fs=	ext2fs
338_fe=		fe
339_hfa=		hfa
340_i2c=		i2c
341_ibcs2=		ibcs2
342_ie=		ie
343_if_ndis=	if_ndis
344_io=		io
345_linprocfs=	linprocfs
346_linux=		linux
347_lnc=		lnc
348_mse=		mse
349_ncp=		ncp
350_ncv=		ncv
351_ndis=		ndis
352_nsp=		nsp
353_nwfs=		nwfs
354_oltr=		oltr
355_pccard=	pccard
356_pcfclock=	pcfclock
357_pecoff=	pecoff
358_pst=		pst
359_puc=		puc
360_ray=		ray
361_safe=		safe
362_sbni=		sbni
363_scsi_low=	scsi_low
364_sio=		sio
365_smbfs=		smbfs
366_sound=		sound
367_speaker=	speaker
368_splash=	splash
369_sppp=		sppp
370_sr=		sr
371_stg=		stg
372_streams=	streams
373_wi=		wi
374_xe=		xe
375.if ${MACHINE} == "i386"
376_aac=		aac
377_acpi=		acpi
378_ahb=		ahb
379_arcmsr=	arcmsr
380_arl=		arl
381_asr=		asr
382_bios=		bios
383_ciss=		ciss
384_cm=		cm
385_ctau=		ctau
386_cx=		cx
387_dpt=		dpt
388_ex=		ex
389_hptmv=		hptmv
390_ichwd=		ichwd
391_ida=		ida
392_idt=		idt
393_iir=		iir
394_ips=		ips
395_mly=		mly
396_nve=		nve
397.if !defined(NO_CRYPT) || defined(ALL_MODULES)
398.if exists(${.CURDIR}/../crypto/via)
399_padlock=	padlock
400.endif
401.endif
402_s3=		s3
403_twa=		twa
404_vesa=		vesa
405.elif ${MACHINE} == "pc98"
406_canbepm=	canbepm
407_canbus=	canbus
408_pmc=		pmc
409_snc=		snc
410.endif
411.endif
412
413.if ${MACHINE_ARCH} == "alpha"
414_agp=		agp
415_ahb=		ahb
416_ext2fs=	ext2fs
417_linprocfs=	linprocfs
418_linux=		linux
419_osf1=		osf1
420_sound=		sound
421_sppp=		sppp
422.endif
423
424.if ${MACHINE_ARCH} == "amd64"
425_aac=		aac
426#_acpi=		acpi		# doesn't work on amd64 yet
427_agp=		agp
428_arcmsr=	arcmsr
429_ath_hal=	ath_hal
430_ciss=		ciss
431_cpufreq=	cpufreq
432_digi=		digi
433_drm=		drm
434_ed=		ed
435_em=		em
436_ext2fs=	ext2fs
437_hptmv=		hptmv
438_i2c=		i2c
439_ichwd=		ichwd
440_ida=		ida
441_if_ndis=	if_ndis
442_iir=		iir
443_io=		io
444_ips=		ips
445#_lnc=		lnc
446_mly=		mly
447_ndis=		ndis
448_nve=		nve
449_safe=		safe
450_scsi_low=	scsi_low
451_smbfs=		smbfs
452_sound=		sound
453_speaker=	speaker
454_sppp=		sppp
455_twa=		twa
456.endif
457
458.if ${MACHINE_ARCH} == "ia64"
459# Modules not enabled on ia64 (as compared to i386) include:
460#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
461#	nsp oltr pecoff s3 sbni stg vesa
462# acpi is not enabled because it is broken as a module on ia64
463_aic=		aic
464#_ar=		ar	not 64-bit clean
465_arcnet=	arcnet
466_asr=		asr
467_bktr=		bktr
468_cardbus=	cardbus
469_cbb=		cbb
470_ciss=		ciss
471_cm=		cm
472_coff=		coff
473_cpufreq=	cpufreq
474_em=		em
475_ep=		ep
476_exca=		exca
477_fe=		fe
478_hfa=		hfa
479_iir=		iir
480_mly=		mly
481_pccard=	pccard
482_scsi_low=	scsi_low
483_smbfs=		smbfs
484_sound=		sound
485_splash=	splash
486_sppp=		sppp
487#_sr=		sr		not 64bit clean
488_streams=	streams
489_wi=		wi
490_xe=		xe
491.endif
492
493.if ${MACHINE_ARCH} == "powerpc"
494_gem=		gem
495_smbfs=		smbfs
496.endif
497
498.if ${MACHINE_ARCH} == "sparc64"
499_auxio=		auxio
500_em=		em
501_gem=		gem
502_i2c=		i2c
503_sound=		sound
504.endif
505
506.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
507SUBDIR=${MODULES_OVERRIDE}
508.endif
509
510.for reject in ${WITHOUT_MODULES}
511SUBDIR:= ${SUBDIR:N${reject}}
512.endfor
513
514# Calling kldxref(8) for each module is expensive.
515.if !defined(NO_XREF)
516.MAKEFLAGS+=	-DNO_XREF
517afterinstall:
518	@if type kldxref >/dev/null 2>&1; then \
519		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
520		kldxref ${DESTDIR}${KMODDIR}; \
521	fi
522.endif
523
524.include <bsd.subdir.mk>
525