Makefile revision 1.200
1# $NetBSD: Makefile,v 1.200 2018/02/25 08:20:28 pgoyette 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+= ksem 80SUBDIR+= layerfs 81SUBDIR+= lfs 82SUBDIR+= lua 83SUBDIR+= luasystm 84SUBDIR+= luapmf 85SUBDIR+= mfs 86SUBDIR+= midi 87SUBDIR+= miiverbose 88SUBDIR+= miniroot 89SUBDIR+= mqueue 90SUBDIR+= msdos 91SUBDIR+= nand 92SUBDIR+= nandemulator 93SUBDIR+= nfs 94SUBDIR+= nfsserver 95SUBDIR+= nilfs 96SUBDIR+= npf 97SUBDIR+= npf_alg_icmp 98SUBDIR+= npf_ext_log 99SUBDIR+= npf_ext_normalize 100SUBDIR+= npf_ext_rndblock 101SUBDIR+= ntfs 102SUBDIR+= null 103SUBDIR+= onewire 104SUBDIR+= opencrypto 105SUBDIR+= overlay 106SUBDIR+= pciverbose 107SUBDIR+= pf 108SUBDIR+= ppp_bsdcomp 109SUBDIR+= ppp_deflate 110SUBDIR+= procfs 111SUBDIR+= ptrace 112SUBDIR+= ptrace_common 113SUBDIR+= ptyfs 114SUBDIR+= puffs 115SUBDIR+= putter 116SUBDIR+= raid 117SUBDIR+= scsiverbose 118SUBDIR+= sdtemp 119SUBDIR+= secmodel_bsd44 120SUBDIR+= secmodel_extensions 121SUBDIR+= secmodel_overlay 122SUBDIR+= securelevel 123SUBDIR+= sequencer 124SUBDIR+= skipjack 125SUBDIR+= slcompress 126SUBDIR+= smbfs 127SUBDIR+= spdmem 128SUBDIR+= spkr 129SUBDIR+= sppp_subr 130SUBDIR+= sysmon 131SUBDIR+= sysmon_envsys 132SUBDIR+= sysmon_power 133SUBDIR+= sysmon_taskq 134SUBDIR+= sysmon_wdog 135SUBDIR+= sysvbfs 136SUBDIR+= sysv_ipc 137SUBDIR+= suser 138SUBDIR+= swcrypto 139SUBDIR+= swsensor 140SUBDIR+= swwdog 141SUBDIR+= tmpfs 142SUBDIR+= ualea 143SUBDIR+= uatp 144SUBDIR+= udf 145SUBDIR+= umap 146SUBDIR+= union 147SUBDIR+= usbverbose 148SUBDIR+= vcoda 149SUBDIR+= v7fs 150SUBDIR+= vnd 151SUBDIR+= wapbl 152SUBDIR+= wsbell 153SUBDIR+= zlib 154SUBDIR+= tprof 155.if (defined(NOTYET)) 156SUBDIR+= hifn # Builds on architectures with PCI bus 157SUBDIR+= unionfs 158.endif 159.if ${MKBINUTILS} != "no" 160SUBDIR+= xldscripts 161.endif 162 163# Machine dependent section 164.if ${MACHINE_ARCH} == "i386" || \ 165 ${MACHINE_CPU} == "m68k" 166SUBDIR+= exec_aout 167.endif 168 169.if ${MACHINE_ARCH} != "alpha" && \ 170 ${MACHINE_CPU} != "aarch64" && \ 171 ${MACHINE_ARCH} != "ia64" 172SUBDIR+= exec_elf32 173.endif 174 175.if ${MACHINE_CPU} == "aarch64" || \ 176 ${MACHINE_ARCH} == "alpha" || \ 177 ${MACHINE_ARCH} == "ia64" || \ 178 ${MACHINE_ARCH} == "sparc64" || \ 179 ${MACHINE_ARCH} == "x86_64" 180SUBDIR+= exec_elf64 181.endif 182 183.if ${MACHINE_ARCH} == "i386" || \ 184 ${MACHINE_ARCH} == "x86_64" 185SUBDIR+= amdsmn 186SUBDIR+= amdtemp 187SUBDIR+= amdzentemp 188SUBDIR+= coretemp 189SUBDIR+= est 190SUBDIR+= hdafg 191SUBDIR+= hdaudio 192SUBDIR+= hdaudio_pci 193SUBDIR+= hdaudioverbose 194SUBDIR+= hpet 195SUBDIR+= odcm 196SUBDIR+= powernow 197SUBDIR+= tco 198SUBDIR+= tprof_pmi 199SUBDIR+= tprof_amdpmi 200SUBDIR+= vmt 201.endif 202 203.if ${MACHINE_ARCH} == "i386" || \ 204 ${MACHINE_ARCH} == "x86_64" 205SUBDIR+= ubsec # Builds on architectures with PCI bus 206.endif 207 208.if ${MKSLJIT} != "no" 209# No modules for arm, mips and powerpc yet. 210.if ${MACHINE_ARCH} == "i386" || \ 211 ${MACHINE_ARCH} == "x86_64" || \ 212 ${MACHINE_ARCH} == "sparc" 213SUBDIR+= bpfjit 214SUBDIR+= sljit 215.endif 216.endif 217 218# 219# ACPI modules 220# 221.if ${MACHINE_ARCH} == "i386" || \ 222 ${MACHINE_ARCH} == "ia64" || \ 223 ${MACHINE_ARCH} == "x86_64" 224SUBDIR+= acpiverbose 225.endif 226 227.if ${MACHINE_ARCH} == "i386" || \ 228 ${MACHINE_ARCH} == "x86_64" 229SUBDIR+= acpiacad 230SUBDIR+= acpibat 231SUBDIR+= acpibut 232SUBDIR+= acpicpu 233SUBDIR+= acpidalb 234SUBDIR+= acpifan 235SUBDIR+= acpilid 236SUBDIR+= acpipmtr 237SUBDIR+= acpitz 238SUBDIR+= acpivga 239SUBDIR+= acpiwdrt 240SUBDIR+= acpiwmi 241SUBDIR+= aibs 242SUBDIR+= asus 243SUBDIR+= fujbp 244SUBDIR+= fujhk 245SUBDIR+= hpacel 246SUBDIR+= hpqlb 247SUBDIR+= thinkpad 248SUBDIR+= wmidell 249SUBDIR+= wmieeepc 250SUBDIR+= wmihp 251SUBDIR+= wmimsi 252.endif 253 254.if ${MACHINE_CPU} == "arm" \ 255 || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 256SUBDIR+= compat_netbsd32 257SUBDIR+= compat_netbsd32_mqueue 258SUBDIR+= compat_netbsd32_nfssrv 259SUBDIR+= compat_netbsd32_ptrace 260SUBDIR+= compat_netbsd32_sysvipc 261.endif 262 263.if ${MACHINE_ARCH} == "x86_64" 264SUBDIR+= compat_linux32 265SUBDIR+= compat_netbsd32 266SUBDIR+= compat_netbsd32_mqueue 267SUBDIR+= compat_netbsd32_nfssrv 268SUBDIR+= compat_netbsd32_ptrace 269SUBDIR+= compat_netbsd32_sysvipc 270.endif 271 272.if ${MACHINE_ARCH} == "i386" 273SUBDIR+= ati_pcigart 274SUBDIR+= compat_freebsd 275SUBDIR+= mach64drm 276SUBDIR+= mgadrm 277SUBDIR+= nsclpcsio 278SUBDIR+= padlock 279SUBDIR+= r128drm 280SUBDIR+= radeondrm 281SUBDIR+= savagedrm 282SUBDIR+= sisdrm 283SUBDIR+= tdfxdrm 284SUBDIR+= viac7temp 285SUBDIR+= viadrm 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+= vioscsi 425.endif 426 427SUBDIR+= examples # build these regularly to avoid bit-rot 428 429.include <bsd.subdir.mk> 430