Makefile revision 1.174
11.174Spgoyette# $NetBSD: Makefile,v 1.174 2016/08/06 23:46:30 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.171SchristosSUBDIR+= if_ppp 521.174SpgoyetteSUBDIR+= if_pppoe 531.172SchristosSUBDIR+= if_sl 541.124SskrllSUBDIR+= if_smsc 551.172SchristosSUBDIR+= if_strip 561.94SmbalmerSUBDIR+= iic 571.167SpgoyetteSUBDIR+= ipl 581.7SrumbleSUBDIR+= kernfs 591.22SadSUBDIR+= layerfs 601.7SrumbleSUBDIR+= lfs 611.121SmbalmerSUBDIR+= lua 621.128SlnetoSUBDIR+= luasystm 631.123SmbalmerSUBDIR+= luapmf 641.7SrumbleSUBDIR+= mfs 651.45SpgoyetteSUBDIR+= miiverbose 661.45SpgoyetteSUBDIR+= miniroot 671.31SrmindSUBDIR+= mqueue 681.18SadSUBDIR+= msdos 691.68SahokaSUBDIR+= nand 701.68SahokaSUBDIR+= nandemulator 711.15SadSUBDIR+= nfs 721.15SadSUBDIR+= nfsserver 731.30SreinoudSUBDIR+= nilfs 741.96StronSUBDIR+= npf 751.97StronSUBDIR+= npf_alg_icmp 761.111SrmindSUBDIR+= npf_ext_log 771.119SchristosSUBDIR+= npf_ext_normalize 781.117SrmindSUBDIR+= npf_ext_rndblock 791.7SrumbleSUBDIR+= ntfs 801.18SadSUBDIR+= null 811.92SmbalmerSUBDIR+= onewire 821.134SpgoyetteSUBDIR+= opencrypto 831.7SrumbleSUBDIR+= overlay 841.42SpgoyetteSUBDIR+= pciverbose 851.41SahokaSUBDIR+= pf 861.19ScubeSUBDIR+= ppp_bsdcomp 871.19ScubeSUBDIR+= ppp_deflate 881.7SrumbleSUBDIR+= procfs 891.7SrumbleSUBDIR+= ptyfs 901.7SrumbleSUBDIR+= puffs 911.15SadSUBDIR+= putter 921.165SpgoyetteSUBDIR+= raid 931.44SpgoyetteSUBDIR+= scsiverbose 941.103SpgoyetteSUBDIR+= sdtemp 951.33SeladSUBDIR+= secmodel_bsd44 961.100SjymSUBDIR+= secmodel_extensions 971.33SeladSUBDIR+= secmodel_overlay 981.33SeladSUBDIR+= securelevel 991.133SpgoyetteSUBDIR+= skipjack 1001.168SpgoyetteSUBDIR+= slcompress 1011.7SrumbleSUBDIR+= smbfs 1021.81SpgoyetteSUBDIR+= spdmem 1031.173SpgoyetteSUBDIR+= sppp_subr 1041.146SpgoyetteSUBDIR+= sysmon 1051.146SpgoyetteSUBDIR+= sysmon_envsys 1061.146SpgoyetteSUBDIR+= sysmon_power 1071.146SpgoyetteSUBDIR+= sysmon_taskq 1081.146SpgoyetteSUBDIR+= sysmon_wdog 1091.24SpookaSUBDIR+= sysvbfs 1101.153SpgoyetteSUBDIR+= sysv_ipc 1111.33SeladSUBDIR+= suser 1121.134SpgoyetteSUBDIR+= swcrypto 1131.48SpgoyetteSUBDIR+= swsensor 1141.145SpgoyetteSUBDIR+= swwdog 1151.7SrumbleSUBDIR+= tmpfs 1161.108SriastradSUBDIR+= uatp 1171.7SrumbleSUBDIR+= udf 1181.18SadSUBDIR+= umap 1191.7SrumbleSUBDIR+= union 1201.43SpgoyetteSUBDIR+= usbverbose 1211.106SchristosSUBDIR+= vcoda 1221.78SenamiSUBDIR+= v7fs 1231.25ShaadSUBDIR+= vnd 1241.157SpgoyetteSUBDIR+= wapbl 1251.131SpgoyetteSUBDIR+= zlib 1261.29SyamtSUBDIR+= tprof 1271.7Srumble.if (defined(NOTYET)) 1281.135SpgoyetteSUBDIR+= hifn # Builds on architectures with PCI bus 1291.7SrumbleSUBDIR+= unionfs 1301.7Srumble.endif 1311.37Sdyoung.if ${MKBINUTILS} != "no" 1321.37SdyoungSUBDIR+= xldscripts 1331.37Sdyoung.endif 1341.7Srumble 1351.15Sad# Machine dependent section 1361.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \ 1371.49Stsutsui ${MACHINE_CPU} == "m68k" 1381.47StsutsuiSUBDIR+= exec_aout 1391.47Stsutsui.endif 1401.47Stsutsui 1411.169Sscole.if ${MACHINE_ARCH} != "alpha" && \ 1421.169Sscole ${MACHINE_CPU} != "aarch64" && \ 1431.169Sscole ${MACHINE_ARCH} != "ia64" 1441.17SmartinSUBDIR+= exec_elf32 1451.17Smartin.endif 1461.15Sad 1471.139Smatt.if ${MACHINE_CPU} == "aarch64" || \ 1481.139Smatt ${MACHINE_ARCH} == "alpha" || \ 1491.169Sscole ${MACHINE_ARCH} == "ia64" || \ 1501.21Stsutsui ${MACHINE_ARCH} == "sparc64" || \ 1511.21Stsutsui ${MACHINE_ARCH} == "x86_64" 1521.20SheSUBDIR+= exec_elf64 1531.20She.endif 1541.20She 1551.29Syamt.if ${MACHINE_ARCH} == "i386" || \ 1561.29Syamt ${MACHINE_ARCH} == "x86_64" 1571.71SjruohoSUBDIR+= amdtemp 1581.64SjruohoSUBDIR+= coretemp 1591.65SjruohoSUBDIR+= est 1601.110SmartinSUBDIR+= hdafg 1611.110SmartinSUBDIR+= hdaudio 1621.144SjmcneillSUBDIR+= hdaudio_pci 1631.141SchristosSUBDIR+= hdaudioverbose 1641.72SjruohoSUBDIR+= hpet 1651.69SjruohoSUBDIR+= odcm 1661.66SjruohoSUBDIR+= powernow 1671.150SpgoyetteSUBDIR+= tco 1681.29SyamtSUBDIR+= tprof_pmi 1691.70SyamtSUBDIR+= tprof_amdpmi 1701.95SjmcneillSUBDIR+= vmt 1711.29Syamt.endif 1721.29Syamt 1731.140Sbad.if ${MACHINE_ARCH} == "i386" || \ 1741.137Sbad ${MACHINE_ARCH} == "x86_64" 1751.137SbadSUBDIR+= ubsec # Builds on architectures with PCI bus 1761.137Sbad.endif 1771.137Sbad 1781.126Salnsn.if ${MKSLJIT} != "no" 1791.126Salnsn# No modules for arm, mips and powerpc yet. 1801.114Salnsn.if ${MACHINE_ARCH} == "i386" || \ 1811.115Salnsn ${MACHINE_ARCH} == "x86_64" || \ 1821.115Salnsn ${MACHINE_ARCH} == "sparc" 1831.113SalnsnSUBDIR+= bpfjit 1841.112SalnsnSUBDIR+= sljit 1851.112Salnsn.endif 1861.126Salnsn.endif 1871.112Salnsn 1881.85Sjruoho# 1891.85Sjruoho# ACPI modules 1901.85Sjruoho# 1911.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \ 1921.46Spgoyette ${MACHINE_ARCH} == "ia64" || \ 1931.46Spgoyette ${MACHINE_ARCH} == "x86_64" 1941.46SpgoyetteSUBDIR+= acpiverbose 1951.46Spgoyette.endif 1961.46Spgoyette 1971.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \ 1981.50Sjmcneill ${MACHINE_ARCH} == "x86_64" 1991.52SjruohoSUBDIR+= acpiacad 2001.52SjruohoSUBDIR+= acpibat 2011.52SjruohoSUBDIR+= acpibut 2021.52SjruohoSUBDIR+= acpicpu 2031.53SjruohoSUBDIR+= acpidalb 2041.58SjruohoSUBDIR+= acpifan 2051.52SjruohoSUBDIR+= acpilid 2061.57SjruohoSUBDIR+= acpipmtr 2071.53SjruohoSUBDIR+= acpitz 2081.53SjruohoSUBDIR+= acpivga 2091.86SjruohoSUBDIR+= acpiwdrt 2101.51SjmcneillSUBDIR+= acpiwmi 2111.53SjruohoSUBDIR+= aibs 2121.54SjruohoSUBDIR+= asus 2131.63SjruohoSUBDIR+= fujbp 2141.63SjruohoSUBDIR+= fujhk 2151.75SjruohoSUBDIR+= hpacel 2161.54SjruohoSUBDIR+= hpqlb 2171.52SjruohoSUBDIR+= thinkpad 2181.50SjmcneillSUBDIR+= wmidell 2191.83SjruohoSUBDIR+= wmieeepc 2201.50SjmcneillSUBDIR+= wmihp 2211.50SjmcneillSUBDIR+= wmimsi 2221.50Sjmcneill.endif 2231.50Sjmcneill 2241.156Smatt.if ${MACHINE_CPU} == "arm" \ 2251.156Smatt || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 2261.151SmattSUBDIR+= compat_netbsd32 2271.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2281.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2291.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2301.151Smatt.endif 2311.151Smatt 2321.27Sabs.if ${MACHINE_ARCH} == "x86_64" 2331.15SadSUBDIR+= compat_linux32 2341.15SadSUBDIR+= compat_netbsd32 2351.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2361.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2371.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2381.15Sad.endif 2391.15Sad 2401.27Sabs.if ${MACHINE_ARCH} == "i386" 2411.90SjmcneillSUBDIR+= ati_pcigart 2421.15SadSUBDIR+= compat_freebsd 2431.15SadSUBDIR+= compat_ibcs2 2441.15SadSUBDIR+= compat_svr4 2451.90SjmcneillSUBDIR+= mach64drm 2461.90SjmcneillSUBDIR+= mgadrm 2471.76SjmcneillSUBDIR+= nsclpcsio 2481.62SjmcneillSUBDIR+= padlock 2491.90SjmcneillSUBDIR+= r128drm 2501.90SjmcneillSUBDIR+= radeondrm 2511.90SjmcneillSUBDIR+= savagedrm 2521.90SjmcneillSUBDIR+= sisdrm 2531.90SjmcneillSUBDIR+= tdfxdrm 2541.67SjruohoSUBDIR+= viac7temp 2551.90SjmcneillSUBDIR+= viadrm 2561.149SriastradSUBDIR+= viadrmums 2571.15Sad.endif 2581.15Sad 2591.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2601.142Schristos ${MACHINE_ARCH} == "x86_64" 2611.142SchristosSUBDIR+= azalia 2621.142SchristosSUBDIR+= compat_linux 2631.142SchristosSUBDIR+= drm 2641.142SchristosSUBDIR+= drmkms 2651.142SchristosSUBDIR+= drmkms_linux 2661.142SchristosSUBDIR+= drmkms_pci 2671.142SchristosSUBDIR+= i915drm 2681.142SchristosSUBDIR+= i915drmkms 2691.142SchristosSUBDIR+= pad 2701.85Sjruoho# 2711.85Sjruoho# ISA modules 2721.85Sjruoho# 2731.59SjmcneillSUBDIR+= aps 2741.80SjmcneillSUBDIR+= finsio 2751.79SjmcneillSUBDIR+= itesio 2761.101SjakllschSUBDIR+= lm 2771.101SjakllschSUBDIR+= lm_isa 2781.101SjakllschSUBDIR+= lm_isa_common 2791.101SjakllschSUBDIR+= lm_wbsio 2801.101SjakllschSUBDIR+= wbsio 2811.56Sjmcneill.endif 2821.56Sjmcneill 2831.49Stsutsui.if ${MACHINE_CPU} == "m68k" 2841.47StsutsuiSUBDIR+= compat_aoutm68k 2851.47Stsutsui#SUBDIR+= compat_linux 2861.47Stsutsui#SUBDIR+= compat_sunos 2871.47Stsutsui#SUBDIR+= compat_svr4 2881.47Stsutsui.endif 2891.47Stsutsui 2901.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 2911.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 2921.88Smbalmer ${MACHINE_ARCH} == "sparc64" 2931.88SmbalmerSUBDIR+= pwdog 2941.88Smbalmer.endif 2951.88Smbalmer 2961.23Sagc.include <bsd.own.mk> 2971.23Sagc 2981.107Sreinoud# 2991.107Sreinoud# NetBSD/usermode support 3001.107Sreinoud# 3011.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 3021.107Sreinoud ${MACHINE_ARCH} == "x86_64" 3031.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 3041.107Sreinoud.endif 3051.107Sreinoud 3061.23Sagc# we need our device mapper for LVM 3071.23Sagc.if (${MKLVM} != "no") 3081.28SyamtSUBDIR+= dm 3091.23Sagc.endif 3101.23Sagc 3111.39Sdarran.if (${MKDTRACE} != "no") 3121.116SchsSUBDIR+= cyclic 3131.39SdarranSUBDIR+= dtrace 3141.39Sdarran.endif 3151.39Sdarran 3161.39Sdarran# we need solaris for the dtrace and zfs modules 3171.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3181.39SdarranSUBDIR+= solaris 3191.39Sdarran.endif 3201.39Sdarran 3211.34Shaad.if (${MKZFS} != "no") 3221.34ShaadSUBDIR+= zfs 3231.34Shaad.endif 3241.34Shaad 3251.73Smrg.if (${MKCOMPATMODULES} != "no") 3261.73SmrgSUBDIR+= arch 3271.73Smrg.endif 3281.73Smrg 3291.84Sjmcneill# 3301.84Sjmcneill# DTV modules 3311.84Sjmcneill# 3321.84SjmcneillSUBDIR+= dtv 3331.84SjmcneillSUBDIR+= dtv_math 3341.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3351.84Sjmcneill# tuners/demods 3361.84SjmcneillSUBDIR+= au8522 3371.84SjmcneillSUBDIR+= cx24227 3381.84SjmcneillSUBDIR+= lg3303 3391.84SjmcneillSUBDIR+= mt2131 3401.84SjmcneillSUBDIR+= nxt2k 3411.84SjmcneillSUBDIR+= tvpll 3421.84SjmcneillSUBDIR+= xc3028 3431.84SjmcneillSUBDIR+= xc5k 3441.91SjruohoSUBDIR+= zl10353 3451.84Sjmcneill# hardware drivers 3461.84SjmcneillSUBDIR+= auvitek 3471.84SjmcneillSUBDIR+= coram 3481.84SjmcneillSUBDIR+= cxdtv 3491.84SjmcneillSUBDIR+= emdtv 3501.155SpgoyetteSUBDIR+= spkr 3511.84Sjmcneill.endif 3521.84Sjmcneill 3531.98Sriz.if (${MKISCSI} != "no") 3541.98SrizSUBDIR+= iscsi 3551.98Sriz.endif 3561.98Sriz 3571.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 3581.154Spgoyette 3591.1Sad.include <bsd.subdir.mk> 360