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