Makefile revision 1.204
11.204Sthorpej# $NetBSD: Makefile,v 1.204 2018/05/20 14:08:33 thorpej Exp $ 21.37Sdyoung 31.37Sdyoung.include <bsd.own.mk> 41.15Sad 51.15Sad# For all platforms 61.1Sad 71.179SpgoyetteSUBDIR= accf_dataready 81.16SadSUBDIR+= accf_httpready 91.15SadSUBDIR+= adosfs 101.14SadSUBDIR+= aio 111.192SpgoyetteSUBDIR+= audio 121.198SchristosSUBDIR+= autofs 131.133SpgoyetteSUBDIR+= blowfish 141.38SpookaSUBDIR+= bpf 151.166SpgoyetteSUBDIR+= bpf_filter 161.183SpgoyetteSUBDIR+= bufq_disksort 171.183SpgoyetteSUBDIR+= bufq_fcfs 181.183SpgoyetteSUBDIR+= bufq_priocscan 191.183SpgoyetteSUBDIR+= bufq_readprio 201.133SpgoyetteSUBDIR+= camellia 211.133SpgoyetteSUBDIR+= cast128 221.132SpgoyetteSUBDIR+= ccd 231.7SrumbleSUBDIR+= cd9660 241.129SpgoyetteSUBDIR+= cgd 251.132SpgoyetteSUBDIR+= chfs 261.163SpgoyetteSUBDIR+= clockctl 271.134SpgoyetteSUBDIR+= crypto 281.7SrumbleSUBDIR+= coda 291.7SrumbleSUBDIR+= coda5 301.15SadSUBDIR+= compat 311.15SadSUBDIR+= compat_ossaudio 321.15SadSUBDIR+= coredump 331.104SpgoyetteSUBDIR+= dbcool 341.133SpgoyetteSUBDIR+= des 351.129SpgoyetteSUBDIR+= dk_subr 361.164SpgoyetteSUBDIR+= drvctl 371.7SrumbleSUBDIR+= efs 381.7SrumbleSUBDIR+= ext2fs 391.15SadSUBDIR+= exec_script 401.7SrumbleSUBDIR+= fdesc 411.7SrumbleSUBDIR+= ffs 421.18SadSUBDIR+= filecore 431.93SsjgSUBDIR+= filemon 441.68SahokaSUBDIR+= flash 451.15SadSUBDIR+= fss 461.89SmbalmerSUBDIR+= gpio 471.94SmbalmerSUBDIR+= gpioiic 481.92SmbalmerSUBDIR+= gpioow 491.89SmbalmerSUBDIR+= gpiosim 501.203SthorpejSUBDIR+= gpioirq 511.204SthorpejSUBDIR+= gpiopps 521.7SrumbleSUBDIR+= hfs 531.136SkardelSUBDIR+= hythygtemp 541.197SchristosSUBDIR+= si70xxtemp 551.197SchristosSUBDIR+= am2315temp 561.143SjmcneillSUBDIR+= i2cexec 571.166SpgoyetteSUBDIR+= i2c_bitbang 581.175SchristosSUBDIR+= if_agr 591.105SpgoyetteSUBDIR+= if_axe 601.120SnonakaSUBDIR+= if_axen 611.175SchristosSUBDIR+= if_faith 621.175SchristosSUBDIR+= if_gif 631.175SchristosSUBDIR+= if_gre 641.189SknakaharSUBDIR+= if_l2tp 651.175SchristosSUBDIR+= if_loop 661.175SchristosSUBDIR+= if_mpls 671.118SchristosSUBDIR+= if_npflog 681.171SchristosSUBDIR+= if_ppp 691.174SpgoyetteSUBDIR+= if_pppoe 701.172SchristosSUBDIR+= if_sl 711.124SskrllSUBDIR+= if_smsc 721.175SchristosSUBDIR+= if_srt 731.175SchristosSUBDIR+= if_stf 741.172SchristosSUBDIR+= if_strip 751.176SpgoyetteSUBDIR+= if_tun tun 761.175SchristosSUBDIR+= if_vlan 771.94SmbalmerSUBDIR+= iic 781.196SpgoyetteSUBDIR+= ip_ecn 791.167SpgoyetteSUBDIR+= ipl 801.7SrumbleSUBDIR+= kernfs 811.22SadSUBDIR+= layerfs 821.7SrumbleSUBDIR+= lfs 831.121SmbalmerSUBDIR+= lua 841.128SlnetoSUBDIR+= luasystm 851.123SmbalmerSUBDIR+= luapmf 861.7SrumbleSUBDIR+= mfs 871.192SpgoyetteSUBDIR+= midi 881.45SpgoyetteSUBDIR+= miiverbose 891.45SpgoyetteSUBDIR+= miniroot 901.31SrmindSUBDIR+= mqueue 911.18SadSUBDIR+= msdos 921.68SahokaSUBDIR+= nand 931.68SahokaSUBDIR+= nandemulator 941.15SadSUBDIR+= nfs 951.15SadSUBDIR+= nfsserver 961.30SreinoudSUBDIR+= nilfs 971.96StronSUBDIR+= npf 981.97StronSUBDIR+= npf_alg_icmp 991.111SrmindSUBDIR+= npf_ext_log 1001.119SchristosSUBDIR+= npf_ext_normalize 1011.117SrmindSUBDIR+= npf_ext_rndblock 1021.7SrumbleSUBDIR+= ntfs 1031.18SadSUBDIR+= null 1041.92SmbalmerSUBDIR+= onewire 1051.134SpgoyetteSUBDIR+= opencrypto 1061.7SrumbleSUBDIR+= overlay 1071.42SpgoyetteSUBDIR+= pciverbose 1081.41SahokaSUBDIR+= pf 1091.19ScubeSUBDIR+= ppp_bsdcomp 1101.19ScubeSUBDIR+= ppp_deflate 1111.7SrumbleSUBDIR+= procfs 1121.182SpgoyetteSUBDIR+= ptrace 1131.182SpgoyetteSUBDIR+= ptrace_common 1141.7SrumbleSUBDIR+= ptyfs 1151.7SrumbleSUBDIR+= puffs 1161.15SadSUBDIR+= putter 1171.165SpgoyetteSUBDIR+= raid 1181.44SpgoyetteSUBDIR+= scsiverbose 1191.103SpgoyetteSUBDIR+= sdtemp 1201.33SeladSUBDIR+= secmodel_bsd44 1211.100SjymSUBDIR+= secmodel_extensions 1221.33SeladSUBDIR+= secmodel_overlay 1231.33SeladSUBDIR+= securelevel 1241.192SpgoyetteSUBDIR+= sequencer 1251.133SpgoyetteSUBDIR+= skipjack 1261.168SpgoyetteSUBDIR+= slcompress 1271.7SrumbleSUBDIR+= smbfs 1281.81SpgoyetteSUBDIR+= spdmem 1291.188SpgoyetteSUBDIR+= spkr 1301.173SpgoyetteSUBDIR+= sppp_subr 1311.146SpgoyetteSUBDIR+= sysmon 1321.146SpgoyetteSUBDIR+= sysmon_envsys 1331.146SpgoyetteSUBDIR+= sysmon_power 1341.146SpgoyetteSUBDIR+= sysmon_taskq 1351.146SpgoyetteSUBDIR+= sysmon_wdog 1361.24SpookaSUBDIR+= sysvbfs 1371.153SpgoyetteSUBDIR+= sysv_ipc 1381.33SeladSUBDIR+= suser 1391.134SpgoyetteSUBDIR+= swcrypto 1401.48SpgoyetteSUBDIR+= swsensor 1411.145SpgoyetteSUBDIR+= swwdog 1421.7SrumbleSUBDIR+= tmpfs 1431.191SriastradSUBDIR+= ualea 1441.108SriastradSUBDIR+= uatp 1451.7SrumbleSUBDIR+= udf 1461.18SadSUBDIR+= umap 1471.7SrumbleSUBDIR+= union 1481.43SpgoyetteSUBDIR+= usbverbose 1491.106SchristosSUBDIR+= vcoda 1501.78SenamiSUBDIR+= v7fs 1511.25ShaadSUBDIR+= vnd 1521.157SpgoyetteSUBDIR+= wapbl 1531.193SpgoyetteSUBDIR+= wsbell 1541.131SpgoyetteSUBDIR+= zlib 1551.29SyamtSUBDIR+= tprof 1561.7Srumble.if (defined(NOTYET)) 1571.135SpgoyetteSUBDIR+= hifn # Builds on architectures with PCI bus 1581.7SrumbleSUBDIR+= unionfs 1591.7Srumble.endif 1601.37Sdyoung.if ${MKBINUTILS} != "no" 1611.37SdyoungSUBDIR+= xldscripts 1621.37Sdyoung.endif 1631.7Srumble 1641.15Sad# Machine dependent section 1651.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \ 1661.49Stsutsui ${MACHINE_CPU} == "m68k" 1671.47StsutsuiSUBDIR+= exec_aout 1681.47Stsutsui.endif 1691.47Stsutsui 1701.169Sscole.if ${MACHINE_ARCH} != "alpha" && \ 1711.169Sscole ${MACHINE_CPU} != "aarch64" && \ 1721.169Sscole ${MACHINE_ARCH} != "ia64" 1731.17SmartinSUBDIR+= exec_elf32 1741.17Smartin.endif 1751.15Sad 1761.139Smatt.if ${MACHINE_CPU} == "aarch64" || \ 1771.139Smatt ${MACHINE_ARCH} == "alpha" || \ 1781.169Sscole ${MACHINE_ARCH} == "ia64" || \ 1791.21Stsutsui ${MACHINE_ARCH} == "sparc64" || \ 1801.21Stsutsui ${MACHINE_ARCH} == "x86_64" 1811.20SheSUBDIR+= exec_elf64 1821.20She.endif 1831.20She 1841.29Syamt.if ${MACHINE_ARCH} == "i386" || \ 1851.29Syamt ${MACHINE_ARCH} == "x86_64" 1861.199SpgoyetteSUBDIR+= amdsmn 1871.71SjruohoSUBDIR+= amdtemp 1881.199SpgoyetteSUBDIR+= amdzentemp 1891.64SjruohoSUBDIR+= coretemp 1901.65SjruohoSUBDIR+= est 1911.110SmartinSUBDIR+= hdafg 1921.110SmartinSUBDIR+= hdaudio 1931.144SjmcneillSUBDIR+= hdaudio_pci 1941.141SchristosSUBDIR+= hdaudioverbose 1951.72SjruohoSUBDIR+= hpet 1961.202SpgoyetteSUBDIR+= ichsmb 1971.69SjruohoSUBDIR+= odcm 1981.66SjruohoSUBDIR+= powernow 1991.150SpgoyetteSUBDIR+= tco 2001.29SyamtSUBDIR+= tprof_pmi 2011.70SyamtSUBDIR+= tprof_amdpmi 2021.95SjmcneillSUBDIR+= vmt 2031.29Syamt.endif 2041.29Syamt 2051.140Sbad.if ${MACHINE_ARCH} == "i386" || \ 2061.137Sbad ${MACHINE_ARCH} == "x86_64" 2071.137SbadSUBDIR+= ubsec # Builds on architectures with PCI bus 2081.137Sbad.endif 2091.137Sbad 2101.126Salnsn.if ${MKSLJIT} != "no" 2111.126Salnsn# No modules for arm, mips and powerpc yet. 2121.114Salnsn.if ${MACHINE_ARCH} == "i386" || \ 2131.115Salnsn ${MACHINE_ARCH} == "x86_64" || \ 2141.115Salnsn ${MACHINE_ARCH} == "sparc" 2151.113SalnsnSUBDIR+= bpfjit 2161.112SalnsnSUBDIR+= sljit 2171.112Salnsn.endif 2181.126Salnsn.endif 2191.112Salnsn 2201.85Sjruoho# 2211.85Sjruoho# ACPI modules 2221.85Sjruoho# 2231.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \ 2241.46Spgoyette ${MACHINE_ARCH} == "ia64" || \ 2251.46Spgoyette ${MACHINE_ARCH} == "x86_64" 2261.46SpgoyetteSUBDIR+= acpiverbose 2271.46Spgoyette.endif 2281.46Spgoyette 2291.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \ 2301.50Sjmcneill ${MACHINE_ARCH} == "x86_64" 2311.52SjruohoSUBDIR+= acpiacad 2321.52SjruohoSUBDIR+= acpibat 2331.52SjruohoSUBDIR+= acpibut 2341.52SjruohoSUBDIR+= acpicpu 2351.53SjruohoSUBDIR+= acpidalb 2361.58SjruohoSUBDIR+= acpifan 2371.52SjruohoSUBDIR+= acpilid 2381.57SjruohoSUBDIR+= acpipmtr 2391.53SjruohoSUBDIR+= acpitz 2401.53SjruohoSUBDIR+= acpivga 2411.86SjruohoSUBDIR+= acpiwdrt 2421.51SjmcneillSUBDIR+= acpiwmi 2431.53SjruohoSUBDIR+= aibs 2441.54SjruohoSUBDIR+= asus 2451.63SjruohoSUBDIR+= fujbp 2461.63SjruohoSUBDIR+= fujhk 2471.75SjruohoSUBDIR+= hpacel 2481.54SjruohoSUBDIR+= hpqlb 2491.52SjruohoSUBDIR+= thinkpad 2501.50SjmcneillSUBDIR+= wmidell 2511.83SjruohoSUBDIR+= wmieeepc 2521.50SjmcneillSUBDIR+= wmihp 2531.50SjmcneillSUBDIR+= wmimsi 2541.50Sjmcneill.endif 2551.50Sjmcneill 2561.156Smatt.if ${MACHINE_CPU} == "arm" \ 2571.156Smatt || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 2581.151SmattSUBDIR+= compat_netbsd32 2591.180SskrllSUBDIR+= compat_netbsd32_mqueue 2601.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2611.181SskrllSUBDIR+= compat_netbsd32_ptrace 2621.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2631.151Smatt.endif 2641.151Smatt 2651.27Sabs.if ${MACHINE_ARCH} == "x86_64" 2661.15SadSUBDIR+= compat_linux32 2671.15SadSUBDIR+= compat_netbsd32 2681.180SskrllSUBDIR+= compat_netbsd32_mqueue 2691.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2701.181SskrllSUBDIR+= compat_netbsd32_ptrace 2711.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2721.15Sad.endif 2731.15Sad 2741.27Sabs.if ${MACHINE_ARCH} == "i386" 2751.90SjmcneillSUBDIR+= ati_pcigart 2761.15SadSUBDIR+= compat_freebsd 2771.90SjmcneillSUBDIR+= mach64drm 2781.90SjmcneillSUBDIR+= mgadrm 2791.76SjmcneillSUBDIR+= nsclpcsio 2801.62SjmcneillSUBDIR+= padlock 2811.90SjmcneillSUBDIR+= r128drm 2821.90SjmcneillSUBDIR+= radeondrm 2831.90SjmcneillSUBDIR+= savagedrm 2841.90SjmcneillSUBDIR+= sisdrm 2851.90SjmcneillSUBDIR+= tdfxdrm 2861.67SjruohoSUBDIR+= viac7temp 2871.90SjmcneillSUBDIR+= viadrm 2881.149SriastradSUBDIR+= viadrmums 2891.15Sad.endif 2901.15Sad 2911.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2921.142Schristos ${MACHINE_ARCH} == "x86_64" 2931.142SchristosSUBDIR+= azalia 2941.142SchristosSUBDIR+= compat_linux 2951.142SchristosSUBDIR+= drm 2961.142SchristosSUBDIR+= drmkms 2971.142SchristosSUBDIR+= drmkms_linux 2981.142SchristosSUBDIR+= drmkms_pci 2991.142SchristosSUBDIR+= i915drm 3001.142SchristosSUBDIR+= i915drmkms 3011.142SchristosSUBDIR+= pad 3021.85Sjruoho# 3031.85Sjruoho# ISA modules 3041.85Sjruoho# 3051.59SjmcneillSUBDIR+= aps 3061.80SjmcneillSUBDIR+= finsio 3071.79SjmcneillSUBDIR+= itesio 3081.101SjakllschSUBDIR+= lm 3091.101SjakllschSUBDIR+= lm_isa 3101.101SjakllschSUBDIR+= lm_isa_common 3111.101SjakllschSUBDIR+= lm_wbsio 3121.101SjakllschSUBDIR+= wbsio 3131.56Sjmcneill.endif 3141.56Sjmcneill 3151.49Stsutsui.if ${MACHINE_CPU} == "m68k" 3161.47StsutsuiSUBDIR+= compat_aoutm68k 3171.47Stsutsui#SUBDIR+= compat_linux 3181.47Stsutsui#SUBDIR+= compat_sunos 3191.47Stsutsui#SUBDIR+= compat_svr4 3201.47Stsutsui.endif 3211.47Stsutsui 3221.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 3231.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 3241.88Smbalmer ${MACHINE_ARCH} == "sparc64" 3251.88SmbalmerSUBDIR+= pwdog 3261.88Smbalmer.endif 3271.88Smbalmer 3281.23Sagc.include <bsd.own.mk> 3291.23Sagc 3301.107Sreinoud# 3311.107Sreinoud# NetBSD/usermode support 3321.107Sreinoud# 3331.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 3341.107Sreinoud ${MACHINE_ARCH} == "x86_64" 3351.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 3361.107Sreinoud.endif 3371.107Sreinoud 3381.23Sagc# we need our device mapper for LVM 3391.23Sagc.if (${MKLVM} != "no") 3401.28SyamtSUBDIR+= dm 3411.23Sagc.endif 3421.23Sagc 3431.39Sdarran.if (${MKDTRACE} != "no") 3441.116SchsSUBDIR+= cyclic 3451.39SdarranSUBDIR+= dtrace 3461.39Sdarran.endif 3471.39Sdarran 3481.39Sdarran# we need solaris for the dtrace and zfs modules 3491.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3501.39SdarranSUBDIR+= solaris 3511.39Sdarran.endif 3521.39Sdarran 3531.34Shaad.if (${MKZFS} != "no") 3541.34ShaadSUBDIR+= zfs 3551.34Shaad.endif 3561.34Shaad 3571.73Smrg.if (${MKCOMPATMODULES} != "no") 3581.73SmrgSUBDIR+= arch 3591.73Smrg.endif 3601.73Smrg 3611.84Sjmcneill# 3621.84Sjmcneill# DTV modules 3631.84Sjmcneill# 3641.84SjmcneillSUBDIR+= dtv 3651.84SjmcneillSUBDIR+= dtv_math 3661.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3671.84Sjmcneill# tuners/demods 3681.84SjmcneillSUBDIR+= au8522 3691.84SjmcneillSUBDIR+= cx24227 3701.84SjmcneillSUBDIR+= lg3303 3711.84SjmcneillSUBDIR+= mt2131 3721.84SjmcneillSUBDIR+= nxt2k 3731.84SjmcneillSUBDIR+= tvpll 3741.84SjmcneillSUBDIR+= xc3028 3751.84SjmcneillSUBDIR+= xc5k 3761.91SjruohoSUBDIR+= zl10353 3771.84Sjmcneill# hardware drivers 3781.84SjmcneillSUBDIR+= auvitek 3791.84SjmcneillSUBDIR+= coram 3801.84SjmcneillSUBDIR+= cxdtv 3811.84SjmcneillSUBDIR+= emdtv 3821.200Spgoyette 3831.200Spgoyette# Intel Integrated Memory Controller and associated SMBus 3841.200Spgoyette# (Experimental) 3851.200SpgoyetteSUBDIR+= imc 3861.200SpgoyetteSUBDIR+= imcsmb 3871.200Spgoyette 3881.84Sjmcneill.endif 3891.84Sjmcneill 3901.98Sriz.if (${MKISCSI} != "no") 3911.98SrizSUBDIR+= iscsi 3921.98Sriz.endif 3931.98Sriz 3941.179Spgoyette# For now, all of these are disabled, pending resolution of how to deal 3951.179Spgoyette# with attachment-specific modules and bus-specific modules (as opposed 3961.179Spgoyette# to machine- or architecture-specific modules) 3971.179Spgoyette 3981.179Spgoyette.if 0 3991.179SpgoyetteSUBDIR+= aac 4001.179SpgoyetteSUBDIR+= amr 4011.179SpgoyetteSUBDIR+= ataraid 4021.179SpgoyetteSUBDIR+= cac 4031.179SpgoyetteSUBDIR+= cac_eisa 4041.179SpgoyetteSUBDIR+= cac_pci 4051.179SpgoyetteSUBDIR+= if_vioif 4061.179SpgoyetteSUBDIR+= ld 4071.179SpgoyetteSUBDIR+= ld_aac 4081.179SpgoyetteSUBDIR+= ld_amr 4091.179SpgoyetteSUBDIR+= ld_ataraid 4101.179SpgoyetteSUBDIR+= ld_cac 4111.179SpgoyetteSUBDIR+= ld_icp 4121.179SpgoyetteSUBDIR+= ld_mlx 4131.179SpgoyetteSUBDIR+= ld_sdmmc 4141.179SpgoyetteSUBDIR+= ld_twa 4151.179SpgoyetteSUBDIR+= ld_twe 4161.179SpgoyetteSUBDIR+= ld_virtio 4171.179SpgoyetteSUBDIR+= mlx 4181.179SpgoyetteSUBDIR+= mlx_eisa 4191.179SpgoyetteSUBDIR+= mlx_pci 4201.179SpgoyetteSUBDIR+= ld_nvme 4211.179SpgoyetteSUBDIR+= nvme 4221.179SpgoyetteSUBDIR+= twa 4231.179SpgoyetteSUBDIR+= twe 4241.179SpgoyetteSUBDIR+= viomb 4251.179SpgoyetteSUBDIR+= virtio 4261.190SjdolecekSUBDIR+= vioscsi 4271.179Spgoyette.endif 4281.179Spgoyette 4291.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 4301.154Spgoyette 4311.1Sad.include <bsd.subdir.mk> 432