Makefile revision 1.159
11.159Spgoyette# $NetBSD: Makefile,v 1.159 2015/12/01 23:58:19 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.133SpgoyetteSUBDIR+= camellia 141.133SpgoyetteSUBDIR+= cast128 151.132SpgoyetteSUBDIR+= ccd 161.7SrumbleSUBDIR+= cd9660 171.129SpgoyetteSUBDIR+= cgd 181.132SpgoyetteSUBDIR+= chfs 191.134SpgoyetteSUBDIR+= crypto 201.7SrumbleSUBDIR+= coda 211.7SrumbleSUBDIR+= coda5 221.15SadSUBDIR+= compat 231.152SpgoyetteSUBDIR+= compat_sysv 241.15SadSUBDIR+= compat_ossaudio 251.15SadSUBDIR+= coredump 261.104SpgoyetteSUBDIR+= dbcool 271.133SpgoyetteSUBDIR+= des 281.129SpgoyetteSUBDIR+= dk_subr 291.7SrumbleSUBDIR+= efs 301.7SrumbleSUBDIR+= ext2fs 311.15SadSUBDIR+= exec_script 321.7SrumbleSUBDIR+= fdesc 331.7SrumbleSUBDIR+= ffs 341.18SadSUBDIR+= filecore 351.93SsjgSUBDIR+= filemon 361.68SahokaSUBDIR+= flash 371.15SadSUBDIR+= fss 381.89SmbalmerSUBDIR+= gpio 391.94SmbalmerSUBDIR+= gpioiic 401.92SmbalmerSUBDIR+= gpioow 411.89SmbalmerSUBDIR+= gpiosim 421.7SrumbleSUBDIR+= hfs 431.136SkardelSUBDIR+= hythygtemp 441.143SjmcneillSUBDIR+= i2cexec 451.105SpgoyetteSUBDIR+= if_axe 461.120SnonakaSUBDIR+= if_axen 471.118SchristosSUBDIR+= if_npflog 481.124SskrllSUBDIR+= if_smsc 491.94SmbalmerSUBDIR+= iic 501.7SrumbleSUBDIR+= kernfs 511.159SpgoyetteSUBDIR+= ksem 521.22SadSUBDIR+= layerfs 531.7SrumbleSUBDIR+= lfs 541.121SmbalmerSUBDIR+= lua 551.128SlnetoSUBDIR+= luasystm 561.123SmbalmerSUBDIR+= luapmf 571.7SrumbleSUBDIR+= mfs 581.45SpgoyetteSUBDIR+= miiverbose 591.45SpgoyetteSUBDIR+= miniroot 601.31SrmindSUBDIR+= mqueue 611.18SadSUBDIR+= msdos 621.68SahokaSUBDIR+= nand 631.68SahokaSUBDIR+= nandemulator 641.15SadSUBDIR+= nfs 651.15SadSUBDIR+= nfsserver 661.30SreinoudSUBDIR+= nilfs 671.96StronSUBDIR+= npf 681.97StronSUBDIR+= npf_alg_icmp 691.111SrmindSUBDIR+= npf_ext_log 701.119SchristosSUBDIR+= npf_ext_normalize 711.117SrmindSUBDIR+= npf_ext_rndblock 721.7SrumbleSUBDIR+= ntfs 731.18SadSUBDIR+= null 741.92SmbalmerSUBDIR+= onewire 751.134SpgoyetteSUBDIR+= opencrypto 761.7SrumbleSUBDIR+= overlay 771.42SpgoyetteSUBDIR+= pciverbose 781.41SahokaSUBDIR+= pf 791.19ScubeSUBDIR+= ppp_bsdcomp 801.19ScubeSUBDIR+= ppp_deflate 811.7SrumbleSUBDIR+= procfs 821.7SrumbleSUBDIR+= ptyfs 831.7SrumbleSUBDIR+= puffs 841.15SadSUBDIR+= putter 851.44SpgoyetteSUBDIR+= scsiverbose 861.103SpgoyetteSUBDIR+= sdtemp 871.33SeladSUBDIR+= secmodel_bsd44 881.100SjymSUBDIR+= secmodel_extensions 891.33SeladSUBDIR+= secmodel_overlay 901.33SeladSUBDIR+= securelevel 911.133SpgoyetteSUBDIR+= skipjack 921.7SrumbleSUBDIR+= smbfs 931.81SpgoyetteSUBDIR+= spdmem 941.146SpgoyetteSUBDIR+= sysmon 951.146SpgoyetteSUBDIR+= sysmon_envsys 961.146SpgoyetteSUBDIR+= sysmon_power 971.146SpgoyetteSUBDIR+= sysmon_taskq 981.146SpgoyetteSUBDIR+= sysmon_wdog 991.24SpookaSUBDIR+= sysvbfs 1001.153SpgoyetteSUBDIR+= sysv_ipc 1011.33SeladSUBDIR+= suser 1021.134SpgoyetteSUBDIR+= swcrypto 1031.48SpgoyetteSUBDIR+= swsensor 1041.145SpgoyetteSUBDIR+= swwdog 1051.7SrumbleSUBDIR+= tmpfs 1061.108SriastradSUBDIR+= uatp 1071.7SrumbleSUBDIR+= udf 1081.18SadSUBDIR+= umap 1091.7SrumbleSUBDIR+= union 1101.43SpgoyetteSUBDIR+= usbverbose 1111.106SchristosSUBDIR+= vcoda 1121.78SenamiSUBDIR+= v7fs 1131.25ShaadSUBDIR+= vnd 1141.157SpgoyetteSUBDIR+= wapbl 1151.131SpgoyetteSUBDIR+= zlib 1161.29SyamtSUBDIR+= tprof 1171.7Srumble.if (defined(NOTYET)) 1181.135SpgoyetteSUBDIR+= hifn # Builds on architectures with PCI bus 1191.7SrumbleSUBDIR+= unionfs 1201.7Srumble.endif 1211.37Sdyoung.if ${MKBINUTILS} != "no" 1221.37SdyoungSUBDIR+= xldscripts 1231.37Sdyoung.endif 1241.7Srumble 1251.15Sad# Machine dependent section 1261.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \ 1271.49Stsutsui ${MACHINE_CPU} == "m68k" 1281.47StsutsuiSUBDIR+= exec_aout 1291.47Stsutsui.endif 1301.47Stsutsui 1311.139Smatt.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64" 1321.17SmartinSUBDIR+= exec_elf32 1331.17Smartin.endif 1341.15Sad 1351.139Smatt.if ${MACHINE_CPU} == "aarch64" || \ 1361.139Smatt ${MACHINE_ARCH} == "alpha" || \ 1371.21Stsutsui ${MACHINE_ARCH} == "sparc64" || \ 1381.21Stsutsui ${MACHINE_ARCH} == "x86_64" 1391.20SheSUBDIR+= exec_elf64 1401.20She.endif 1411.20She 1421.29Syamt.if ${MACHINE_ARCH} == "i386" || \ 1431.29Syamt ${MACHINE_ARCH} == "x86_64" 1441.71SjruohoSUBDIR+= amdtemp 1451.64SjruohoSUBDIR+= coretemp 1461.65SjruohoSUBDIR+= est 1471.110SmartinSUBDIR+= hdafg 1481.110SmartinSUBDIR+= hdaudio 1491.144SjmcneillSUBDIR+= hdaudio_pci 1501.141SchristosSUBDIR+= hdaudioverbose 1511.72SjruohoSUBDIR+= hpet 1521.69SjruohoSUBDIR+= odcm 1531.66SjruohoSUBDIR+= powernow 1541.150SpgoyetteSUBDIR+= tco 1551.29SyamtSUBDIR+= tprof_pmi 1561.70SyamtSUBDIR+= tprof_amdpmi 1571.95SjmcneillSUBDIR+= vmt 1581.29Syamt.endif 1591.29Syamt 1601.140Sbad.if ${MACHINE_ARCH} == "i386" || \ 1611.137Sbad ${MACHINE_ARCH} == "x86_64" 1621.137SbadSUBDIR+= ubsec # Builds on architectures with PCI bus 1631.137Sbad.endif 1641.137Sbad 1651.126Salnsn.if ${MKSLJIT} != "no" 1661.126Salnsn# No modules for arm, mips and powerpc yet. 1671.114Salnsn.if ${MACHINE_ARCH} == "i386" || \ 1681.115Salnsn ${MACHINE_ARCH} == "x86_64" || \ 1691.115Salnsn ${MACHINE_ARCH} == "sparc" 1701.113SalnsnSUBDIR+= bpfjit 1711.112SalnsnSUBDIR+= sljit 1721.112Salnsn.endif 1731.126Salnsn.endif 1741.112Salnsn 1751.85Sjruoho# 1761.85Sjruoho# ACPI modules 1771.85Sjruoho# 1781.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \ 1791.46Spgoyette ${MACHINE_ARCH} == "ia64" || \ 1801.46Spgoyette ${MACHINE_ARCH} == "x86_64" 1811.46SpgoyetteSUBDIR+= acpiverbose 1821.46Spgoyette.endif 1831.46Spgoyette 1841.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \ 1851.50Sjmcneill ${MACHINE_ARCH} == "x86_64" 1861.52SjruohoSUBDIR+= acpiacad 1871.52SjruohoSUBDIR+= acpibat 1881.52SjruohoSUBDIR+= acpibut 1891.52SjruohoSUBDIR+= acpicpu 1901.53SjruohoSUBDIR+= acpidalb 1911.58SjruohoSUBDIR+= acpifan 1921.52SjruohoSUBDIR+= acpilid 1931.57SjruohoSUBDIR+= acpipmtr 1941.53SjruohoSUBDIR+= acpitz 1951.53SjruohoSUBDIR+= acpivga 1961.86SjruohoSUBDIR+= acpiwdrt 1971.51SjmcneillSUBDIR+= acpiwmi 1981.53SjruohoSUBDIR+= aibs 1991.54SjruohoSUBDIR+= asus 2001.63SjruohoSUBDIR+= fujbp 2011.63SjruohoSUBDIR+= fujhk 2021.75SjruohoSUBDIR+= hpacel 2031.54SjruohoSUBDIR+= hpqlb 2041.52SjruohoSUBDIR+= thinkpad 2051.50SjmcneillSUBDIR+= wmidell 2061.83SjruohoSUBDIR+= wmieeepc 2071.50SjmcneillSUBDIR+= wmihp 2081.50SjmcneillSUBDIR+= wmimsi 2091.50Sjmcneill.endif 2101.50Sjmcneill 2111.156Smatt.if ${MACHINE_CPU} == "arm" \ 2121.156Smatt || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 2131.151SmattSUBDIR+= compat_netbsd32 2141.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2151.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2161.151Smatt.endif 2171.151Smatt 2181.27Sabs.if ${MACHINE_ARCH} == "x86_64" 2191.15SadSUBDIR+= compat_linux32 2201.15SadSUBDIR+= compat_netbsd32 2211.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2221.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2231.15Sad.endif 2241.15Sad 2251.27Sabs.if ${MACHINE_ARCH} == "i386" 2261.90SjmcneillSUBDIR+= ati_pcigart 2271.15SadSUBDIR+= compat_freebsd 2281.15SadSUBDIR+= compat_ibcs2 2291.15SadSUBDIR+= compat_svr4 2301.90SjmcneillSUBDIR+= mach64drm 2311.90SjmcneillSUBDIR+= mgadrm 2321.76SjmcneillSUBDIR+= nsclpcsio 2331.62SjmcneillSUBDIR+= padlock 2341.90SjmcneillSUBDIR+= r128drm 2351.90SjmcneillSUBDIR+= radeondrm 2361.90SjmcneillSUBDIR+= savagedrm 2371.90SjmcneillSUBDIR+= sisdrm 2381.90SjmcneillSUBDIR+= tdfxdrm 2391.67SjruohoSUBDIR+= viac7temp 2401.90SjmcneillSUBDIR+= viadrm 2411.149SriastradSUBDIR+= viadrmums 2421.15Sad.endif 2431.15Sad 2441.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2451.142Schristos ${MACHINE_ARCH} == "x86_64" 2461.142SchristosSUBDIR+= azalia 2471.142SchristosSUBDIR+= compat_linux 2481.142SchristosSUBDIR+= drm 2491.142SchristosSUBDIR+= drmkms 2501.142SchristosSUBDIR+= drmkms_linux 2511.142SchristosSUBDIR+= drmkms_pci 2521.142SchristosSUBDIR+= i915drm 2531.142SchristosSUBDIR+= i915drmkms 2541.142SchristosSUBDIR+= pad 2551.85Sjruoho# 2561.85Sjruoho# ISA modules 2571.85Sjruoho# 2581.59SjmcneillSUBDIR+= aps 2591.80SjmcneillSUBDIR+= finsio 2601.79SjmcneillSUBDIR+= itesio 2611.101SjakllschSUBDIR+= lm 2621.101SjakllschSUBDIR+= lm_isa 2631.101SjakllschSUBDIR+= lm_isa_common 2641.101SjakllschSUBDIR+= lm_wbsio 2651.101SjakllschSUBDIR+= wbsio 2661.56Sjmcneill.endif 2671.56Sjmcneill 2681.49Stsutsui.if ${MACHINE_CPU} == "m68k" 2691.47StsutsuiSUBDIR+= compat_aoutm68k 2701.47Stsutsui#SUBDIR+= compat_linux 2711.47Stsutsui#SUBDIR+= compat_sunos 2721.47Stsutsui#SUBDIR+= compat_svr4 2731.47Stsutsui.endif 2741.47Stsutsui 2751.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 2761.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 2771.88Smbalmer ${MACHINE_ARCH} == "sparc64" 2781.88SmbalmerSUBDIR+= pwdog 2791.88Smbalmer.endif 2801.88Smbalmer 2811.23Sagc.include <bsd.own.mk> 2821.23Sagc 2831.107Sreinoud# 2841.107Sreinoud# NetBSD/usermode support 2851.107Sreinoud# 2861.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 2871.107Sreinoud ${MACHINE_ARCH} == "x86_64" 2881.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 2891.107Sreinoud.endif 2901.107Sreinoud 2911.23Sagc# we need our device mapper for LVM 2921.23Sagc.if (${MKLVM} != "no") 2931.28SyamtSUBDIR+= dm 2941.23Sagc.endif 2951.23Sagc 2961.39Sdarran.if (${MKDTRACE} != "no") 2971.116SchsSUBDIR+= cyclic 2981.39SdarranSUBDIR+= dtrace 2991.39Sdarran.endif 3001.39Sdarran 3011.39Sdarran# we need solaris for the dtrace and zfs modules 3021.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3031.39SdarranSUBDIR+= solaris 3041.39Sdarran.endif 3051.39Sdarran 3061.34Shaad.if (${MKZFS} != "no") 3071.34ShaadSUBDIR+= zfs 3081.34Shaad.endif 3091.34Shaad 3101.73Smrg.if (${MKCOMPATMODULES} != "no") 3111.73SmrgSUBDIR+= arch 3121.73Smrg.endif 3131.73Smrg 3141.84Sjmcneill# 3151.84Sjmcneill# DTV modules 3161.84Sjmcneill# 3171.84SjmcneillSUBDIR+= dtv 3181.84SjmcneillSUBDIR+= dtv_math 3191.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3201.84Sjmcneill# tuners/demods 3211.84SjmcneillSUBDIR+= au8522 3221.84SjmcneillSUBDIR+= cx24227 3231.84SjmcneillSUBDIR+= lg3303 3241.84SjmcneillSUBDIR+= mt2131 3251.84SjmcneillSUBDIR+= nxt2k 3261.84SjmcneillSUBDIR+= tvpll 3271.84SjmcneillSUBDIR+= xc3028 3281.84SjmcneillSUBDIR+= xc5k 3291.91SjruohoSUBDIR+= zl10353 3301.84Sjmcneill# hardware drivers 3311.84SjmcneillSUBDIR+= auvitek 3321.84SjmcneillSUBDIR+= coram 3331.84SjmcneillSUBDIR+= cxdtv 3341.84SjmcneillSUBDIR+= emdtv 3351.155SpgoyetteSUBDIR+= spkr 3361.84Sjmcneill.endif 3371.84Sjmcneill 3381.98Sriz.if (${MKISCSI} != "no") 3391.98SrizSUBDIR+= iscsi 3401.98Sriz.endif 3411.98Sriz 3421.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 3431.154Spgoyette 3441.1Sad.include <bsd.subdir.mk> 345