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