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