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