Makefile revision 136858
1230192Sdas# $FreeBSD: head/sys/modules/Makefile 136858 2004-10-24 08:53:40Z scottl $
2230192Sdas
3230192Sdas# pcic -- currently broken and being worked on out of tree.
4230192Sdas# oldcard -- specialized use for debugging only.
5230192Sdas# owi -- totally unsupported for debugging only.
6230192Sdas
7230192SdasSUBDIR=	${_3dfx} \
8230192Sdas	${_aac} \
9230192Sdas	accf_data \
10230192Sdas	accf_http \
11230192Sdas	${_acpi} \
12230192Sdas	${_agp} \
13230192Sdas	aha \
14230192Sdas	${_ahb} \
15230192Sdas	${_aic} \
16230192Sdas	aic7xxx \
17230192Sdas	aio \
18230192Sdas	${_amd} \
19230192Sdas	amr \
20230192Sdas	an \
21230192Sdas	${_aout} \
22230192Sdas	${_apm} \
23230192Sdas	${_ar} \
24230192Sdas	${_arcnet} \
25230192Sdas	${_arl} \
26230192Sdas	${_asr} \
27230192Sdas	ath \
28230192Sdas	${_ath_hal} \
29230192Sdas	aue \
30230192Sdas	autofs \
31230192Sdas	${_auxio} \
32230192Sdas	${_awi} \
33230192Sdas	axe \
34230192Sdas	bfe \
35230192Sdas	bge \
36230192Sdas	${_bios} \
37230192Sdas	${_bktr} \
38230192Sdas	bridge \
39230192Sdas	cam \
40230192Sdas	${_canbepm} \
41230192Sdas	${_canbus} \
42230192Sdas	${_cardbus} \
43230192Sdas	${_cbb} \
44230192Sdas	cd9660 \
45230192Sdas	cd9660_iconv \
46230192Sdas	${_ciss} \
47230192Sdas	${_cm} \
48230192Sdas	coda \
49230192Sdas	coda5 \
50230192Sdas	${_coff} \
51230192Sdas	${_cp} \
52230192Sdas	${_crypto} \
53230192Sdas	${_cryptodev} \
54230192Sdas	${_ctau} \
55230192Sdas	cue \
56230192Sdas	${_cx} \
57230192Sdas	dc \
58230192Sdas	dcons \
59230192Sdas	dcons_crom \
60230192Sdas	de \
61230192Sdas	digi \
62230192Sdas	${_dpt} \
63230192Sdas	${_drm} \
64230192Sdas	dummynet \
65230192Sdas	${_ed} \
66230192Sdas	${_el} \
67230192Sdas	${_elink} \
68230192Sdas	${_em} \
69230192Sdas	en \
70230192Sdas	${_ep} \
71230192Sdas	${_ex} \
72230192Sdas	${_exca} \
73230192Sdas	${_ext2fs} \
74230192Sdas	fatm \
75230192Sdas	fdc \
76230192Sdas	fdescfs \
77230192Sdas	${_fe} \
78230192Sdas	firewire \
79230192Sdas	fxp \
80230192Sdas	${_gem} \
81230192Sdas	geom \
82230192Sdas	gx \
83230192Sdas	harp \
84230192Sdas	hatm \
85230192Sdas	${_hfa} \
86230192Sdas	hifn \
87230192Sdas	hme \
88230192Sdas	${_hptmv} \
89230192Sdas	${_i2c} \
90230192Sdas	${_ibcs2} \
91230192Sdas	${_ichwd} \
92230192Sdas	${_ida} \
93230192Sdas	${_idt} \
94230192Sdas	${_ie} \
95230192Sdas	if_disc \
96230192Sdas	if_ef \
97230192Sdas	if_faith \
98230192Sdas	if_gif \
99230192Sdas	if_gre \
100230192Sdas	if_ppp \
101230192Sdas	if_sl \
102230192Sdas	if_stf \
103230192Sdas	if_tap \
104230192Sdas	if_tun \
105230192Sdas	if_vlan \
106230192Sdas	${_iir} \
107230192Sdas	${_io} \
108230192Sdas	ip6fw \
109230192Sdas	${_ipfilter} \
110230192Sdas	ipfw \
111230192Sdas	ip_mroute_mod \
112230192Sdas	${_ips} \
113230192Sdas	isp \
114230192Sdas	ispfw \
115230192Sdas	joy \
116230192Sdas	kue \
117230192Sdas	lge \
118230192Sdas	libiconv \
119230192Sdas	libmbpool \
120230192Sdas	libmchain \
121230192Sdas	${_linprocfs} \
122230192Sdas	${_linux} \
123230192Sdas	${_lnc} \
124230192Sdas	lpt \
125230192Sdas	mac_biba \
126230192Sdas	mac_bsdextended \
127230192Sdas	mac_ifoff \
128230192Sdas	mac_lomac \
129230192Sdas	mac_mls \
130230192Sdas	mac_none \
131230192Sdas	mac_partition \
132230192Sdas	mac_portacl \
133230192Sdas	mac_seeotheruids \
134230192Sdas	mac_stub \
135230192Sdas	mac_test \
136230192Sdas	mcd \
137230192Sdas	md \
138230192Sdas	mem \
139230192Sdas	mii \
140230192Sdas	mlx \
141230192Sdas	${_mly} \
142230192Sdas	mpt \
143230192Sdas	msdosfs \
144230192Sdas	msdosfs_iconv \
145230192Sdas	my \
146230192Sdas	${_ncp} \
147230192Sdas	${_ncv} \
148230192Sdas	${_ndis} \
149230192Sdas	netgraph \
150230192Sdas	nfsclient \
151230192Sdas	nfsserver \
152230192Sdas	nge \
153230192Sdas	nmdm \
154230192Sdas	${_nsp} \
155230192Sdas	ntfs \
156230192Sdas	ntfs_iconv \
157230192Sdas	nullfs \
158230192Sdas	${_nwfs} \
159266133Sian	${_oltr} \
160230192Sdas	${_osf1} \
161230192Sdas	patm \
162230192Sdas	${_pccard} \
163230192Sdas	${_pcfclock} \
164230192Sdas	pcn \
165230192Sdas	${_pecoff} \
166230192Sdas	${_pf} \
167230192Sdas	plip \
168266133Sian	${_pmc} \
169230192Sdas	portalfs \
170230192Sdas	ppbus \
171230192Sdas	ppi \
172230192Sdas	pps \
173230192Sdas	procfs \
174230192Sdas	pseudofs \
175230192Sdas	pst \
176230192Sdas	${_random} \
177266133Sian	${_ray} \
178230192Sdas	rc \
179230192Sdas	rc4 \
180230192Sdas	re \
181230192Sdas	rl \
182230192Sdas	rp \
183230192Sdas	rue \
184230192Sdas	${_s3} \
185	${_safe} \
186	${_sbni} \
187	sbsh \
188	scd \
189	${_scsi_low} \
190	sf \
191	sis \
192	sk \
193	${_smbfs} \
194	sn \
195	${_snc} \
196	snp \
197	${_sound} \
198	${_speaker} \
199	${_splash} \
200	${_sppp} \
201	${_sr} \
202	ste \
203	${_stg} \
204	${_streams} \
205	sym \
206	${_syscons} \
207	sysvipc \
208	ti \
209	tl \
210	trm \
211	${_twa} \
212	twe \
213	tx \
214	txp \
215	uart \
216	ubsa \
217	ubsec \
218	ubser \
219	ucom \
220	ucycom \
221	udav \
222	udbp \
223	udf \
224	udf_iconv \
225	ufm \
226	${_ufs} \
227	uftdi \
228	ugen \
229	uhid \
230	ukbd \
231	ulpt \
232	umass \
233	umct \
234	umodem \
235	ums \
236	unionfs \
237	uplcom \
238	urio \
239	usb \
240	uscanner \
241	utopia \
242	uvisor \
243	uvscom \
244	${_vesa} \
245	vge \
246	vpo \
247	vr \
248	vx \
249	wb \
250	${_wi} \
251	wlan \
252	${_xe} \
253	xl
254
255.if ${MACHINE_ARCH} != "sparc64"
256_syscons=	syscons
257.endif
258
259.if defined(ALL_MODULES)
260_ufs=		ufs
261.endif
262
263.if !defined(NOCRYPT) || defined(ALL_MODULES)
264.if exists(${.CURDIR}/../opencrypto)
265_crypto=	crypto
266_cryptodev=	cryptodev
267.endif
268.if exists(${.CURDIR}/../crypto)
269_random=	random
270.endif
271.endif
272
273.if !defined(NO_IPFILTER) || defined(ALL_MODULES)
274_ipfilter=	ipfilter
275.endif
276
277.if !defined(NO_PF) || defined(ALL_MODULES)
278_pf=		pf
279.endif
280
281.if ${MACHINE_ARCH} == "i386"
282# XXX some of these can move to the general case when de-i386'ed
283# XXX some of these can move now, but are untested on other architectures.
284_3dfx=		3dfx
285_agp=		agp
286_aic=		aic
287_amd=		amd
288_aout=		aout
289_apm=		apm
290_ar=		ar
291_arcnet=	arcnet
292_ath_hal=	ath_hal
293_awi=		awi
294_bktr=		bktr
295_coff=		coff
296_cp=		cp
297_drm=		drm
298_ed=		ed
299_elink=		elink
300_em=		em
301_ep=		ep
302_ext2fs=	ext2fs
303_fe=		fe
304_hfa=		hfa
305_i2c=		i2c
306_ibcs2=		ibcs2
307_ie=		ie
308_io=		io
309_linprocfs=	linprocfs
310_linux=		linux
311_lnc=		lnc
312_ncp=		ncp
313_ncv=		ncv
314_ndis=		ndis
315_nsp=		nsp
316_nwfs=		nwfs
317_oltr=		oltr
318_pccard=	pccard
319_pcfclock=	pcfclock
320_pecoff=	pecoff
321_ray=		ray
322_safe=		safe
323_sbni=		sbni
324_scsi_low=	scsi_low
325_smbfs=		smbfs
326_sound=		sound
327_speaker=	speaker
328_splash=	splash
329_sppp=		sppp
330_sr=		sr
331_stg=		stg
332_streams=	streams
333_wi=		wi
334_xe=		xe
335.if ${MACHINE} == "i386"
336_aac=		aac
337_acpi=		acpi
338_ahb=		ahb
339_arl=		arl
340_asr=		asr
341_bios=		bios
342_cardbus=	cardbus
343_cbb=		cbb
344_ciss=		ciss
345_cm=		cm
346_ctau=		ctau
347_cx=		cx
348_dpt=		dpt
349_el=		el
350_ex=		ex
351_exca=		exca
352_hptmv=		hptmv
353_ichwd=		ichwd
354_ida=		ida
355_idt=		idt
356_iir=		iir
357_ips=		ips
358_mly=		mly
359_s3=		s3
360_twa=		twa
361_vesa=		vesa
362.elif ${MACHINE} == "pc98"
363_canbepm=	canbepm
364_canbus=	canbus
365_pmc=		pmc
366_snc=		snc
367.endif
368.endif
369
370.if ${MACHINE_ARCH} == "alpha"
371_agp=		agp
372_ahb=		ahb
373_ext2fs=	ext2fs
374_linprocfs=	linprocfs
375_linux=		linux
376_osf1=		osf1
377_sound=		sound
378_sppp=		sppp
379.endif
380
381.if ${MACHINE_ARCH} == "amd64"
382_aac=		aac
383_agp=		agp
384_ciss=		ciss
385_drm=		drm
386_em=		em
387_ext2fs=	ext2fs
388_i2c=		i2c
389_ida=		ida
390_iir=		iir
391_io=		io
392_ips=		ips
393_lnc=		lnc
394_mly=		mly
395#_ndis=		ndis
396_safe=		safe
397_scsi_low=	scsi_low
398_smbfs=		smbfs
399_sound=		sound
400_sppp=		sppp
401_twa=		twa
402.endif
403
404.if ${MACHINE_ARCH} == "ia64"
405# Modules not enabled on ia64 (as compared to i386) include:
406#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
407#	nsp oltr pecoff s3 sbni stg vesa
408_aic=		aic
409_ar=		ar
410_arcnet=	arcnet
411_asr=		asr
412_bktr=		bktr
413_cardbus=	cardbus
414_cbb=		cbb
415_ciss=		ciss
416_cm=		cm
417_coff=		coff
418_el=		el
419_em=		em
420_ep=		ep
421_exca=		exca
422_fe=		fe
423_hfa=		hfa
424_iir=		iir
425_mly=		mly
426_pccard=	pccard
427_ray=		ray
428_scsi_low=	scsi_low
429_smbfs=		smbfs
430_sound=		sound
431_splash=	splash
432_sppp=		sppp
433_sr=		sr
434_streams=	streams
435_wi=		wi
436_xe=		xe
437.endif
438
439.if ${MACHINE_ARCH} == "powerpc"
440_gem=		gem
441.endif
442
443.if ${MACHINE_ARCH} == "sparc64"
444_auxio=		auxio
445_gem=		gem
446.endif
447
448.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
449SUBDIR=${MODULES_OVERRIDE}
450.endif
451
452# Calling kldxref(8) for each module is expensive.
453.if !defined(NO_XREF)
454.MAKEFLAGS+=	-DNO_XREF
455afterinstall:
456	@if type kldxref >/dev/null 2>&1; then \
457		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
458		kldxref ${DESTDIR}${KMODDIR}; \
459	fi
460.endif
461
462.include <bsd.subdir.mk>
463