Makefile revision 1.168
11.168Spgoyette# $NetBSD: Makefile,v 1.168 2016/08/04 23:53:47 pgoyette Exp $ 21.37Sdyoung 31.37Sdyoung.include <bsd.own.mk> 41.15Sad 51.15Sad# For all platforms 61.1Sad 71.37SdyoungSUBDIR= accf_dataready 81.16SadSUBDIR+= accf_httpready 91.15SadSUBDIR+= adosfs 101.14SadSUBDIR+= aio 111.133SpgoyetteSUBDIR+= blowfish 121.38SpookaSUBDIR+= bpf 131.166SpgoyetteSUBDIR+= bpf_filter 141.133SpgoyetteSUBDIR+= camellia 151.133SpgoyetteSUBDIR+= cast128 161.132SpgoyetteSUBDIR+= ccd 171.7SrumbleSUBDIR+= cd9660 181.129SpgoyetteSUBDIR+= cgd 191.132SpgoyetteSUBDIR+= chfs 201.163SpgoyetteSUBDIR+= clockctl 211.134SpgoyetteSUBDIR+= crypto 221.7SrumbleSUBDIR+= coda 231.7SrumbleSUBDIR+= coda5 241.15SadSUBDIR+= compat 251.15SadSUBDIR+= compat_ossaudio 261.15SadSUBDIR+= coredump 271.104SpgoyetteSUBDIR+= dbcool 281.133SpgoyetteSUBDIR+= des 291.129SpgoyetteSUBDIR+= dk_subr 301.164SpgoyetteSUBDIR+= drvctl 311.7SrumbleSUBDIR+= efs 321.7SrumbleSUBDIR+= ext2fs 331.15SadSUBDIR+= exec_script 341.7SrumbleSUBDIR+= fdesc 351.7SrumbleSUBDIR+= ffs 361.18SadSUBDIR+= filecore 371.93SsjgSUBDIR+= filemon 381.68SahokaSUBDIR+= flash 391.15SadSUBDIR+= fss 401.89SmbalmerSUBDIR+= gpio 411.94SmbalmerSUBDIR+= gpioiic 421.92SmbalmerSUBDIR+= gpioow 431.89SmbalmerSUBDIR+= gpiosim 441.7SrumbleSUBDIR+= hfs 451.136SkardelSUBDIR+= hythygtemp 461.143SjmcneillSUBDIR+= i2cexec 471.166SpgoyetteSUBDIR+= i2c_bitbang 481.105SpgoyetteSUBDIR+= if_axe 491.120SnonakaSUBDIR+= if_axen 501.118SchristosSUBDIR+= if_npflog 511.124SskrllSUBDIR+= if_smsc 521.94SmbalmerSUBDIR+= iic 531.167SpgoyetteSUBDIR+= ipl 541.7SrumbleSUBDIR+= kernfs 551.22SadSUBDIR+= layerfs 561.7SrumbleSUBDIR+= lfs 571.121SmbalmerSUBDIR+= lua 581.128SlnetoSUBDIR+= luasystm 591.123SmbalmerSUBDIR+= luapmf 601.7SrumbleSUBDIR+= mfs 611.45SpgoyetteSUBDIR+= miiverbose 621.45SpgoyetteSUBDIR+= miniroot 631.31SrmindSUBDIR+= mqueue 641.18SadSUBDIR+= msdos 651.68SahokaSUBDIR+= nand 661.68SahokaSUBDIR+= nandemulator 671.15SadSUBDIR+= nfs 681.15SadSUBDIR+= nfsserver 691.30SreinoudSUBDIR+= nilfs 701.96StronSUBDIR+= npf 711.97StronSUBDIR+= npf_alg_icmp 721.111SrmindSUBDIR+= npf_ext_log 731.119SchristosSUBDIR+= npf_ext_normalize 741.117SrmindSUBDIR+= npf_ext_rndblock 751.7SrumbleSUBDIR+= ntfs 761.18SadSUBDIR+= null 771.92SmbalmerSUBDIR+= onewire 781.134SpgoyetteSUBDIR+= opencrypto 791.7SrumbleSUBDIR+= overlay 801.42SpgoyetteSUBDIR+= pciverbose 811.41SahokaSUBDIR+= pf 821.19ScubeSUBDIR+= ppp_bsdcomp 831.19ScubeSUBDIR+= ppp_deflate 841.7SrumbleSUBDIR+= procfs 851.7SrumbleSUBDIR+= ptyfs 861.7SrumbleSUBDIR+= puffs 871.15SadSUBDIR+= putter 881.165SpgoyetteSUBDIR+= raid 891.44SpgoyetteSUBDIR+= scsiverbose 901.103SpgoyetteSUBDIR+= sdtemp 911.33SeladSUBDIR+= secmodel_bsd44 921.100SjymSUBDIR+= secmodel_extensions 931.33SeladSUBDIR+= secmodel_overlay 941.33SeladSUBDIR+= securelevel 951.133SpgoyetteSUBDIR+= skipjack 961.168SpgoyetteSUBDIR+= slcompress 971.7SrumbleSUBDIR+= smbfs 981.81SpgoyetteSUBDIR+= spdmem 991.146SpgoyetteSUBDIR+= sysmon 1001.146SpgoyetteSUBDIR+= sysmon_envsys 1011.146SpgoyetteSUBDIR+= sysmon_power 1021.146SpgoyetteSUBDIR+= sysmon_taskq 1031.146SpgoyetteSUBDIR+= sysmon_wdog 1041.24SpookaSUBDIR+= sysvbfs 1051.153SpgoyetteSUBDIR+= sysv_ipc 1061.33SeladSUBDIR+= suser 1071.134SpgoyetteSUBDIR+= swcrypto 1081.48SpgoyetteSUBDIR+= swsensor 1091.145SpgoyetteSUBDIR+= swwdog 1101.7SrumbleSUBDIR+= tmpfs 1111.108SriastradSUBDIR+= uatp 1121.7SrumbleSUBDIR+= udf 1131.18SadSUBDIR+= umap 1141.7SrumbleSUBDIR+= union 1151.43SpgoyetteSUBDIR+= usbverbose 1161.106SchristosSUBDIR+= vcoda 1171.78SenamiSUBDIR+= v7fs 1181.25ShaadSUBDIR+= vnd 1191.157SpgoyetteSUBDIR+= wapbl 1201.131SpgoyetteSUBDIR+= zlib 1211.29SyamtSUBDIR+= tprof 1221.7Srumble.if (defined(NOTYET)) 1231.135SpgoyetteSUBDIR+= hifn # Builds on architectures with PCI bus 1241.7SrumbleSUBDIR+= unionfs 1251.7Srumble.endif 1261.37Sdyoung.if ${MKBINUTILS} != "no" 1271.37SdyoungSUBDIR+= xldscripts 1281.37Sdyoung.endif 1291.7Srumble 1301.15Sad# Machine dependent section 1311.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \ 1321.49Stsutsui ${MACHINE_CPU} == "m68k" 1331.47StsutsuiSUBDIR+= exec_aout 1341.47Stsutsui.endif 1351.47Stsutsui 1361.139Smatt.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64" 1371.17SmartinSUBDIR+= exec_elf32 1381.17Smartin.endif 1391.15Sad 1401.139Smatt.if ${MACHINE_CPU} == "aarch64" || \ 1411.139Smatt ${MACHINE_ARCH} == "alpha" || \ 1421.21Stsutsui ${MACHINE_ARCH} == "sparc64" || \ 1431.21Stsutsui ${MACHINE_ARCH} == "x86_64" 1441.20SheSUBDIR+= exec_elf64 1451.20She.endif 1461.20She 1471.29Syamt.if ${MACHINE_ARCH} == "i386" || \ 1481.29Syamt ${MACHINE_ARCH} == "x86_64" 1491.71SjruohoSUBDIR+= amdtemp 1501.64SjruohoSUBDIR+= coretemp 1511.65SjruohoSUBDIR+= est 1521.110SmartinSUBDIR+= hdafg 1531.110SmartinSUBDIR+= hdaudio 1541.144SjmcneillSUBDIR+= hdaudio_pci 1551.141SchristosSUBDIR+= hdaudioverbose 1561.72SjruohoSUBDIR+= hpet 1571.69SjruohoSUBDIR+= odcm 1581.66SjruohoSUBDIR+= powernow 1591.150SpgoyetteSUBDIR+= tco 1601.29SyamtSUBDIR+= tprof_pmi 1611.70SyamtSUBDIR+= tprof_amdpmi 1621.95SjmcneillSUBDIR+= vmt 1631.29Syamt.endif 1641.29Syamt 1651.140Sbad.if ${MACHINE_ARCH} == "i386" || \ 1661.137Sbad ${MACHINE_ARCH} == "x86_64" 1671.137SbadSUBDIR+= ubsec # Builds on architectures with PCI bus 1681.137Sbad.endif 1691.137Sbad 1701.126Salnsn.if ${MKSLJIT} != "no" 1711.126Salnsn# No modules for arm, mips and powerpc yet. 1721.114Salnsn.if ${MACHINE_ARCH} == "i386" || \ 1731.115Salnsn ${MACHINE_ARCH} == "x86_64" || \ 1741.115Salnsn ${MACHINE_ARCH} == "sparc" 1751.113SalnsnSUBDIR+= bpfjit 1761.112SalnsnSUBDIR+= sljit 1771.112Salnsn.endif 1781.126Salnsn.endif 1791.112Salnsn 1801.85Sjruoho# 1811.85Sjruoho# ACPI modules 1821.85Sjruoho# 1831.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \ 1841.46Spgoyette ${MACHINE_ARCH} == "ia64" || \ 1851.46Spgoyette ${MACHINE_ARCH} == "x86_64" 1861.46SpgoyetteSUBDIR+= acpiverbose 1871.46Spgoyette.endif 1881.46Spgoyette 1891.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \ 1901.50Sjmcneill ${MACHINE_ARCH} == "x86_64" 1911.52SjruohoSUBDIR+= acpiacad 1921.52SjruohoSUBDIR+= acpibat 1931.52SjruohoSUBDIR+= acpibut 1941.52SjruohoSUBDIR+= acpicpu 1951.53SjruohoSUBDIR+= acpidalb 1961.58SjruohoSUBDIR+= acpifan 1971.52SjruohoSUBDIR+= acpilid 1981.57SjruohoSUBDIR+= acpipmtr 1991.53SjruohoSUBDIR+= acpitz 2001.53SjruohoSUBDIR+= acpivga 2011.86SjruohoSUBDIR+= acpiwdrt 2021.51SjmcneillSUBDIR+= acpiwmi 2031.53SjruohoSUBDIR+= aibs 2041.54SjruohoSUBDIR+= asus 2051.63SjruohoSUBDIR+= fujbp 2061.63SjruohoSUBDIR+= fujhk 2071.75SjruohoSUBDIR+= hpacel 2081.54SjruohoSUBDIR+= hpqlb 2091.52SjruohoSUBDIR+= thinkpad 2101.50SjmcneillSUBDIR+= wmidell 2111.83SjruohoSUBDIR+= wmieeepc 2121.50SjmcneillSUBDIR+= wmihp 2131.50SjmcneillSUBDIR+= wmimsi 2141.50Sjmcneill.endif 2151.50Sjmcneill 2161.156Smatt.if ${MACHINE_CPU} == "arm" \ 2171.156Smatt || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 2181.151SmattSUBDIR+= compat_netbsd32 2191.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2201.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2211.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2221.151Smatt.endif 2231.151Smatt 2241.27Sabs.if ${MACHINE_ARCH} == "x86_64" 2251.15SadSUBDIR+= compat_linux32 2261.15SadSUBDIR+= compat_netbsd32 2271.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2281.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2291.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2301.15Sad.endif 2311.15Sad 2321.27Sabs.if ${MACHINE_ARCH} == "i386" 2331.90SjmcneillSUBDIR+= ati_pcigart 2341.15SadSUBDIR+= compat_freebsd 2351.15SadSUBDIR+= compat_ibcs2 2361.15SadSUBDIR+= compat_svr4 2371.90SjmcneillSUBDIR+= mach64drm 2381.90SjmcneillSUBDIR+= mgadrm 2391.76SjmcneillSUBDIR+= nsclpcsio 2401.62SjmcneillSUBDIR+= padlock 2411.90SjmcneillSUBDIR+= r128drm 2421.90SjmcneillSUBDIR+= radeondrm 2431.90SjmcneillSUBDIR+= savagedrm 2441.90SjmcneillSUBDIR+= sisdrm 2451.90SjmcneillSUBDIR+= tdfxdrm 2461.67SjruohoSUBDIR+= viac7temp 2471.90SjmcneillSUBDIR+= viadrm 2481.149SriastradSUBDIR+= viadrmums 2491.15Sad.endif 2501.15Sad 2511.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2521.142Schristos ${MACHINE_ARCH} == "x86_64" 2531.142SchristosSUBDIR+= azalia 2541.142SchristosSUBDIR+= compat_linux 2551.142SchristosSUBDIR+= drm 2561.142SchristosSUBDIR+= drmkms 2571.142SchristosSUBDIR+= drmkms_linux 2581.142SchristosSUBDIR+= drmkms_pci 2591.142SchristosSUBDIR+= i915drm 2601.142SchristosSUBDIR+= i915drmkms 2611.142SchristosSUBDIR+= pad 2621.85Sjruoho# 2631.85Sjruoho# ISA modules 2641.85Sjruoho# 2651.59SjmcneillSUBDIR+= aps 2661.80SjmcneillSUBDIR+= finsio 2671.79SjmcneillSUBDIR+= itesio 2681.101SjakllschSUBDIR+= lm 2691.101SjakllschSUBDIR+= lm_isa 2701.101SjakllschSUBDIR+= lm_isa_common 2711.101SjakllschSUBDIR+= lm_wbsio 2721.101SjakllschSUBDIR+= wbsio 2731.56Sjmcneill.endif 2741.56Sjmcneill 2751.49Stsutsui.if ${MACHINE_CPU} == "m68k" 2761.47StsutsuiSUBDIR+= compat_aoutm68k 2771.47Stsutsui#SUBDIR+= compat_linux 2781.47Stsutsui#SUBDIR+= compat_sunos 2791.47Stsutsui#SUBDIR+= compat_svr4 2801.47Stsutsui.endif 2811.47Stsutsui 2821.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 2831.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 2841.88Smbalmer ${MACHINE_ARCH} == "sparc64" 2851.88SmbalmerSUBDIR+= pwdog 2861.88Smbalmer.endif 2871.88Smbalmer 2881.23Sagc.include <bsd.own.mk> 2891.23Sagc 2901.107Sreinoud# 2911.107Sreinoud# NetBSD/usermode support 2921.107Sreinoud# 2931.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 2941.107Sreinoud ${MACHINE_ARCH} == "x86_64" 2951.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 2961.107Sreinoud.endif 2971.107Sreinoud 2981.23Sagc# we need our device mapper for LVM 2991.23Sagc.if (${MKLVM} != "no") 3001.28SyamtSUBDIR+= dm 3011.23Sagc.endif 3021.23Sagc 3031.39Sdarran.if (${MKDTRACE} != "no") 3041.116SchsSUBDIR+= cyclic 3051.39SdarranSUBDIR+= dtrace 3061.39Sdarran.endif 3071.39Sdarran 3081.39Sdarran# we need solaris for the dtrace and zfs modules 3091.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3101.39SdarranSUBDIR+= solaris 3111.39Sdarran.endif 3121.39Sdarran 3131.34Shaad.if (${MKZFS} != "no") 3141.34ShaadSUBDIR+= zfs 3151.34Shaad.endif 3161.34Shaad 3171.73Smrg.if (${MKCOMPATMODULES} != "no") 3181.73SmrgSUBDIR+= arch 3191.73Smrg.endif 3201.73Smrg 3211.84Sjmcneill# 3221.84Sjmcneill# DTV modules 3231.84Sjmcneill# 3241.84SjmcneillSUBDIR+= dtv 3251.84SjmcneillSUBDIR+= dtv_math 3261.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3271.84Sjmcneill# tuners/demods 3281.84SjmcneillSUBDIR+= au8522 3291.84SjmcneillSUBDIR+= cx24227 3301.84SjmcneillSUBDIR+= lg3303 3311.84SjmcneillSUBDIR+= mt2131 3321.84SjmcneillSUBDIR+= nxt2k 3331.84SjmcneillSUBDIR+= tvpll 3341.84SjmcneillSUBDIR+= xc3028 3351.84SjmcneillSUBDIR+= xc5k 3361.91SjruohoSUBDIR+= zl10353 3371.84Sjmcneill# hardware drivers 3381.84SjmcneillSUBDIR+= auvitek 3391.84SjmcneillSUBDIR+= coram 3401.84SjmcneillSUBDIR+= cxdtv 3411.84SjmcneillSUBDIR+= emdtv 3421.155SpgoyetteSUBDIR+= spkr 3431.84Sjmcneill.endif 3441.84Sjmcneill 3451.98Sriz.if (${MKISCSI} != "no") 3461.98SrizSUBDIR+= iscsi 3471.98Sriz.endif 3481.98Sriz 3491.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 3501.154Spgoyette 3511.1Sad.include <bsd.subdir.mk> 352