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