Makefile revision 1.218
11.218Smrg# $NetBSD: Makefile,v 1.218 2019/02/04 21:57:48 mrg Exp $ 21.37Sdyoung 31.37Sdyoung.include <bsd.own.mk> 41.15Sad 51.15Sad# For all platforms 61.1Sad 71.216Spgoyette# Modules for compatability with earlier versions of NetBSD 81.216Spgoyette 91.216SpgoyetteSUBDIR+= compat_util 101.216SpgoyetteSUBDIR+= compat_43 compat_sysctl_09_43 111.216SpgoyetteSUBDIR+= compat_09 compat_10 compat_12 compat_13 compat_14 121.216SpgoyetteSUBDIR+= compat_16 compat_20 compat_30 compat_40 compat_50 131.216SpgoyetteSUBDIR+= compat_60 compat_70 compat_80 141.216Spgoyette 151.216SpgoyetteSUBDIR+= compat_sysv_10 compat_sysv_14 compat_sysv_50 161.216Spgoyette 171.216SpgoyetteSUBDIR+= compat_raid_50 181.216SpgoyetteSUBDIR+= compat_raid_80 191.216Spgoyette 201.216SpgoyetteSUBDIR+= compat_crypto_50 211.216Spgoyette 221.216SpgoyetteSUBDIR+= accf_dataready 231.16SadSUBDIR+= accf_httpready 241.15SadSUBDIR+= adosfs 251.14SadSUBDIR+= aio 261.192SpgoyetteSUBDIR+= audio 271.198SchristosSUBDIR+= autofs 281.133SpgoyetteSUBDIR+= blowfish 291.38SpookaSUBDIR+= bpf 301.166SpgoyetteSUBDIR+= bpf_filter 311.183SpgoyetteSUBDIR+= bufq_disksort 321.183SpgoyetteSUBDIR+= bufq_fcfs 331.183SpgoyetteSUBDIR+= bufq_priocscan 341.183SpgoyetteSUBDIR+= bufq_readprio 351.133SpgoyetteSUBDIR+= camellia 361.133SpgoyetteSUBDIR+= cast128 371.132SpgoyetteSUBDIR+= ccd 381.7SrumbleSUBDIR+= cd9660 391.129SpgoyetteSUBDIR+= cgd 401.132SpgoyetteSUBDIR+= chfs 411.163SpgoyetteSUBDIR+= clockctl 421.216SpgoyetteSUBDIR+= compat_ossaudio 431.134SpgoyetteSUBDIR+= crypto 441.7SrumbleSUBDIR+= coda 451.7SrumbleSUBDIR+= coda5 461.15SadSUBDIR+= coredump 471.104SpgoyetteSUBDIR+= dbcool 481.133SpgoyetteSUBDIR+= des 491.129SpgoyetteSUBDIR+= dk_subr 501.164SpgoyetteSUBDIR+= drvctl 511.7SrumbleSUBDIR+= efs 521.7SrumbleSUBDIR+= ext2fs 531.15SadSUBDIR+= exec_script 541.7SrumbleSUBDIR+= fdesc 551.7SrumbleSUBDIR+= ffs 561.18SadSUBDIR+= filecore 571.93SsjgSUBDIR+= filemon 581.68SahokaSUBDIR+= flash 591.15SadSUBDIR+= fss 601.89SmbalmerSUBDIR+= gpio 611.94SmbalmerSUBDIR+= gpioiic 621.92SmbalmerSUBDIR+= gpioow 631.89SmbalmerSUBDIR+= gpiosim 641.203SthorpejSUBDIR+= gpioirq 651.204SthorpejSUBDIR+= gpiopps 661.7SrumbleSUBDIR+= hfs 671.136SkardelSUBDIR+= hythygtemp 681.197SchristosSUBDIR+= si70xxtemp 691.197SchristosSUBDIR+= am2315temp 701.143SjmcneillSUBDIR+= i2cexec 711.166SpgoyetteSUBDIR+= i2c_bitbang 721.175SchristosSUBDIR+= if_agr 731.105SpgoyetteSUBDIR+= if_axe 741.120SnonakaSUBDIR+= if_axen 751.175SchristosSUBDIR+= if_faith 761.175SchristosSUBDIR+= if_gif 771.175SchristosSUBDIR+= if_gre 781.189SknakaharSUBDIR+= if_l2tp 791.175SchristosSUBDIR+= if_loop 801.175SchristosSUBDIR+= if_mpls 811.208SrinSUBDIR+= if_mue 821.118SchristosSUBDIR+= if_npflog 831.171SchristosSUBDIR+= if_ppp 841.174SpgoyetteSUBDIR+= if_pppoe 851.172SchristosSUBDIR+= if_sl 861.124SskrllSUBDIR+= if_smsc 871.175SchristosSUBDIR+= if_srt 881.175SchristosSUBDIR+= if_stf 891.172SchristosSUBDIR+= if_strip 901.176SpgoyetteSUBDIR+= if_tun tun 911.175SchristosSUBDIR+= if_vlan 921.94SmbalmerSUBDIR+= iic 931.196SpgoyetteSUBDIR+= ip_ecn 941.167SpgoyetteSUBDIR+= ipl 951.7SrumbleSUBDIR+= kernfs 961.22SadSUBDIR+= layerfs 971.7SrumbleSUBDIR+= lfs 981.121SmbalmerSUBDIR+= lua 991.128SlnetoSUBDIR+= luasystm 1001.123SmbalmerSUBDIR+= luapmf 1011.7SrumbleSUBDIR+= mfs 1021.192SpgoyetteSUBDIR+= midi 1031.45SpgoyetteSUBDIR+= miiverbose 1041.45SpgoyetteSUBDIR+= miniroot 1051.31SrmindSUBDIR+= mqueue 1061.18SadSUBDIR+= msdos 1071.68SahokaSUBDIR+= nand 1081.68SahokaSUBDIR+= nandemulator 1091.15SadSUBDIR+= nfs 1101.15SadSUBDIR+= nfsserver 1111.30SreinoudSUBDIR+= nilfs 1121.96StronSUBDIR+= npf 1131.97StronSUBDIR+= npf_alg_icmp 1141.111SrmindSUBDIR+= npf_ext_log 1151.119SchristosSUBDIR+= npf_ext_normalize 1161.117SrmindSUBDIR+= npf_ext_rndblock 1171.7SrumbleSUBDIR+= ntfs 1181.18SadSUBDIR+= null 1191.92SmbalmerSUBDIR+= onewire 1201.134SpgoyetteSUBDIR+= opencrypto 1211.7SrumbleSUBDIR+= overlay 1221.42SpgoyetteSUBDIR+= pciverbose 1231.41SahokaSUBDIR+= pf 1241.19ScubeSUBDIR+= ppp_bsdcomp 1251.19ScubeSUBDIR+= ppp_deflate 1261.7SrumbleSUBDIR+= procfs 1271.182SpgoyetteSUBDIR+= ptrace 1281.182SpgoyetteSUBDIR+= ptrace_common 1291.7SrumbleSUBDIR+= ptyfs 1301.7SrumbleSUBDIR+= puffs 1311.15SadSUBDIR+= putter 1321.165SpgoyetteSUBDIR+= raid 1331.44SpgoyetteSUBDIR+= scsiverbose 1341.103SpgoyetteSUBDIR+= sdtemp 1351.33SeladSUBDIR+= secmodel_bsd44 1361.100SjymSUBDIR+= secmodel_extensions 1371.33SeladSUBDIR+= secmodel_overlay 1381.33SeladSUBDIR+= securelevel 1391.192SpgoyetteSUBDIR+= sequencer 1401.133SpgoyetteSUBDIR+= skipjack 1411.168SpgoyetteSUBDIR+= slcompress 1421.7SrumbleSUBDIR+= smbfs 1431.81SpgoyetteSUBDIR+= spdmem 1441.188SpgoyetteSUBDIR+= spkr 1451.173SpgoyetteSUBDIR+= sppp_subr 1461.146SpgoyetteSUBDIR+= sysmon 1471.146SpgoyetteSUBDIR+= sysmon_envsys 1481.146SpgoyetteSUBDIR+= sysmon_power 1491.146SpgoyetteSUBDIR+= sysmon_taskq 1501.146SpgoyetteSUBDIR+= sysmon_wdog 1511.24SpookaSUBDIR+= sysvbfs 1521.153SpgoyetteSUBDIR+= sysv_ipc 1531.33SeladSUBDIR+= suser 1541.134SpgoyetteSUBDIR+= swcrypto 1551.48SpgoyetteSUBDIR+= swsensor 1561.145SpgoyetteSUBDIR+= swwdog 1571.7SrumbleSUBDIR+= tmpfs 1581.191SriastradSUBDIR+= ualea 1591.108SriastradSUBDIR+= uatp 1601.7SrumbleSUBDIR+= udf 1611.18SadSUBDIR+= umap 1621.7SrumbleSUBDIR+= union 1631.43SpgoyetteSUBDIR+= usbverbose 1641.106SchristosSUBDIR+= vcoda 1651.78SenamiSUBDIR+= v7fs 1661.25ShaadSUBDIR+= vnd 1671.157SpgoyetteSUBDIR+= wapbl 1681.193SpgoyetteSUBDIR+= wsbell 1691.131SpgoyetteSUBDIR+= zlib 1701.29SyamtSUBDIR+= tprof 1711.7Srumble.if (defined(NOTYET)) 1721.135SpgoyetteSUBDIR+= hifn # Builds on architectures with PCI bus 1731.7SrumbleSUBDIR+= unionfs 1741.7Srumble.endif 1751.37Sdyoung.if ${MKBINUTILS} != "no" 1761.37SdyoungSUBDIR+= xldscripts 1771.37Sdyoung.endif 1781.7Srumble 1791.15Sad# Machine dependent section 1801.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \ 1811.49Stsutsui ${MACHINE_CPU} == "m68k" 1821.47StsutsuiSUBDIR+= exec_aout 1831.47Stsutsui.endif 1841.47Stsutsui 1851.169Sscole.if ${MACHINE_ARCH} != "alpha" && \ 1861.169Sscole ${MACHINE_CPU} != "aarch64" && \ 1871.169Sscole ${MACHINE_ARCH} != "ia64" 1881.17SmartinSUBDIR+= exec_elf32 1891.17Smartin.endif 1901.15Sad 1911.139Smatt.if ${MACHINE_CPU} == "aarch64" || \ 1921.139Smatt ${MACHINE_ARCH} == "alpha" || \ 1931.169Sscole ${MACHINE_ARCH} == "ia64" || \ 1941.21Stsutsui ${MACHINE_ARCH} == "sparc64" || \ 1951.21Stsutsui ${MACHINE_ARCH} == "x86_64" 1961.20SheSUBDIR+= exec_elf64 1971.20She.endif 1981.20She 1991.29Syamt.if ${MACHINE_ARCH} == "i386" || \ 2001.29Syamt ${MACHINE_ARCH} == "x86_64" 2011.199SpgoyetteSUBDIR+= amdsmn 2021.71SjruohoSUBDIR+= amdtemp 2031.199SpgoyetteSUBDIR+= amdzentemp 2041.64SjruohoSUBDIR+= coretemp 2051.65SjruohoSUBDIR+= est 2061.110SmartinSUBDIR+= hdafg 2071.110SmartinSUBDIR+= hdaudio 2081.144SjmcneillSUBDIR+= hdaudio_pci 2091.141SchristosSUBDIR+= hdaudioverbose 2101.72SjruohoSUBDIR+= hpet 2111.202SpgoyetteSUBDIR+= ichsmb 2121.69SjruohoSUBDIR+= odcm 2131.66SjruohoSUBDIR+= powernow 2141.150SpgoyetteSUBDIR+= tco 2151.207SmaxvSUBDIR+= tprof_x86 2161.95SjmcneillSUBDIR+= vmt 2171.29Syamt.endif 2181.29Syamt 2191.210Smaxv.if ${MACHINE_ARCH} == "x86_64" 2201.210SmaxvSUBDIR+= nvmm 2211.210Smaxv.endif 2221.210Smaxv 2231.140Sbad.if ${MACHINE_ARCH} == "i386" || \ 2241.137Sbad ${MACHINE_ARCH} == "x86_64" 2251.137SbadSUBDIR+= ubsec # Builds on architectures with PCI bus 2261.137Sbad.endif 2271.137Sbad 2281.126Salnsn.if ${MKSLJIT} != "no" 2291.215Salnsn# No modules for 32-bit arm, mips and powerpc yet. 2301.215Salnsn.if ${MACHINE_ARCH} == "aarch64" || \ 2311.215Salnsn ${MACHINE_ARCH} == "i386" || \ 2321.215Salnsn ${MACHINE_ARCH} == "sparc" || \ 2331.215Salnsn ${MACHINE_ARCH} == "x86_64" 2341.113SalnsnSUBDIR+= bpfjit 2351.112SalnsnSUBDIR+= sljit 2361.112Salnsn.endif 2371.126Salnsn.endif 2381.112Salnsn 2391.85Sjruoho# 2401.85Sjruoho# ACPI modules 2411.85Sjruoho# 2421.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \ 2431.46Spgoyette ${MACHINE_ARCH} == "ia64" || \ 2441.46Spgoyette ${MACHINE_ARCH} == "x86_64" 2451.46SpgoyetteSUBDIR+= acpiverbose 2461.46Spgoyette.endif 2471.46Spgoyette 2481.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \ 2491.50Sjmcneill ${MACHINE_ARCH} == "x86_64" 2501.52SjruohoSUBDIR+= acpiacad 2511.52SjruohoSUBDIR+= acpibat 2521.52SjruohoSUBDIR+= acpibut 2531.52SjruohoSUBDIR+= acpicpu 2541.53SjruohoSUBDIR+= acpidalb 2551.58SjruohoSUBDIR+= acpifan 2561.52SjruohoSUBDIR+= acpilid 2571.57SjruohoSUBDIR+= acpipmtr 2581.53SjruohoSUBDIR+= acpitz 2591.53SjruohoSUBDIR+= acpivga 2601.86SjruohoSUBDIR+= acpiwdrt 2611.51SjmcneillSUBDIR+= acpiwmi 2621.53SjruohoSUBDIR+= aibs 2631.54SjruohoSUBDIR+= asus 2641.63SjruohoSUBDIR+= fujbp 2651.63SjruohoSUBDIR+= fujhk 2661.75SjruohoSUBDIR+= hpacel 2671.54SjruohoSUBDIR+= hpqlb 2681.52SjruohoSUBDIR+= thinkpad 2691.50SjmcneillSUBDIR+= wmidell 2701.83SjruohoSUBDIR+= wmieeepc 2711.50SjmcneillSUBDIR+= wmihp 2721.50SjmcneillSUBDIR+= wmimsi 2731.50Sjmcneill.endif 2741.50Sjmcneill 2751.218Smrg.include "${.CURDIR}/../compat/netbsd32/netbsd32.mk" 2761.218Smrg.if ${COMPAT_USE_NETBSD32} != "no" 2771.218Smrg 2781.151SmattSUBDIR+= compat_netbsd32 2791.216SpgoyetteSUBDIR+= compat_netbsd32_09 compat_netbsd32_12 2801.216SpgoyetteSUBDIR+= compat_netbsd32_13 compat_netbsd32_16 2811.216SpgoyetteSUBDIR+= compat_netbsd32_20 compat_netbsd32_30 2821.216SpgoyetteSUBDIR+= compat_netbsd32_40 compat_netbsd32_50 2831.216SpgoyetteSUBDIR+= compat_netbsd32_60 compat_netbsd32_80 2841.216SpgoyetteSUBDIR+= compat_netbsd32_43 2851.180SskrllSUBDIR+= compat_netbsd32_mqueue 2861.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2871.181SskrllSUBDIR+= compat_netbsd32_ptrace 2881.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2891.216SpgoyetteSUBDIR+= compat_netbsd32_sysvipc_10 2901.216SpgoyetteSUBDIR+= compat_netbsd32_sysvipc_14 2911.216SpgoyetteSUBDIR+= compat_netbsd32_sysvipc_50 2921.217SpgoyetteSUBDIR+= compat_netbsd32_raid 2931.151Smatt 2941.27Sabs.if ${MACHINE_ARCH} == "x86_64" 2951.15SadSUBDIR+= compat_linux32 2961.15Sad.endif 2971.15Sad 2981.218Smrg.endif 2991.218Smrg 3001.27Sabs.if ${MACHINE_ARCH} == "i386" 3011.90SjmcneillSUBDIR+= ati_pcigart 3021.15SadSUBDIR+= compat_freebsd 3031.90SjmcneillSUBDIR+= mach64drm 3041.90SjmcneillSUBDIR+= mgadrm 3051.76SjmcneillSUBDIR+= nsclpcsio 3061.62SjmcneillSUBDIR+= padlock 3071.90SjmcneillSUBDIR+= r128drm 3081.90SjmcneillSUBDIR+= radeondrm 3091.90SjmcneillSUBDIR+= savagedrm 3101.90SjmcneillSUBDIR+= sisdrm 3111.90SjmcneillSUBDIR+= tdfxdrm 3121.67SjruohoSUBDIR+= viac7temp 3131.149SriastradSUBDIR+= viadrmums 3141.15Sad.endif 3151.15Sad 3161.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 3171.142Schristos ${MACHINE_ARCH} == "x86_64" 3181.142SchristosSUBDIR+= azalia 3191.142SchristosSUBDIR+= compat_linux 3201.142SchristosSUBDIR+= drm 3211.142SchristosSUBDIR+= drmkms 3221.209SriastradSUBDIR+= drmkms_agp 3231.142SchristosSUBDIR+= drmkms_linux 3241.142SchristosSUBDIR+= drmkms_pci 3251.142SchristosSUBDIR+= i915drm 3261.142SchristosSUBDIR+= i915drmkms 3271.142SchristosSUBDIR+= pad 3281.85Sjruoho# 3291.85Sjruoho# ISA modules 3301.85Sjruoho# 3311.59SjmcneillSUBDIR+= aps 3321.80SjmcneillSUBDIR+= finsio 3331.79SjmcneillSUBDIR+= itesio 3341.101SjakllschSUBDIR+= lm 3351.101SjakllschSUBDIR+= lm_isa 3361.101SjakllschSUBDIR+= lm_isa_common 3371.101SjakllschSUBDIR+= lm_wbsio 3381.101SjakllschSUBDIR+= wbsio 3391.56Sjmcneill.endif 3401.56Sjmcneill 3411.49Stsutsui.if ${MACHINE_CPU} == "m68k" 3421.47StsutsuiSUBDIR+= compat_aoutm68k 3431.47Stsutsui#SUBDIR+= compat_linux 3441.47Stsutsui#SUBDIR+= compat_sunos 3451.47Stsutsui.endif 3461.47Stsutsui 3471.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 3481.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 3491.88Smbalmer ${MACHINE_ARCH} == "sparc64" 3501.88SmbalmerSUBDIR+= pwdog 3511.88Smbalmer.endif 3521.88Smbalmer 3531.23Sagc.include <bsd.own.mk> 3541.23Sagc 3551.107Sreinoud# 3561.107Sreinoud# NetBSD/usermode support 3571.107Sreinoud# 3581.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 3591.107Sreinoud ${MACHINE_ARCH} == "x86_64" 3601.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 3611.107Sreinoud.endif 3621.107Sreinoud 3631.23Sagc# we need our device mapper for LVM 3641.23Sagc.if (${MKLVM} != "no") 3651.28SyamtSUBDIR+= dm 3661.23Sagc.endif 3671.23Sagc 3681.39Sdarran.if (${MKDTRACE} != "no") 3691.116SchsSUBDIR+= cyclic 3701.39SdarranSUBDIR+= dtrace 3711.39Sdarran.endif 3721.39Sdarran 3731.39Sdarran# we need solaris for the dtrace and zfs modules 3741.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3751.39SdarranSUBDIR+= solaris 3761.39Sdarran.endif 3771.39Sdarran 3781.34Shaad.if (${MKZFS} != "no") 3791.34ShaadSUBDIR+= zfs 3801.34Shaad.endif 3811.34Shaad 3821.73Smrg.if (${MKCOMPATMODULES} != "no") 3831.73SmrgSUBDIR+= arch 3841.73Smrg.endif 3851.73Smrg 3861.84Sjmcneill# 3871.84Sjmcneill# DTV modules 3881.84Sjmcneill# 3891.84SjmcneillSUBDIR+= dtv 3901.84SjmcneillSUBDIR+= dtv_math 3911.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3921.84Sjmcneill# tuners/demods 3931.84SjmcneillSUBDIR+= au8522 3941.84SjmcneillSUBDIR+= cx24227 3951.84SjmcneillSUBDIR+= lg3303 3961.84SjmcneillSUBDIR+= mt2131 3971.84SjmcneillSUBDIR+= nxt2k 3981.84SjmcneillSUBDIR+= tvpll 3991.84SjmcneillSUBDIR+= xc3028 4001.84SjmcneillSUBDIR+= xc5k 4011.91SjruohoSUBDIR+= zl10353 4021.84Sjmcneill# hardware drivers 4031.84SjmcneillSUBDIR+= auvitek 4041.84SjmcneillSUBDIR+= coram 4051.84SjmcneillSUBDIR+= cxdtv 4061.84SjmcneillSUBDIR+= emdtv 4071.200Spgoyette 4081.200Spgoyette# Intel Integrated Memory Controller and associated SMBus 4091.200Spgoyette# (Experimental) 4101.200SpgoyetteSUBDIR+= imc 4111.200SpgoyetteSUBDIR+= imcsmb 4121.200Spgoyette 4131.84Sjmcneill.endif 4141.84Sjmcneill 4151.98Sriz.if (${MKISCSI} != "no") 4161.98SrizSUBDIR+= iscsi 4171.98Sriz.endif 4181.98Sriz 4191.179Spgoyette# For now, all of these are disabled, pending resolution of how to deal 4201.179Spgoyette# with attachment-specific modules and bus-specific modules (as opposed 4211.179Spgoyette# to machine- or architecture-specific modules) 4221.179Spgoyette 4231.179Spgoyette.if 0 4241.179SpgoyetteSUBDIR+= aac 4251.179SpgoyetteSUBDIR+= amr 4261.179SpgoyetteSUBDIR+= ataraid 4271.179SpgoyetteSUBDIR+= cac 4281.179SpgoyetteSUBDIR+= cac_eisa 4291.179SpgoyetteSUBDIR+= cac_pci 4301.179SpgoyetteSUBDIR+= if_vioif 4311.179SpgoyetteSUBDIR+= ld 4321.179SpgoyetteSUBDIR+= ld_aac 4331.179SpgoyetteSUBDIR+= ld_amr 4341.179SpgoyetteSUBDIR+= ld_ataraid 4351.179SpgoyetteSUBDIR+= ld_cac 4361.179SpgoyetteSUBDIR+= ld_icp 4371.179SpgoyetteSUBDIR+= ld_mlx 4381.179SpgoyetteSUBDIR+= ld_sdmmc 4391.179SpgoyetteSUBDIR+= ld_twa 4401.179SpgoyetteSUBDIR+= ld_twe 4411.179SpgoyetteSUBDIR+= ld_virtio 4421.179SpgoyetteSUBDIR+= mlx 4431.179SpgoyetteSUBDIR+= mlx_eisa 4441.179SpgoyetteSUBDIR+= mlx_pci 4451.179SpgoyetteSUBDIR+= ld_nvme 4461.179SpgoyetteSUBDIR+= nvme 4471.179SpgoyetteSUBDIR+= twa 4481.179SpgoyetteSUBDIR+= twe 4491.179SpgoyetteSUBDIR+= viomb 4501.179SpgoyetteSUBDIR+= virtio 4511.205SjakllschSUBDIR+= virtio_pci 4521.190SjdolecekSUBDIR+= vioscsi 4531.179Spgoyette.endif 4541.179Spgoyette 4551.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 4561.154Spgoyette 4571.1Sad.include <bsd.subdir.mk> 458