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