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