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