Makefile revision 140997
1# $FreeBSD: head/sys/modules/Makefile 140997 2005-01-29 23:21:00Z sobomax $
2
3# oldcard -- specialized use for debugging only.
4# owi -- totally unsupported for debugging only.
5
6SUBDIR=	${_3dfx} \
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	${_arcnet} \
24	${_arl} \
25	${_asr} \
26	ath \
27	${_ath_hal} \
28	ath_rate_amrr \
29	ath_rate_onoe \
30	aue \
31	${_auxio} \
32	${_awi} \
33	axe \
34	bfe \
35	bge \
36	${_bios} \
37	${_bktr} \
38	bridge \
39	cam \
40	${_canbepm} \
41	${_canbus} \
42	${_cardbus} \
43	${_cbb} \
44	cd9660 \
45	cd9660_iconv \
46	${_ciss} \
47	${_cm} \
48	coda \
49	coda5 \
50	${_coff} \
51	${_cp} \
52	${_crypto} \
53	${_cryptodev} \
54	${_cs} \
55	${_ctau} \
56	cue \
57	${_cx} \
58	dc \
59	dcons \
60	dcons_crom \
61	de \
62	digi \
63	${_dpt} \
64	${_drm} \
65	dummynet \
66	${_ed} \
67	${_el} \
68	${_elink} \
69	${_em} \
70	en \
71	${_ep} \
72	${_ex} \
73	${_exca} \
74	${_ext2fs} \
75	fatm \
76	fdc \
77	fdescfs \
78	${_fe} \
79	firewire \
80	fxp \
81	${_gem} \
82	geom \
83	harp \
84	hatm \
85	${_hfa} \
86	hifn \
87	hme \
88	${_hptmv} \
89	${_i2c} \
90	${_ibcs2} \
91	${_ichwd} \
92	${_ida} \
93	${_idt} \
94	${_ie} \
95	if_disc \
96	if_ef \
97	if_faith \
98	if_gif \
99	if_gre \
100	if_ppp \
101	if_sl \
102	if_stf \
103	if_tap \
104	if_tun \
105	if_vlan \
106	${_iir} \
107	${_io} \
108	ip6fw \
109	ipdivert \
110	${_ipfilter} \
111	ipfw \
112	ip_mroute_mod \
113	${_ips} \
114	isp \
115	ispfw \
116	joy \
117	kue \
118	lge \
119	libiconv \
120	libmbpool \
121	libmchain \
122	${_linprocfs} \
123	${_linux} \
124	${_lnc} \
125	lpt \
126	mac_biba \
127	mac_bsdextended \
128	mac_ifoff \
129	mac_lomac \
130	mac_mls \
131	mac_none \
132	mac_partition \
133	mac_portacl \
134	mac_seeotheruids \
135	mac_stub \
136	mac_test \
137	mcd \
138	md \
139	mem \
140	mii \
141	mlx \
142	${_mly} \
143	mpt \
144	${_mse} \
145	msdosfs \
146	msdosfs_iconv \
147	my \
148	${_ncp} \
149	${_ncv} \
150	${_ndis} \
151	netgraph \
152	nfsclient \
153	nfsserver \
154	nge \
155	nmdm \
156	${_nsp} \
157	ntfs \
158	ntfs_iconv \
159	nullfs \
160	${_nwfs} \
161	${_oltr} \
162	${_osf1} \
163	patm \
164	${_pccard} \
165	${_pcfclock} \
166	pcn \
167	${_pecoff} \
168	${_pf} \
169	plip \
170	${_pmc} \
171	portalfs \
172	ppbus \
173	ppi \
174	pps \
175	procfs \
176	pseudofs \
177	${_pst} \
178	${_random} \
179	${_ray} \
180	rc \
181	rc4 \
182	re \
183	rl \
184	rp \
185	rue \
186	${_s3} \
187	${_safe} \
188	${_sbni} \
189	sbsh \
190	scd \
191	${_scsi_low} \
192	sf \
193	sis \
194	sk \
195	${_smbfs} \
196	sn \
197	${_snc} \
198	snp \
199	${_sound} \
200	${_speaker} \
201	${_splash} \
202	${_sppp} \
203	${_sr} \
204	ste \
205	${_stg} \
206	${_streams} \
207	sym \
208	${_syscons} \
209	sysvipc \
210	ti \
211	tl \
212	trm \
213	${_twa} \
214	twe \
215	tx \
216	txp \
217	uart \
218	ubsa \
219	ubsec \
220	ubser \
221	ucom \
222	ucycom \
223	udav \
224	udbp \
225	udf \
226	udf_iconv \
227	ufm \
228	${_ufs} \
229	uftdi \
230	ugen \
231	uhid \
232	ukbd \
233	ulpt \
234	umass \
235	umct \
236	umodem \
237	ums \
238	unionfs \
239	uplcom \
240	urio \
241	usb \
242	uscanner \
243	utopia \
244	uvisor \
245	uvscom \
246	${_vesa} \
247	vge \
248	vkbd \
249	vpo \
250	vr \
251	vx \
252	wb \
253	${_wi} \
254	wlan \
255	wlan_ccmp \
256	wlan_tkip \
257	wlan_wep \
258	wlan_xauth \
259	${_xe} \
260	xl
261
262.if ${MACHINE_ARCH} != "sparc64"
263_syscons=	syscons
264.endif
265
266.if defined(ALL_MODULES)
267_ufs=		ufs
268.endif
269
270.if !defined(NO_CRYPT) || defined(ALL_MODULES)
271.if exists(${.CURDIR}/../opencrypto)
272_crypto=	crypto
273_cryptodev=	cryptodev
274.endif
275.if exists(${.CURDIR}/../crypto)
276_random=	random
277.endif
278.endif
279
280.if !defined(NO_IPFILTER) || defined(ALL_MODULES)
281_ipfilter=	ipfilter
282.endif
283
284.if !defined(NO_PF) || defined(ALL_MODULES)
285_pf=		pf
286.endif
287
288.if ${MACHINE_ARCH} == "i386"
289# XXX some of these can move to the general case when de-i386'ed
290# XXX some of these can move now, but are untested on other architectures.
291_3dfx=		3dfx
292_agp=		agp
293_aic=		aic
294_amd=		amd
295_aout=		aout
296_apm=		apm
297_ar=		ar
298_arcnet=	arcnet
299_ath_hal=	ath_hal
300_awi=		awi
301_bktr=		bktr
302_coff=		coff
303_cp=		cp
304_drm=		drm
305_ed=		ed
306_elink=		elink
307_em=		em
308_ep=		ep
309_ext2fs=	ext2fs
310_fe=		fe
311_hfa=		hfa
312_i2c=		i2c
313_ibcs2=		ibcs2
314_ie=		ie
315_io=		io
316_linprocfs=	linprocfs
317_linux=		linux
318_lnc=		lnc
319_mse=		mse
320_ncp=		ncp
321_ncv=		ncv
322_ndis=		ndis
323_nsp=		nsp
324_nwfs=		nwfs
325_oltr=		oltr
326_pccard=	pccard
327_pcfclock=	pcfclock
328_pecoff=	pecoff
329_pst=		pst
330_ray=		ray
331_safe=		safe
332_sbni=		sbni
333_scsi_low=	scsi_low
334_smbfs=		smbfs
335_sound=		sound
336_speaker=	speaker
337_splash=	splash
338_sppp=		sppp
339_sr=		sr
340_stg=		stg
341_streams=	streams
342_wi=		wi
343_xe=		xe
344.if ${MACHINE} == "i386"
345_aac=		aac
346_acpi=		acpi
347_ahb=		ahb
348_arl=		arl
349_asr=		asr
350_bios=		bios
351_cardbus=	cardbus
352_cbb=		cbb
353_ciss=		ciss
354_cm=		cm
355_cs=		cs
356_ctau=		ctau
357_cx=		cx
358_dpt=		dpt
359_el=		el
360_ex=		ex
361_exca=		exca
362_hptmv=		hptmv
363_ichwd=		ichwd
364_ida=		ida
365_idt=		idt
366_iir=		iir
367_ips=		ips
368_mly=		mly
369_s3=		s3
370_twa=		twa
371_vesa=		vesa
372.elif ${MACHINE} == "pc98"
373_canbepm=	canbepm
374_canbus=	canbus
375_pmc=		pmc
376_snc=		snc
377.endif
378.endif
379
380.if ${MACHINE_ARCH} == "alpha"
381_agp=		agp
382_ahb=		ahb
383_ext2fs=	ext2fs
384_linprocfs=	linprocfs
385_linux=		linux
386_osf1=		osf1
387_sound=		sound
388_sppp=		sppp
389.endif
390
391.if ${MACHINE_ARCH} == "amd64"
392_aac=		aac
393#_acpi=		acpi		# doesn't work on amd64 yet
394_agp=		agp
395_ciss=		ciss
396_drm=		drm
397_em=		em
398_ext2fs=	ext2fs
399_i2c=		i2c
400_ida=		ida
401_iir=		iir
402_io=		io
403_ips=		ips
404#_lnc=		lnc
405_mly=		mly
406#_ndis=		ndis
407_safe=		safe
408_scsi_low=	scsi_low
409_smbfs=		smbfs
410_sound=		sound
411_sppp=		sppp
412_twa=		twa
413.endif
414
415.if ${MACHINE_ARCH} == "ia64"
416# Modules not enabled on ia64 (as compared to i386) include:
417#	aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
418#	nsp oltr pecoff s3 sbni stg vesa
419# acpi is not enabled because it is broken as a module on ia64
420_aic=		aic
421#_ar=		ar	not 64-bit clean
422_arcnet=	arcnet
423_asr=		asr
424_bktr=		bktr
425_cardbus=	cardbus
426_cbb=		cbb
427_ciss=		ciss
428_cm=		cm
429_coff=		coff
430_el=		el
431_em=		em
432_ep=		ep
433_exca=		exca
434_fe=		fe
435_hfa=		hfa
436_iir=		iir
437_mly=		mly
438_pccard=	pccard
439_ray=		ray
440_scsi_low=	scsi_low
441_smbfs=		smbfs
442_sound=		sound
443_splash=	splash
444_sppp=		sppp
445#_sr=		sr		not 64bit clean
446_streams=	streams
447_wi=		wi
448_xe=		xe
449.endif
450
451.if ${MACHINE_ARCH} == "powerpc"
452_gem=		gem
453.endif
454
455.if ${MACHINE_ARCH} == "sparc64"
456_auxio=		auxio
457_gem=		gem
458_sound=		sound
459.endif
460
461.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
462SUBDIR=${MODULES_OVERRIDE}
463.endif
464
465.for reject in ${WITHOUT_MODULES}
466SUBDIR:= ${SUBDIR:N${reject}}
467.endfor
468
469# Calling kldxref(8) for each module is expensive.
470.if !defined(NO_XREF)
471.MAKEFLAGS+=	-DNO_XREF
472afterinstall:
473	@if type kldxref >/dev/null 2>&1; then \
474		${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
475		kldxref ${DESTDIR}${KMODDIR}; \
476	fi
477.endif
478
479.include <bsd.subdir.mk>
480