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