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