Makefile revision 1.172
11.172Schristos# $NetBSD: Makefile,v 1.172 2016/08/06 12:44:03 christos 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.171SchristosSUBDIR+= if_ppp 521.172SchristosSUBDIR+= if_sl 531.124SskrllSUBDIR+= if_smsc 541.172SchristosSUBDIR+= if_strip 551.94SmbalmerSUBDIR+= iic 561.167SpgoyetteSUBDIR+= ipl 571.7SrumbleSUBDIR+= kernfs 581.22SadSUBDIR+= layerfs 591.7SrumbleSUBDIR+= lfs 601.121SmbalmerSUBDIR+= lua 611.128SlnetoSUBDIR+= luasystm 621.123SmbalmerSUBDIR+= luapmf 631.7SrumbleSUBDIR+= mfs 641.45SpgoyetteSUBDIR+= miiverbose 651.45SpgoyetteSUBDIR+= miniroot 661.31SrmindSUBDIR+= mqueue 671.18SadSUBDIR+= msdos 681.68SahokaSUBDIR+= nand 691.68SahokaSUBDIR+= nandemulator 701.15SadSUBDIR+= nfs 711.15SadSUBDIR+= nfsserver 721.30SreinoudSUBDIR+= nilfs 731.96StronSUBDIR+= npf 741.97StronSUBDIR+= npf_alg_icmp 751.111SrmindSUBDIR+= npf_ext_log 761.119SchristosSUBDIR+= npf_ext_normalize 771.117SrmindSUBDIR+= npf_ext_rndblock 781.7SrumbleSUBDIR+= ntfs 791.18SadSUBDIR+= null 801.92SmbalmerSUBDIR+= onewire 811.134SpgoyetteSUBDIR+= opencrypto 821.7SrumbleSUBDIR+= overlay 831.42SpgoyetteSUBDIR+= pciverbose 841.41SahokaSUBDIR+= pf 851.19ScubeSUBDIR+= ppp_bsdcomp 861.19ScubeSUBDIR+= ppp_deflate 871.7SrumbleSUBDIR+= procfs 881.7SrumbleSUBDIR+= ptyfs 891.7SrumbleSUBDIR+= puffs 901.15SadSUBDIR+= putter 911.165SpgoyetteSUBDIR+= raid 921.44SpgoyetteSUBDIR+= scsiverbose 931.103SpgoyetteSUBDIR+= sdtemp 941.33SeladSUBDIR+= secmodel_bsd44 951.100SjymSUBDIR+= secmodel_extensions 961.33SeladSUBDIR+= secmodel_overlay 971.33SeladSUBDIR+= securelevel 981.133SpgoyetteSUBDIR+= skipjack 991.168SpgoyetteSUBDIR+= slcompress 1001.7SrumbleSUBDIR+= smbfs 1011.81SpgoyetteSUBDIR+= spdmem 1021.146SpgoyetteSUBDIR+= sysmon 1031.146SpgoyetteSUBDIR+= sysmon_envsys 1041.146SpgoyetteSUBDIR+= sysmon_power 1051.146SpgoyetteSUBDIR+= sysmon_taskq 1061.146SpgoyetteSUBDIR+= sysmon_wdog 1071.24SpookaSUBDIR+= sysvbfs 1081.153SpgoyetteSUBDIR+= sysv_ipc 1091.33SeladSUBDIR+= suser 1101.134SpgoyetteSUBDIR+= swcrypto 1111.48SpgoyetteSUBDIR+= swsensor 1121.145SpgoyetteSUBDIR+= swwdog 1131.7SrumbleSUBDIR+= tmpfs 1141.108SriastradSUBDIR+= uatp 1151.7SrumbleSUBDIR+= udf 1161.18SadSUBDIR+= umap 1171.7SrumbleSUBDIR+= union 1181.43SpgoyetteSUBDIR+= usbverbose 1191.106SchristosSUBDIR+= vcoda 1201.78SenamiSUBDIR+= v7fs 1211.25ShaadSUBDIR+= vnd 1221.157SpgoyetteSUBDIR+= wapbl 1231.131SpgoyetteSUBDIR+= zlib 1241.29SyamtSUBDIR+= tprof 1251.7Srumble.if (defined(NOTYET)) 1261.135SpgoyetteSUBDIR+= hifn # Builds on architectures with PCI bus 1271.7SrumbleSUBDIR+= unionfs 1281.7Srumble.endif 1291.37Sdyoung.if ${MKBINUTILS} != "no" 1301.37SdyoungSUBDIR+= xldscripts 1311.37Sdyoung.endif 1321.7Srumble 1331.15Sad# Machine dependent section 1341.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \ 1351.49Stsutsui ${MACHINE_CPU} == "m68k" 1361.47StsutsuiSUBDIR+= exec_aout 1371.47Stsutsui.endif 1381.47Stsutsui 1391.169Sscole.if ${MACHINE_ARCH} != "alpha" && \ 1401.169Sscole ${MACHINE_CPU} != "aarch64" && \ 1411.169Sscole ${MACHINE_ARCH} != "ia64" 1421.17SmartinSUBDIR+= exec_elf32 1431.17Smartin.endif 1441.15Sad 1451.139Smatt.if ${MACHINE_CPU} == "aarch64" || \ 1461.139Smatt ${MACHINE_ARCH} == "alpha" || \ 1471.169Sscole ${MACHINE_ARCH} == "ia64" || \ 1481.21Stsutsui ${MACHINE_ARCH} == "sparc64" || \ 1491.21Stsutsui ${MACHINE_ARCH} == "x86_64" 1501.20SheSUBDIR+= exec_elf64 1511.20She.endif 1521.20She 1531.29Syamt.if ${MACHINE_ARCH} == "i386" || \ 1541.29Syamt ${MACHINE_ARCH} == "x86_64" 1551.71SjruohoSUBDIR+= amdtemp 1561.64SjruohoSUBDIR+= coretemp 1571.65SjruohoSUBDIR+= est 1581.110SmartinSUBDIR+= hdafg 1591.110SmartinSUBDIR+= hdaudio 1601.144SjmcneillSUBDIR+= hdaudio_pci 1611.141SchristosSUBDIR+= hdaudioverbose 1621.72SjruohoSUBDIR+= hpet 1631.69SjruohoSUBDIR+= odcm 1641.66SjruohoSUBDIR+= powernow 1651.150SpgoyetteSUBDIR+= tco 1661.29SyamtSUBDIR+= tprof_pmi 1671.70SyamtSUBDIR+= tprof_amdpmi 1681.95SjmcneillSUBDIR+= vmt 1691.29Syamt.endif 1701.29Syamt 1711.140Sbad.if ${MACHINE_ARCH} == "i386" || \ 1721.137Sbad ${MACHINE_ARCH} == "x86_64" 1731.137SbadSUBDIR+= ubsec # Builds on architectures with PCI bus 1741.137Sbad.endif 1751.137Sbad 1761.126Salnsn.if ${MKSLJIT} != "no" 1771.126Salnsn# No modules for arm, mips and powerpc yet. 1781.114Salnsn.if ${MACHINE_ARCH} == "i386" || \ 1791.115Salnsn ${MACHINE_ARCH} == "x86_64" || \ 1801.115Salnsn ${MACHINE_ARCH} == "sparc" 1811.113SalnsnSUBDIR+= bpfjit 1821.112SalnsnSUBDIR+= sljit 1831.112Salnsn.endif 1841.126Salnsn.endif 1851.112Salnsn 1861.85Sjruoho# 1871.85Sjruoho# ACPI modules 1881.85Sjruoho# 1891.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \ 1901.46Spgoyette ${MACHINE_ARCH} == "ia64" || \ 1911.46Spgoyette ${MACHINE_ARCH} == "x86_64" 1921.46SpgoyetteSUBDIR+= acpiverbose 1931.46Spgoyette.endif 1941.46Spgoyette 1951.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \ 1961.50Sjmcneill ${MACHINE_ARCH} == "x86_64" 1971.52SjruohoSUBDIR+= acpiacad 1981.52SjruohoSUBDIR+= acpibat 1991.52SjruohoSUBDIR+= acpibut 2001.52SjruohoSUBDIR+= acpicpu 2011.53SjruohoSUBDIR+= acpidalb 2021.58SjruohoSUBDIR+= acpifan 2031.52SjruohoSUBDIR+= acpilid 2041.57SjruohoSUBDIR+= acpipmtr 2051.53SjruohoSUBDIR+= acpitz 2061.53SjruohoSUBDIR+= acpivga 2071.86SjruohoSUBDIR+= acpiwdrt 2081.51SjmcneillSUBDIR+= acpiwmi 2091.53SjruohoSUBDIR+= aibs 2101.54SjruohoSUBDIR+= asus 2111.63SjruohoSUBDIR+= fujbp 2121.63SjruohoSUBDIR+= fujhk 2131.75SjruohoSUBDIR+= hpacel 2141.54SjruohoSUBDIR+= hpqlb 2151.52SjruohoSUBDIR+= thinkpad 2161.50SjmcneillSUBDIR+= wmidell 2171.83SjruohoSUBDIR+= wmieeepc 2181.50SjmcneillSUBDIR+= wmihp 2191.50SjmcneillSUBDIR+= wmimsi 2201.50Sjmcneill.endif 2211.50Sjmcneill 2221.156Smatt.if ${MACHINE_CPU} == "arm" \ 2231.156Smatt || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 2241.151SmattSUBDIR+= compat_netbsd32 2251.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2261.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2271.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2281.151Smatt.endif 2291.151Smatt 2301.27Sabs.if ${MACHINE_ARCH} == "x86_64" 2311.15SadSUBDIR+= compat_linux32 2321.15SadSUBDIR+= compat_netbsd32 2331.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2341.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2351.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2361.15Sad.endif 2371.15Sad 2381.27Sabs.if ${MACHINE_ARCH} == "i386" 2391.90SjmcneillSUBDIR+= ati_pcigart 2401.15SadSUBDIR+= compat_freebsd 2411.15SadSUBDIR+= compat_ibcs2 2421.15SadSUBDIR+= compat_svr4 2431.90SjmcneillSUBDIR+= mach64drm 2441.90SjmcneillSUBDIR+= mgadrm 2451.76SjmcneillSUBDIR+= nsclpcsio 2461.62SjmcneillSUBDIR+= padlock 2471.90SjmcneillSUBDIR+= r128drm 2481.90SjmcneillSUBDIR+= radeondrm 2491.90SjmcneillSUBDIR+= savagedrm 2501.90SjmcneillSUBDIR+= sisdrm 2511.90SjmcneillSUBDIR+= tdfxdrm 2521.67SjruohoSUBDIR+= viac7temp 2531.90SjmcneillSUBDIR+= viadrm 2541.149SriastradSUBDIR+= viadrmums 2551.15Sad.endif 2561.15Sad 2571.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2581.142Schristos ${MACHINE_ARCH} == "x86_64" 2591.142SchristosSUBDIR+= azalia 2601.142SchristosSUBDIR+= compat_linux 2611.142SchristosSUBDIR+= drm 2621.142SchristosSUBDIR+= drmkms 2631.142SchristosSUBDIR+= drmkms_linux 2641.142SchristosSUBDIR+= drmkms_pci 2651.142SchristosSUBDIR+= i915drm 2661.142SchristosSUBDIR+= i915drmkms 2671.142SchristosSUBDIR+= pad 2681.85Sjruoho# 2691.85Sjruoho# ISA modules 2701.85Sjruoho# 2711.59SjmcneillSUBDIR+= aps 2721.80SjmcneillSUBDIR+= finsio 2731.79SjmcneillSUBDIR+= itesio 2741.101SjakllschSUBDIR+= lm 2751.101SjakllschSUBDIR+= lm_isa 2761.101SjakllschSUBDIR+= lm_isa_common 2771.101SjakllschSUBDIR+= lm_wbsio 2781.101SjakllschSUBDIR+= wbsio 2791.56Sjmcneill.endif 2801.56Sjmcneill 2811.49Stsutsui.if ${MACHINE_CPU} == "m68k" 2821.47StsutsuiSUBDIR+= compat_aoutm68k 2831.47Stsutsui#SUBDIR+= compat_linux 2841.47Stsutsui#SUBDIR+= compat_sunos 2851.47Stsutsui#SUBDIR+= compat_svr4 2861.47Stsutsui.endif 2871.47Stsutsui 2881.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 2891.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 2901.88Smbalmer ${MACHINE_ARCH} == "sparc64" 2911.88SmbalmerSUBDIR+= pwdog 2921.88Smbalmer.endif 2931.88Smbalmer 2941.23Sagc.include <bsd.own.mk> 2951.23Sagc 2961.107Sreinoud# 2971.107Sreinoud# NetBSD/usermode support 2981.107Sreinoud# 2991.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 3001.107Sreinoud ${MACHINE_ARCH} == "x86_64" 3011.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 3021.107Sreinoud.endif 3031.107Sreinoud 3041.23Sagc# we need our device mapper for LVM 3051.23Sagc.if (${MKLVM} != "no") 3061.28SyamtSUBDIR+= dm 3071.23Sagc.endif 3081.23Sagc 3091.39Sdarran.if (${MKDTRACE} != "no") 3101.116SchsSUBDIR+= cyclic 3111.39SdarranSUBDIR+= dtrace 3121.39Sdarran.endif 3131.39Sdarran 3141.39Sdarran# we need solaris for the dtrace and zfs modules 3151.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3161.39SdarranSUBDIR+= solaris 3171.39Sdarran.endif 3181.39Sdarran 3191.34Shaad.if (${MKZFS} != "no") 3201.34ShaadSUBDIR+= zfs 3211.34Shaad.endif 3221.34Shaad 3231.73Smrg.if (${MKCOMPATMODULES} != "no") 3241.73SmrgSUBDIR+= arch 3251.73Smrg.endif 3261.73Smrg 3271.84Sjmcneill# 3281.84Sjmcneill# DTV modules 3291.84Sjmcneill# 3301.84SjmcneillSUBDIR+= dtv 3311.84SjmcneillSUBDIR+= dtv_math 3321.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3331.84Sjmcneill# tuners/demods 3341.84SjmcneillSUBDIR+= au8522 3351.84SjmcneillSUBDIR+= cx24227 3361.84SjmcneillSUBDIR+= lg3303 3371.84SjmcneillSUBDIR+= mt2131 3381.84SjmcneillSUBDIR+= nxt2k 3391.84SjmcneillSUBDIR+= tvpll 3401.84SjmcneillSUBDIR+= xc3028 3411.84SjmcneillSUBDIR+= xc5k 3421.91SjruohoSUBDIR+= zl10353 3431.84Sjmcneill# hardware drivers 3441.84SjmcneillSUBDIR+= auvitek 3451.84SjmcneillSUBDIR+= coram 3461.84SjmcneillSUBDIR+= cxdtv 3471.84SjmcneillSUBDIR+= emdtv 3481.155SpgoyetteSUBDIR+= spkr 3491.84Sjmcneill.endif 3501.84Sjmcneill 3511.98Sriz.if (${MKISCSI} != "no") 3521.98SrizSUBDIR+= iscsi 3531.98Sriz.endif 3541.98Sriz 3551.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 3561.154Spgoyette 3571.1Sad.include <bsd.subdir.mk> 358