Makefile revision 1.214
1# $NetBSD: Makefile,v 1.214 2018/12/19 13:57:52 maxv Exp $ 2 3.include <bsd.own.mk> 4 5# For all platforms 6 7SUBDIR= accf_dataready 8SUBDIR+= accf_httpready 9SUBDIR+= adosfs 10SUBDIR+= aio 11SUBDIR+= audio 12SUBDIR+= autofs 13SUBDIR+= blowfish 14SUBDIR+= bpf 15SUBDIR+= bpf_filter 16SUBDIR+= bufq_disksort 17SUBDIR+= bufq_fcfs 18SUBDIR+= bufq_priocscan 19SUBDIR+= bufq_readprio 20SUBDIR+= camellia 21SUBDIR+= cast128 22SUBDIR+= ccd 23SUBDIR+= cd9660 24SUBDIR+= cgd 25SUBDIR+= chfs 26SUBDIR+= clockctl 27SUBDIR+= crypto 28SUBDIR+= coda 29SUBDIR+= coda5 30SUBDIR+= compat 31SUBDIR+= compat_ossaudio 32SUBDIR+= coredump 33SUBDIR+= dbcool 34SUBDIR+= des 35SUBDIR+= dk_subr 36SUBDIR+= drvctl 37SUBDIR+= efs 38SUBDIR+= ext2fs 39SUBDIR+= exec_script 40SUBDIR+= fdesc 41SUBDIR+= ffs 42SUBDIR+= filecore 43SUBDIR+= filemon 44SUBDIR+= flash 45SUBDIR+= fss 46SUBDIR+= gpio 47SUBDIR+= gpioiic 48SUBDIR+= gpioow 49SUBDIR+= gpiosim 50SUBDIR+= gpioirq 51SUBDIR+= gpiopps 52SUBDIR+= hfs 53SUBDIR+= hythygtemp 54SUBDIR+= si70xxtemp 55SUBDIR+= am2315temp 56SUBDIR+= i2cexec 57SUBDIR+= i2c_bitbang 58SUBDIR+= if_agr 59SUBDIR+= if_axe 60SUBDIR+= if_axen 61SUBDIR+= if_faith 62SUBDIR+= if_gif 63SUBDIR+= if_gre 64SUBDIR+= if_l2tp 65SUBDIR+= if_loop 66SUBDIR+= if_mpls 67SUBDIR+= if_mue 68SUBDIR+= if_npflog 69SUBDIR+= if_ppp 70SUBDIR+= if_pppoe 71SUBDIR+= if_sl 72SUBDIR+= if_smsc 73SUBDIR+= if_srt 74SUBDIR+= if_stf 75SUBDIR+= if_strip 76SUBDIR+= if_tun tun 77SUBDIR+= if_vlan 78SUBDIR+= iic 79SUBDIR+= ip_ecn 80SUBDIR+= ipl 81SUBDIR+= kernfs 82SUBDIR+= layerfs 83SUBDIR+= lfs 84SUBDIR+= lua 85SUBDIR+= luasystm 86SUBDIR+= luapmf 87SUBDIR+= mfs 88SUBDIR+= midi 89SUBDIR+= miiverbose 90SUBDIR+= miniroot 91SUBDIR+= mqueue 92SUBDIR+= msdos 93SUBDIR+= nand 94SUBDIR+= nandemulator 95SUBDIR+= nfs 96SUBDIR+= nfsserver 97SUBDIR+= nilfs 98SUBDIR+= npf 99SUBDIR+= npf_alg_icmp 100SUBDIR+= npf_ext_log 101SUBDIR+= npf_ext_normalize 102SUBDIR+= npf_ext_rndblock 103SUBDIR+= ntfs 104SUBDIR+= null 105SUBDIR+= onewire 106SUBDIR+= opencrypto 107SUBDIR+= overlay 108SUBDIR+= pciverbose 109SUBDIR+= pf 110SUBDIR+= ppp_bsdcomp 111SUBDIR+= ppp_deflate 112SUBDIR+= procfs 113SUBDIR+= ptrace 114SUBDIR+= ptrace_common 115SUBDIR+= ptyfs 116SUBDIR+= puffs 117SUBDIR+= putter 118SUBDIR+= raid 119SUBDIR+= scsiverbose 120SUBDIR+= sdtemp 121SUBDIR+= secmodel_bsd44 122SUBDIR+= secmodel_extensions 123SUBDIR+= secmodel_overlay 124SUBDIR+= securelevel 125SUBDIR+= sequencer 126SUBDIR+= skipjack 127SUBDIR+= slcompress 128SUBDIR+= smbfs 129SUBDIR+= spdmem 130SUBDIR+= spkr 131SUBDIR+= sppp_subr 132SUBDIR+= sysmon 133SUBDIR+= sysmon_envsys 134SUBDIR+= sysmon_power 135SUBDIR+= sysmon_taskq 136SUBDIR+= sysmon_wdog 137SUBDIR+= sysvbfs 138SUBDIR+= sysv_ipc 139SUBDIR+= suser 140SUBDIR+= swcrypto 141SUBDIR+= swsensor 142SUBDIR+= swwdog 143SUBDIR+= tmpfs 144SUBDIR+= ualea 145SUBDIR+= uatp 146SUBDIR+= udf 147SUBDIR+= umap 148SUBDIR+= union 149SUBDIR+= usbverbose 150SUBDIR+= vcoda 151SUBDIR+= v7fs 152SUBDIR+= vnd 153SUBDIR+= wapbl 154SUBDIR+= wsbell 155SUBDIR+= zlib 156SUBDIR+= tprof 157.if (defined(NOTYET)) 158SUBDIR+= hifn # Builds on architectures with PCI bus 159SUBDIR+= unionfs 160.endif 161.if ${MKBINUTILS} != "no" 162SUBDIR+= xldscripts 163.endif 164 165# Machine dependent section 166.if ${MACHINE_ARCH} == "i386" || \ 167 ${MACHINE_CPU} == "m68k" 168SUBDIR+= exec_aout 169.endif 170 171.if ${MACHINE_ARCH} != "alpha" && \ 172 ${MACHINE_CPU} != "aarch64" && \ 173 ${MACHINE_ARCH} != "ia64" 174SUBDIR+= exec_elf32 175.endif 176 177.if ${MACHINE_CPU} == "aarch64" || \ 178 ${MACHINE_ARCH} == "alpha" || \ 179 ${MACHINE_ARCH} == "ia64" || \ 180 ${MACHINE_ARCH} == "sparc64" || \ 181 ${MACHINE_ARCH} == "x86_64" 182SUBDIR+= exec_elf64 183.endif 184 185.if ${MACHINE_ARCH} == "i386" || \ 186 ${MACHINE_ARCH} == "x86_64" 187SUBDIR+= amdsmn 188SUBDIR+= amdtemp 189SUBDIR+= amdzentemp 190SUBDIR+= coretemp 191SUBDIR+= est 192SUBDIR+= hdafg 193SUBDIR+= hdaudio 194SUBDIR+= hdaudio_pci 195SUBDIR+= hdaudioverbose 196SUBDIR+= hpet 197SUBDIR+= ichsmb 198SUBDIR+= odcm 199SUBDIR+= powernow 200SUBDIR+= tco 201SUBDIR+= tprof_x86 202SUBDIR+= vmt 203.endif 204 205.if ${MACHINE_ARCH} == "x86_64" 206SUBDIR+= nvmm 207.endif 208 209.if ${MACHINE_ARCH} == "i386" || \ 210 ${MACHINE_ARCH} == "x86_64" 211SUBDIR+= ubsec # Builds on architectures with PCI bus 212.endif 213 214.if ${MKSLJIT} != "no" 215# No modules for arm, mips and powerpc yet. 216.if ${MACHINE_ARCH} == "i386" || \ 217 ${MACHINE_ARCH} == "x86_64" || \ 218 ${MACHINE_ARCH} == "sparc" 219SUBDIR+= bpfjit 220SUBDIR+= sljit 221.endif 222.endif 223 224# 225# ACPI modules 226# 227.if ${MACHINE_ARCH} == "i386" || \ 228 ${MACHINE_ARCH} == "ia64" || \ 229 ${MACHINE_ARCH} == "x86_64" 230SUBDIR+= acpiverbose 231.endif 232 233.if ${MACHINE_ARCH} == "i386" || \ 234 ${MACHINE_ARCH} == "x86_64" 235SUBDIR+= acpiacad 236SUBDIR+= acpibat 237SUBDIR+= acpibut 238SUBDIR+= acpicpu 239SUBDIR+= acpidalb 240SUBDIR+= acpifan 241SUBDIR+= acpilid 242SUBDIR+= acpipmtr 243SUBDIR+= acpitz 244SUBDIR+= acpivga 245SUBDIR+= acpiwdrt 246SUBDIR+= acpiwmi 247SUBDIR+= aibs 248SUBDIR+= asus 249SUBDIR+= fujbp 250SUBDIR+= fujhk 251SUBDIR+= hpacel 252SUBDIR+= hpqlb 253SUBDIR+= thinkpad 254SUBDIR+= wmidell 255SUBDIR+= wmieeepc 256SUBDIR+= wmihp 257SUBDIR+= wmimsi 258.endif 259 260.if ${MACHINE_CPU} == "arm" \ 261 || ${MACHINE_ARCH} == "sparc64" \ 262 || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 263SUBDIR+= compat_netbsd32 264SUBDIR+= compat_netbsd32_mqueue 265SUBDIR+= compat_netbsd32_nfssrv 266SUBDIR+= compat_netbsd32_ptrace 267SUBDIR+= compat_netbsd32_sysvipc 268.endif 269 270.if ${MACHINE_ARCH} == "x86_64" 271SUBDIR+= compat_linux32 272SUBDIR+= compat_netbsd32 273SUBDIR+= compat_netbsd32_mqueue 274SUBDIR+= compat_netbsd32_nfssrv 275SUBDIR+= compat_netbsd32_ptrace 276SUBDIR+= compat_netbsd32_sysvipc 277.endif 278 279.if ${MACHINE_ARCH} == "i386" 280SUBDIR+= ati_pcigart 281SUBDIR+= compat_freebsd 282SUBDIR+= mach64drm 283SUBDIR+= mgadrm 284SUBDIR+= nsclpcsio 285SUBDIR+= padlock 286SUBDIR+= r128drm 287SUBDIR+= radeondrm 288SUBDIR+= savagedrm 289SUBDIR+= sisdrm 290SUBDIR+= tdfxdrm 291SUBDIR+= viac7temp 292SUBDIR+= viadrmums 293.endif 294 295.if ${MACHINE_ARCH} == "i386" || \ 296 ${MACHINE_ARCH} == "x86_64" 297SUBDIR+= azalia 298SUBDIR+= compat_linux 299SUBDIR+= drm 300SUBDIR+= drmkms 301SUBDIR+= drmkms_agp 302SUBDIR+= drmkms_linux 303SUBDIR+= drmkms_pci 304SUBDIR+= i915drm 305SUBDIR+= i915drmkms 306SUBDIR+= pad 307# 308# ISA modules 309# 310SUBDIR+= aps 311SUBDIR+= finsio 312SUBDIR+= itesio 313SUBDIR+= lm 314SUBDIR+= lm_isa 315SUBDIR+= lm_isa_common 316SUBDIR+= lm_wbsio 317SUBDIR+= wbsio 318.endif 319 320.if ${MACHINE_CPU} == "m68k" 321SUBDIR+= compat_aoutm68k 322#SUBDIR+= compat_linux 323#SUBDIR+= compat_sunos 324.endif 325 326.if ${MACHINE_ARCH} == "i386" || \ 327 ${MACHINE_ARCH} == "x86_64" || \ 328 ${MACHINE_ARCH} == "sparc64" 329SUBDIR+= pwdog 330.endif 331 332.include <bsd.own.mk> 333 334# 335# NetBSD/usermode support 336# 337.if ${MACHINE_ARCH} == "i386" || \ 338 ${MACHINE_ARCH} == "x86_64" 339SUBDIR+= ../arch/usermode/modules/syscallemu 340.endif 341 342# we need our device mapper for LVM 343.if (${MKLVM} != "no") 344SUBDIR+= dm 345.endif 346 347.if (${MKDTRACE} != "no") 348SUBDIR+= cyclic 349SUBDIR+= dtrace 350.endif 351 352# we need solaris for the dtrace and zfs modules 353.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 354SUBDIR+= solaris 355.endif 356 357.if (${MKZFS} != "no") 358SUBDIR+= zfs 359.endif 360 361.if (${MKCOMPATMODULES} != "no") 362SUBDIR+= arch 363.endif 364 365# 366# DTV modules 367# 368SUBDIR+= dtv 369SUBDIR+= dtv_math 370.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 371# tuners/demods 372SUBDIR+= au8522 373SUBDIR+= cx24227 374SUBDIR+= lg3303 375SUBDIR+= mt2131 376SUBDIR+= nxt2k 377SUBDIR+= tvpll 378SUBDIR+= xc3028 379SUBDIR+= xc5k 380SUBDIR+= zl10353 381# hardware drivers 382SUBDIR+= auvitek 383SUBDIR+= coram 384SUBDIR+= cxdtv 385SUBDIR+= emdtv 386 387# Intel Integrated Memory Controller and associated SMBus 388# (Experimental) 389SUBDIR+= imc 390SUBDIR+= imcsmb 391 392.endif 393 394.if (${MKISCSI} != "no") 395SUBDIR+= iscsi 396.endif 397 398# For now, all of these are disabled, pending resolution of how to deal 399# with attachment-specific modules and bus-specific modules (as opposed 400# to machine- or architecture-specific modules) 401 402.if 0 403SUBDIR+= aac 404SUBDIR+= amr 405SUBDIR+= ataraid 406SUBDIR+= cac 407SUBDIR+= cac_eisa 408SUBDIR+= cac_pci 409SUBDIR+= if_vioif 410SUBDIR+= ld 411SUBDIR+= ld_aac 412SUBDIR+= ld_amr 413SUBDIR+= ld_ataraid 414SUBDIR+= ld_cac 415SUBDIR+= ld_icp 416SUBDIR+= ld_mlx 417SUBDIR+= ld_sdmmc 418SUBDIR+= ld_twa 419SUBDIR+= ld_twe 420SUBDIR+= ld_virtio 421SUBDIR+= mlx 422SUBDIR+= mlx_eisa 423SUBDIR+= mlx_pci 424SUBDIR+= ld_nvme 425SUBDIR+= nvme 426SUBDIR+= twa 427SUBDIR+= twe 428SUBDIR+= viomb 429SUBDIR+= virtio 430SUBDIR+= virtio_pci 431SUBDIR+= vioscsi 432.endif 433 434SUBDIR+= examples # build these regularly to avoid bit-rot 435 436.include <bsd.subdir.mk> 437