Makefile revision 1.208
11.208Srin# $NetBSD: Makefile,v 1.208 2018/08/25 20:12:22 rin 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.208SrinSUBDIR+= if_mue 681.118SchristosSUBDIR+= if_npflog 691.171SchristosSUBDIR+= if_ppp 701.174SpgoyetteSUBDIR+= if_pppoe 711.172SchristosSUBDIR+= if_sl 721.124SskrllSUBDIR+= if_smsc 731.175SchristosSUBDIR+= if_srt 741.175SchristosSUBDIR+= if_stf 751.172SchristosSUBDIR+= if_strip 761.176SpgoyetteSUBDIR+= if_tun tun 771.175SchristosSUBDIR+= if_vlan 781.94SmbalmerSUBDIR+= iic 791.196SpgoyetteSUBDIR+= ip_ecn 801.167SpgoyetteSUBDIR+= ipl 811.7SrumbleSUBDIR+= kernfs 821.22SadSUBDIR+= layerfs 831.7SrumbleSUBDIR+= lfs 841.121SmbalmerSUBDIR+= lua 851.128SlnetoSUBDIR+= luasystm 861.123SmbalmerSUBDIR+= luapmf 871.7SrumbleSUBDIR+= mfs 881.192SpgoyetteSUBDIR+= midi 891.45SpgoyetteSUBDIR+= miiverbose 901.45SpgoyetteSUBDIR+= miniroot 911.31SrmindSUBDIR+= mqueue 921.18SadSUBDIR+= msdos 931.68SahokaSUBDIR+= nand 941.68SahokaSUBDIR+= nandemulator 951.15SadSUBDIR+= nfs 961.15SadSUBDIR+= nfsserver 971.30SreinoudSUBDIR+= nilfs 981.96StronSUBDIR+= npf 991.97StronSUBDIR+= npf_alg_icmp 1001.111SrmindSUBDIR+= npf_ext_log 1011.119SchristosSUBDIR+= npf_ext_normalize 1021.117SrmindSUBDIR+= npf_ext_rndblock 1031.7SrumbleSUBDIR+= ntfs 1041.18SadSUBDIR+= null 1051.92SmbalmerSUBDIR+= onewire 1061.134SpgoyetteSUBDIR+= opencrypto 1071.7SrumbleSUBDIR+= overlay 1081.42SpgoyetteSUBDIR+= pciverbose 1091.41SahokaSUBDIR+= pf 1101.19ScubeSUBDIR+= ppp_bsdcomp 1111.19ScubeSUBDIR+= ppp_deflate 1121.7SrumbleSUBDIR+= procfs 1131.182SpgoyetteSUBDIR+= ptrace 1141.182SpgoyetteSUBDIR+= ptrace_common 1151.7SrumbleSUBDIR+= ptyfs 1161.7SrumbleSUBDIR+= puffs 1171.15SadSUBDIR+= putter 1181.165SpgoyetteSUBDIR+= raid 1191.44SpgoyetteSUBDIR+= scsiverbose 1201.103SpgoyetteSUBDIR+= sdtemp 1211.33SeladSUBDIR+= secmodel_bsd44 1221.100SjymSUBDIR+= secmodel_extensions 1231.33SeladSUBDIR+= secmodel_overlay 1241.33SeladSUBDIR+= securelevel 1251.192SpgoyetteSUBDIR+= sequencer 1261.133SpgoyetteSUBDIR+= skipjack 1271.168SpgoyetteSUBDIR+= slcompress 1281.7SrumbleSUBDIR+= smbfs 1291.81SpgoyetteSUBDIR+= spdmem 1301.188SpgoyetteSUBDIR+= spkr 1311.173SpgoyetteSUBDIR+= sppp_subr 1321.146SpgoyetteSUBDIR+= sysmon 1331.146SpgoyetteSUBDIR+= sysmon_envsys 1341.146SpgoyetteSUBDIR+= sysmon_power 1351.146SpgoyetteSUBDIR+= sysmon_taskq 1361.146SpgoyetteSUBDIR+= sysmon_wdog 1371.24SpookaSUBDIR+= sysvbfs 1381.153SpgoyetteSUBDIR+= sysv_ipc 1391.33SeladSUBDIR+= suser 1401.134SpgoyetteSUBDIR+= swcrypto 1411.48SpgoyetteSUBDIR+= swsensor 1421.145SpgoyetteSUBDIR+= swwdog 1431.7SrumbleSUBDIR+= tmpfs 1441.191SriastradSUBDIR+= ualea 1451.108SriastradSUBDIR+= uatp 1461.7SrumbleSUBDIR+= udf 1471.18SadSUBDIR+= umap 1481.7SrumbleSUBDIR+= union 1491.43SpgoyetteSUBDIR+= usbverbose 1501.106SchristosSUBDIR+= vcoda 1511.78SenamiSUBDIR+= v7fs 1521.25ShaadSUBDIR+= vnd 1531.157SpgoyetteSUBDIR+= wapbl 1541.193SpgoyetteSUBDIR+= wsbell 1551.131SpgoyetteSUBDIR+= zlib 1561.29SyamtSUBDIR+= tprof 1571.7Srumble.if (defined(NOTYET)) 1581.135SpgoyetteSUBDIR+= hifn # Builds on architectures with PCI bus 1591.7SrumbleSUBDIR+= unionfs 1601.7Srumble.endif 1611.37Sdyoung.if ${MKBINUTILS} != "no" 1621.37SdyoungSUBDIR+= xldscripts 1631.37Sdyoung.endif 1641.7Srumble 1651.15Sad# Machine dependent section 1661.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \ 1671.49Stsutsui ${MACHINE_CPU} == "m68k" 1681.47StsutsuiSUBDIR+= exec_aout 1691.47Stsutsui.endif 1701.47Stsutsui 1711.169Sscole.if ${MACHINE_ARCH} != "alpha" && \ 1721.169Sscole ${MACHINE_CPU} != "aarch64" && \ 1731.169Sscole ${MACHINE_ARCH} != "ia64" 1741.17SmartinSUBDIR+= exec_elf32 1751.17Smartin.endif 1761.15Sad 1771.139Smatt.if ${MACHINE_CPU} == "aarch64" || \ 1781.139Smatt ${MACHINE_ARCH} == "alpha" || \ 1791.169Sscole ${MACHINE_ARCH} == "ia64" || \ 1801.21Stsutsui ${MACHINE_ARCH} == "sparc64" || \ 1811.21Stsutsui ${MACHINE_ARCH} == "x86_64" 1821.20SheSUBDIR+= exec_elf64 1831.20She.endif 1841.20She 1851.29Syamt.if ${MACHINE_ARCH} == "i386" || \ 1861.29Syamt ${MACHINE_ARCH} == "x86_64" 1871.199SpgoyetteSUBDIR+= amdsmn 1881.71SjruohoSUBDIR+= amdtemp 1891.199SpgoyetteSUBDIR+= amdzentemp 1901.64SjruohoSUBDIR+= coretemp 1911.65SjruohoSUBDIR+= est 1921.110SmartinSUBDIR+= hdafg 1931.110SmartinSUBDIR+= hdaudio 1941.144SjmcneillSUBDIR+= hdaudio_pci 1951.141SchristosSUBDIR+= hdaudioverbose 1961.72SjruohoSUBDIR+= hpet 1971.202SpgoyetteSUBDIR+= ichsmb 1981.69SjruohoSUBDIR+= odcm 1991.66SjruohoSUBDIR+= powernow 2001.150SpgoyetteSUBDIR+= tco 2011.207SmaxvSUBDIR+= tprof_x86 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.149SriastradSUBDIR+= viadrmums 2881.15Sad.endif 2891.15Sad 2901.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2911.142Schristos ${MACHINE_ARCH} == "x86_64" 2921.142SchristosSUBDIR+= azalia 2931.142SchristosSUBDIR+= compat_linux 2941.142SchristosSUBDIR+= drm 2951.142SchristosSUBDIR+= drmkms 2961.142SchristosSUBDIR+= drmkms_linux 2971.142SchristosSUBDIR+= drmkms_pci 2981.142SchristosSUBDIR+= i915drm 2991.142SchristosSUBDIR+= i915drmkms 3001.142SchristosSUBDIR+= pad 3011.85Sjruoho# 3021.85Sjruoho# ISA modules 3031.85Sjruoho# 3041.59SjmcneillSUBDIR+= aps 3051.80SjmcneillSUBDIR+= finsio 3061.79SjmcneillSUBDIR+= itesio 3071.101SjakllschSUBDIR+= lm 3081.101SjakllschSUBDIR+= lm_isa 3091.101SjakllschSUBDIR+= lm_isa_common 3101.101SjakllschSUBDIR+= lm_wbsio 3111.101SjakllschSUBDIR+= wbsio 3121.56Sjmcneill.endif 3131.56Sjmcneill 3141.49Stsutsui.if ${MACHINE_CPU} == "m68k" 3151.47StsutsuiSUBDIR+= compat_aoutm68k 3161.47Stsutsui#SUBDIR+= compat_linux 3171.47Stsutsui#SUBDIR+= compat_sunos 3181.47Stsutsui#SUBDIR+= compat_svr4 3191.47Stsutsui.endif 3201.47Stsutsui 3211.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 3221.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 3231.88Smbalmer ${MACHINE_ARCH} == "sparc64" 3241.88SmbalmerSUBDIR+= pwdog 3251.88Smbalmer.endif 3261.88Smbalmer 3271.23Sagc.include <bsd.own.mk> 3281.23Sagc 3291.107Sreinoud# 3301.107Sreinoud# NetBSD/usermode support 3311.107Sreinoud# 3321.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 3331.107Sreinoud ${MACHINE_ARCH} == "x86_64" 3341.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 3351.107Sreinoud.endif 3361.107Sreinoud 3371.23Sagc# we need our device mapper for LVM 3381.23Sagc.if (${MKLVM} != "no") 3391.28SyamtSUBDIR+= dm 3401.23Sagc.endif 3411.23Sagc 3421.39Sdarran.if (${MKDTRACE} != "no") 3431.116SchsSUBDIR+= cyclic 3441.39SdarranSUBDIR+= dtrace 3451.39Sdarran.endif 3461.39Sdarran 3471.39Sdarran# we need solaris for the dtrace and zfs modules 3481.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3491.39SdarranSUBDIR+= solaris 3501.39Sdarran.endif 3511.39Sdarran 3521.34Shaad.if (${MKZFS} != "no") 3531.34ShaadSUBDIR+= zfs 3541.34Shaad.endif 3551.34Shaad 3561.73Smrg.if (${MKCOMPATMODULES} != "no") 3571.73SmrgSUBDIR+= arch 3581.73Smrg.endif 3591.73Smrg 3601.84Sjmcneill# 3611.84Sjmcneill# DTV modules 3621.84Sjmcneill# 3631.84SjmcneillSUBDIR+= dtv 3641.84SjmcneillSUBDIR+= dtv_math 3651.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3661.84Sjmcneill# tuners/demods 3671.84SjmcneillSUBDIR+= au8522 3681.84SjmcneillSUBDIR+= cx24227 3691.84SjmcneillSUBDIR+= lg3303 3701.84SjmcneillSUBDIR+= mt2131 3711.84SjmcneillSUBDIR+= nxt2k 3721.84SjmcneillSUBDIR+= tvpll 3731.84SjmcneillSUBDIR+= xc3028 3741.84SjmcneillSUBDIR+= xc5k 3751.91SjruohoSUBDIR+= zl10353 3761.84Sjmcneill# hardware drivers 3771.84SjmcneillSUBDIR+= auvitek 3781.84SjmcneillSUBDIR+= coram 3791.84SjmcneillSUBDIR+= cxdtv 3801.84SjmcneillSUBDIR+= emdtv 3811.200Spgoyette 3821.200Spgoyette# Intel Integrated Memory Controller and associated SMBus 3831.200Spgoyette# (Experimental) 3841.200SpgoyetteSUBDIR+= imc 3851.200SpgoyetteSUBDIR+= imcsmb 3861.200Spgoyette 3871.84Sjmcneill.endif 3881.84Sjmcneill 3891.98Sriz.if (${MKISCSI} != "no") 3901.98SrizSUBDIR+= iscsi 3911.98Sriz.endif 3921.98Sriz 3931.179Spgoyette# For now, all of these are disabled, pending resolution of how to deal 3941.179Spgoyette# with attachment-specific modules and bus-specific modules (as opposed 3951.179Spgoyette# to machine- or architecture-specific modules) 3961.179Spgoyette 3971.179Spgoyette.if 0 3981.179SpgoyetteSUBDIR+= aac 3991.179SpgoyetteSUBDIR+= amr 4001.179SpgoyetteSUBDIR+= ataraid 4011.179SpgoyetteSUBDIR+= cac 4021.179SpgoyetteSUBDIR+= cac_eisa 4031.179SpgoyetteSUBDIR+= cac_pci 4041.179SpgoyetteSUBDIR+= if_vioif 4051.179SpgoyetteSUBDIR+= ld 4061.179SpgoyetteSUBDIR+= ld_aac 4071.179SpgoyetteSUBDIR+= ld_amr 4081.179SpgoyetteSUBDIR+= ld_ataraid 4091.179SpgoyetteSUBDIR+= ld_cac 4101.179SpgoyetteSUBDIR+= ld_icp 4111.179SpgoyetteSUBDIR+= ld_mlx 4121.179SpgoyetteSUBDIR+= ld_sdmmc 4131.179SpgoyetteSUBDIR+= ld_twa 4141.179SpgoyetteSUBDIR+= ld_twe 4151.179SpgoyetteSUBDIR+= ld_virtio 4161.179SpgoyetteSUBDIR+= mlx 4171.179SpgoyetteSUBDIR+= mlx_eisa 4181.179SpgoyetteSUBDIR+= mlx_pci 4191.179SpgoyetteSUBDIR+= ld_nvme 4201.179SpgoyetteSUBDIR+= nvme 4211.179SpgoyetteSUBDIR+= twa 4221.179SpgoyetteSUBDIR+= twe 4231.179SpgoyetteSUBDIR+= viomb 4241.179SpgoyetteSUBDIR+= virtio 4251.205SjakllschSUBDIR+= virtio_pci 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