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