Makefile revision 1.167
11.167Spgoyette# $NetBSD: Makefile,v 1.167 2016/06/09 04:44:18 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.7SrumbleSUBDIR+= smbfs 971.81SpgoyetteSUBDIR+= spdmem 981.146SpgoyetteSUBDIR+= sysmon 991.146SpgoyetteSUBDIR+= sysmon_envsys 1001.146SpgoyetteSUBDIR+= sysmon_power 1011.146SpgoyetteSUBDIR+= sysmon_taskq 1021.146SpgoyetteSUBDIR+= sysmon_wdog 1031.24SpookaSUBDIR+= sysvbfs 1041.153SpgoyetteSUBDIR+= sysv_ipc 1051.33SeladSUBDIR+= suser 1061.134SpgoyetteSUBDIR+= swcrypto 1071.48SpgoyetteSUBDIR+= swsensor 1081.145SpgoyetteSUBDIR+= swwdog 1091.7SrumbleSUBDIR+= tmpfs 1101.108SriastradSUBDIR+= uatp 1111.7SrumbleSUBDIR+= udf 1121.18SadSUBDIR+= umap 1131.7SrumbleSUBDIR+= union 1141.43SpgoyetteSUBDIR+= usbverbose 1151.106SchristosSUBDIR+= vcoda 1161.78SenamiSUBDIR+= v7fs 1171.25ShaadSUBDIR+= vnd 1181.157SpgoyetteSUBDIR+= wapbl 1191.131SpgoyetteSUBDIR+= zlib 1201.29SyamtSUBDIR+= tprof 1211.7Srumble.if (defined(NOTYET)) 1221.135SpgoyetteSUBDIR+= hifn # Builds on architectures with PCI bus 1231.7SrumbleSUBDIR+= unionfs 1241.7Srumble.endif 1251.37Sdyoung.if ${MKBINUTILS} != "no" 1261.37SdyoungSUBDIR+= xldscripts 1271.37Sdyoung.endif 1281.7Srumble 1291.15Sad# Machine dependent section 1301.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \ 1311.49Stsutsui ${MACHINE_CPU} == "m68k" 1321.47StsutsuiSUBDIR+= exec_aout 1331.47Stsutsui.endif 1341.47Stsutsui 1351.139Smatt.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64" 1361.17SmartinSUBDIR+= exec_elf32 1371.17Smartin.endif 1381.15Sad 1391.139Smatt.if ${MACHINE_CPU} == "aarch64" || \ 1401.139Smatt ${MACHINE_ARCH} == "alpha" || \ 1411.21Stsutsui ${MACHINE_ARCH} == "sparc64" || \ 1421.21Stsutsui ${MACHINE_ARCH} == "x86_64" 1431.20SheSUBDIR+= exec_elf64 1441.20She.endif 1451.20She 1461.29Syamt.if ${MACHINE_ARCH} == "i386" || \ 1471.29Syamt ${MACHINE_ARCH} == "x86_64" 1481.71SjruohoSUBDIR+= amdtemp 1491.64SjruohoSUBDIR+= coretemp 1501.65SjruohoSUBDIR+= est 1511.110SmartinSUBDIR+= hdafg 1521.110SmartinSUBDIR+= hdaudio 1531.144SjmcneillSUBDIR+= hdaudio_pci 1541.141SchristosSUBDIR+= hdaudioverbose 1551.72SjruohoSUBDIR+= hpet 1561.69SjruohoSUBDIR+= odcm 1571.66SjruohoSUBDIR+= powernow 1581.150SpgoyetteSUBDIR+= tco 1591.29SyamtSUBDIR+= tprof_pmi 1601.70SyamtSUBDIR+= tprof_amdpmi 1611.95SjmcneillSUBDIR+= vmt 1621.29Syamt.endif 1631.29Syamt 1641.140Sbad.if ${MACHINE_ARCH} == "i386" || \ 1651.137Sbad ${MACHINE_ARCH} == "x86_64" 1661.137SbadSUBDIR+= ubsec # Builds on architectures with PCI bus 1671.137Sbad.endif 1681.137Sbad 1691.126Salnsn.if ${MKSLJIT} != "no" 1701.126Salnsn# No modules for arm, mips and powerpc yet. 1711.114Salnsn.if ${MACHINE_ARCH} == "i386" || \ 1721.115Salnsn ${MACHINE_ARCH} == "x86_64" || \ 1731.115Salnsn ${MACHINE_ARCH} == "sparc" 1741.113SalnsnSUBDIR+= bpfjit 1751.112SalnsnSUBDIR+= sljit 1761.112Salnsn.endif 1771.126Salnsn.endif 1781.112Salnsn 1791.85Sjruoho# 1801.85Sjruoho# ACPI modules 1811.85Sjruoho# 1821.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \ 1831.46Spgoyette ${MACHINE_ARCH} == "ia64" || \ 1841.46Spgoyette ${MACHINE_ARCH} == "x86_64" 1851.46SpgoyetteSUBDIR+= acpiverbose 1861.46Spgoyette.endif 1871.46Spgoyette 1881.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \ 1891.50Sjmcneill ${MACHINE_ARCH} == "x86_64" 1901.52SjruohoSUBDIR+= acpiacad 1911.52SjruohoSUBDIR+= acpibat 1921.52SjruohoSUBDIR+= acpibut 1931.52SjruohoSUBDIR+= acpicpu 1941.53SjruohoSUBDIR+= acpidalb 1951.58SjruohoSUBDIR+= acpifan 1961.52SjruohoSUBDIR+= acpilid 1971.57SjruohoSUBDIR+= acpipmtr 1981.53SjruohoSUBDIR+= acpitz 1991.53SjruohoSUBDIR+= acpivga 2001.86SjruohoSUBDIR+= acpiwdrt 2011.51SjmcneillSUBDIR+= acpiwmi 2021.53SjruohoSUBDIR+= aibs 2031.54SjruohoSUBDIR+= asus 2041.63SjruohoSUBDIR+= fujbp 2051.63SjruohoSUBDIR+= fujhk 2061.75SjruohoSUBDIR+= hpacel 2071.54SjruohoSUBDIR+= hpqlb 2081.52SjruohoSUBDIR+= thinkpad 2091.50SjmcneillSUBDIR+= wmidell 2101.83SjruohoSUBDIR+= wmieeepc 2111.50SjmcneillSUBDIR+= wmihp 2121.50SjmcneillSUBDIR+= wmimsi 2131.50Sjmcneill.endif 2141.50Sjmcneill 2151.156Smatt.if ${MACHINE_CPU} == "arm" \ 2161.156Smatt || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 2171.151SmattSUBDIR+= compat_netbsd32 2181.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2191.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2201.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2211.151Smatt.endif 2221.151Smatt 2231.27Sabs.if ${MACHINE_ARCH} == "x86_64" 2241.15SadSUBDIR+= compat_linux32 2251.15SadSUBDIR+= compat_netbsd32 2261.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2271.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2281.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2291.15Sad.endif 2301.15Sad 2311.27Sabs.if ${MACHINE_ARCH} == "i386" 2321.90SjmcneillSUBDIR+= ati_pcigart 2331.15SadSUBDIR+= compat_freebsd 2341.15SadSUBDIR+= compat_ibcs2 2351.15SadSUBDIR+= compat_svr4 2361.90SjmcneillSUBDIR+= mach64drm 2371.90SjmcneillSUBDIR+= mgadrm 2381.76SjmcneillSUBDIR+= nsclpcsio 2391.62SjmcneillSUBDIR+= padlock 2401.90SjmcneillSUBDIR+= r128drm 2411.90SjmcneillSUBDIR+= radeondrm 2421.90SjmcneillSUBDIR+= savagedrm 2431.90SjmcneillSUBDIR+= sisdrm 2441.90SjmcneillSUBDIR+= tdfxdrm 2451.67SjruohoSUBDIR+= viac7temp 2461.90SjmcneillSUBDIR+= viadrm 2471.149SriastradSUBDIR+= viadrmums 2481.15Sad.endif 2491.15Sad 2501.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2511.142Schristos ${MACHINE_ARCH} == "x86_64" 2521.142SchristosSUBDIR+= azalia 2531.142SchristosSUBDIR+= compat_linux 2541.142SchristosSUBDIR+= drm 2551.142SchristosSUBDIR+= drmkms 2561.142SchristosSUBDIR+= drmkms_linux 2571.142SchristosSUBDIR+= drmkms_pci 2581.142SchristosSUBDIR+= i915drm 2591.142SchristosSUBDIR+= i915drmkms 2601.142SchristosSUBDIR+= pad 2611.85Sjruoho# 2621.85Sjruoho# ISA modules 2631.85Sjruoho# 2641.59SjmcneillSUBDIR+= aps 2651.80SjmcneillSUBDIR+= finsio 2661.79SjmcneillSUBDIR+= itesio 2671.101SjakllschSUBDIR+= lm 2681.101SjakllschSUBDIR+= lm_isa 2691.101SjakllschSUBDIR+= lm_isa_common 2701.101SjakllschSUBDIR+= lm_wbsio 2711.101SjakllschSUBDIR+= wbsio 2721.56Sjmcneill.endif 2731.56Sjmcneill 2741.49Stsutsui.if ${MACHINE_CPU} == "m68k" 2751.47StsutsuiSUBDIR+= compat_aoutm68k 2761.47Stsutsui#SUBDIR+= compat_linux 2771.47Stsutsui#SUBDIR+= compat_sunos 2781.47Stsutsui#SUBDIR+= compat_svr4 2791.47Stsutsui.endif 2801.47Stsutsui 2811.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 2821.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 2831.88Smbalmer ${MACHINE_ARCH} == "sparc64" 2841.88SmbalmerSUBDIR+= pwdog 2851.88Smbalmer.endif 2861.88Smbalmer 2871.23Sagc.include <bsd.own.mk> 2881.23Sagc 2891.107Sreinoud# 2901.107Sreinoud# NetBSD/usermode support 2911.107Sreinoud# 2921.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 2931.107Sreinoud ${MACHINE_ARCH} == "x86_64" 2941.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 2951.107Sreinoud.endif 2961.107Sreinoud 2971.23Sagc# we need our device mapper for LVM 2981.23Sagc.if (${MKLVM} != "no") 2991.28SyamtSUBDIR+= dm 3001.23Sagc.endif 3011.23Sagc 3021.39Sdarran.if (${MKDTRACE} != "no") 3031.116SchsSUBDIR+= cyclic 3041.39SdarranSUBDIR+= dtrace 3051.39Sdarran.endif 3061.39Sdarran 3071.39Sdarran# we need solaris for the dtrace and zfs modules 3081.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3091.39SdarranSUBDIR+= solaris 3101.39Sdarran.endif 3111.39Sdarran 3121.34Shaad.if (${MKZFS} != "no") 3131.34ShaadSUBDIR+= zfs 3141.34Shaad.endif 3151.34Shaad 3161.73Smrg.if (${MKCOMPATMODULES} != "no") 3171.73SmrgSUBDIR+= arch 3181.73Smrg.endif 3191.73Smrg 3201.84Sjmcneill# 3211.84Sjmcneill# DTV modules 3221.84Sjmcneill# 3231.84SjmcneillSUBDIR+= dtv 3241.84SjmcneillSUBDIR+= dtv_math 3251.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3261.84Sjmcneill# tuners/demods 3271.84SjmcneillSUBDIR+= au8522 3281.84SjmcneillSUBDIR+= cx24227 3291.84SjmcneillSUBDIR+= lg3303 3301.84SjmcneillSUBDIR+= mt2131 3311.84SjmcneillSUBDIR+= nxt2k 3321.84SjmcneillSUBDIR+= tvpll 3331.84SjmcneillSUBDIR+= xc3028 3341.84SjmcneillSUBDIR+= xc5k 3351.91SjruohoSUBDIR+= zl10353 3361.84Sjmcneill# hardware drivers 3371.84SjmcneillSUBDIR+= auvitek 3381.84SjmcneillSUBDIR+= coram 3391.84SjmcneillSUBDIR+= cxdtv 3401.84SjmcneillSUBDIR+= emdtv 3411.155SpgoyetteSUBDIR+= spkr 3421.84Sjmcneill.endif 3431.84Sjmcneill 3441.98Sriz.if (${MKISCSI} != "no") 3451.98SrizSUBDIR+= iscsi 3461.98Sriz.endif 3471.98Sriz 3481.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 3491.154Spgoyette 3501.1Sad.include <bsd.subdir.mk> 351