Makefile revision 1.163
11.163Spgoyette# $NetBSD: Makefile,v 1.163 2015/12/07 03:25:57 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.163SpgoyetteSUBDIR+= clockctl 201.134SpgoyetteSUBDIR+= crypto 211.7SrumbleSUBDIR+= coda 221.7SrumbleSUBDIR+= coda5 231.15SadSUBDIR+= compat 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.22SadSUBDIR+= layerfs 521.7SrumbleSUBDIR+= lfs 531.121SmbalmerSUBDIR+= lua 541.128SlnetoSUBDIR+= luasystm 551.123SmbalmerSUBDIR+= luapmf 561.7SrumbleSUBDIR+= mfs 571.45SpgoyetteSUBDIR+= miiverbose 581.45SpgoyetteSUBDIR+= miniroot 591.31SrmindSUBDIR+= mqueue 601.18SadSUBDIR+= msdos 611.68SahokaSUBDIR+= nand 621.68SahokaSUBDIR+= nandemulator 631.15SadSUBDIR+= nfs 641.15SadSUBDIR+= nfsserver 651.30SreinoudSUBDIR+= nilfs 661.96StronSUBDIR+= npf 671.97StronSUBDIR+= npf_alg_icmp 681.111SrmindSUBDIR+= npf_ext_log 691.119SchristosSUBDIR+= npf_ext_normalize 701.117SrmindSUBDIR+= npf_ext_rndblock 711.7SrumbleSUBDIR+= ntfs 721.18SadSUBDIR+= null 731.92SmbalmerSUBDIR+= onewire 741.134SpgoyetteSUBDIR+= opencrypto 751.7SrumbleSUBDIR+= overlay 761.42SpgoyetteSUBDIR+= pciverbose 771.41SahokaSUBDIR+= pf 781.19ScubeSUBDIR+= ppp_bsdcomp 791.19ScubeSUBDIR+= ppp_deflate 801.7SrumbleSUBDIR+= procfs 811.7SrumbleSUBDIR+= ptyfs 821.7SrumbleSUBDIR+= puffs 831.15SadSUBDIR+= putter 841.44SpgoyetteSUBDIR+= scsiverbose 851.103SpgoyetteSUBDIR+= sdtemp 861.33SeladSUBDIR+= secmodel_bsd44 871.100SjymSUBDIR+= secmodel_extensions 881.33SeladSUBDIR+= secmodel_overlay 891.33SeladSUBDIR+= securelevel 901.133SpgoyetteSUBDIR+= skipjack 911.7SrumbleSUBDIR+= smbfs 921.81SpgoyetteSUBDIR+= spdmem 931.146SpgoyetteSUBDIR+= sysmon 941.146SpgoyetteSUBDIR+= sysmon_envsys 951.146SpgoyetteSUBDIR+= sysmon_power 961.146SpgoyetteSUBDIR+= sysmon_taskq 971.146SpgoyetteSUBDIR+= sysmon_wdog 981.24SpookaSUBDIR+= sysvbfs 991.153SpgoyetteSUBDIR+= sysv_ipc 1001.33SeladSUBDIR+= suser 1011.134SpgoyetteSUBDIR+= swcrypto 1021.48SpgoyetteSUBDIR+= swsensor 1031.145SpgoyetteSUBDIR+= swwdog 1041.7SrumbleSUBDIR+= tmpfs 1051.108SriastradSUBDIR+= uatp 1061.7SrumbleSUBDIR+= udf 1071.18SadSUBDIR+= umap 1081.7SrumbleSUBDIR+= union 1091.43SpgoyetteSUBDIR+= usbverbose 1101.106SchristosSUBDIR+= vcoda 1111.78SenamiSUBDIR+= v7fs 1121.25ShaadSUBDIR+= vnd 1131.157SpgoyetteSUBDIR+= wapbl 1141.131SpgoyetteSUBDIR+= zlib 1151.29SyamtSUBDIR+= tprof 1161.7Srumble.if (defined(NOTYET)) 1171.135SpgoyetteSUBDIR+= hifn # Builds on architectures with PCI bus 1181.7SrumbleSUBDIR+= unionfs 1191.7Srumble.endif 1201.37Sdyoung.if ${MKBINUTILS} != "no" 1211.37SdyoungSUBDIR+= xldscripts 1221.37Sdyoung.endif 1231.7Srumble 1241.15Sad# Machine dependent section 1251.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \ 1261.49Stsutsui ${MACHINE_CPU} == "m68k" 1271.47StsutsuiSUBDIR+= exec_aout 1281.47Stsutsui.endif 1291.47Stsutsui 1301.139Smatt.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64" 1311.17SmartinSUBDIR+= exec_elf32 1321.17Smartin.endif 1331.15Sad 1341.139Smatt.if ${MACHINE_CPU} == "aarch64" || \ 1351.139Smatt ${MACHINE_ARCH} == "alpha" || \ 1361.21Stsutsui ${MACHINE_ARCH} == "sparc64" || \ 1371.21Stsutsui ${MACHINE_ARCH} == "x86_64" 1381.20SheSUBDIR+= exec_elf64 1391.20She.endif 1401.20She 1411.29Syamt.if ${MACHINE_ARCH} == "i386" || \ 1421.29Syamt ${MACHINE_ARCH} == "x86_64" 1431.71SjruohoSUBDIR+= amdtemp 1441.64SjruohoSUBDIR+= coretemp 1451.65SjruohoSUBDIR+= est 1461.110SmartinSUBDIR+= hdafg 1471.110SmartinSUBDIR+= hdaudio 1481.144SjmcneillSUBDIR+= hdaudio_pci 1491.141SchristosSUBDIR+= hdaudioverbose 1501.72SjruohoSUBDIR+= hpet 1511.69SjruohoSUBDIR+= odcm 1521.66SjruohoSUBDIR+= powernow 1531.150SpgoyetteSUBDIR+= tco 1541.29SyamtSUBDIR+= tprof_pmi 1551.70SyamtSUBDIR+= tprof_amdpmi 1561.95SjmcneillSUBDIR+= vmt 1571.29Syamt.endif 1581.29Syamt 1591.140Sbad.if ${MACHINE_ARCH} == "i386" || \ 1601.137Sbad ${MACHINE_ARCH} == "x86_64" 1611.137SbadSUBDIR+= ubsec # Builds on architectures with PCI bus 1621.137Sbad.endif 1631.137Sbad 1641.126Salnsn.if ${MKSLJIT} != "no" 1651.126Salnsn# No modules for arm, mips and powerpc yet. 1661.114Salnsn.if ${MACHINE_ARCH} == "i386" || \ 1671.115Salnsn ${MACHINE_ARCH} == "x86_64" || \ 1681.115Salnsn ${MACHINE_ARCH} == "sparc" 1691.113SalnsnSUBDIR+= bpfjit 1701.112SalnsnSUBDIR+= sljit 1711.112Salnsn.endif 1721.126Salnsn.endif 1731.112Salnsn 1741.85Sjruoho# 1751.85Sjruoho# ACPI modules 1761.85Sjruoho# 1771.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \ 1781.46Spgoyette ${MACHINE_ARCH} == "ia64" || \ 1791.46Spgoyette ${MACHINE_ARCH} == "x86_64" 1801.46SpgoyetteSUBDIR+= acpiverbose 1811.46Spgoyette.endif 1821.46Spgoyette 1831.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \ 1841.50Sjmcneill ${MACHINE_ARCH} == "x86_64" 1851.52SjruohoSUBDIR+= acpiacad 1861.52SjruohoSUBDIR+= acpibat 1871.52SjruohoSUBDIR+= acpibut 1881.52SjruohoSUBDIR+= acpicpu 1891.53SjruohoSUBDIR+= acpidalb 1901.58SjruohoSUBDIR+= acpifan 1911.52SjruohoSUBDIR+= acpilid 1921.57SjruohoSUBDIR+= acpipmtr 1931.53SjruohoSUBDIR+= acpitz 1941.53SjruohoSUBDIR+= acpivga 1951.86SjruohoSUBDIR+= acpiwdrt 1961.51SjmcneillSUBDIR+= acpiwmi 1971.53SjruohoSUBDIR+= aibs 1981.54SjruohoSUBDIR+= asus 1991.63SjruohoSUBDIR+= fujbp 2001.63SjruohoSUBDIR+= fujhk 2011.75SjruohoSUBDIR+= hpacel 2021.54SjruohoSUBDIR+= hpqlb 2031.52SjruohoSUBDIR+= thinkpad 2041.50SjmcneillSUBDIR+= wmidell 2051.83SjruohoSUBDIR+= wmieeepc 2061.50SjmcneillSUBDIR+= wmihp 2071.50SjmcneillSUBDIR+= wmimsi 2081.50Sjmcneill.endif 2091.50Sjmcneill 2101.156Smatt.if ${MACHINE_CPU} == "arm" \ 2111.156Smatt || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 2121.151SmattSUBDIR+= compat_netbsd32 2131.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2141.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2151.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 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.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2241.15Sad.endif 2251.15Sad 2261.27Sabs.if ${MACHINE_ARCH} == "i386" 2271.90SjmcneillSUBDIR+= ati_pcigart 2281.15SadSUBDIR+= compat_freebsd 2291.15SadSUBDIR+= compat_ibcs2 2301.15SadSUBDIR+= compat_svr4 2311.90SjmcneillSUBDIR+= mach64drm 2321.90SjmcneillSUBDIR+= mgadrm 2331.76SjmcneillSUBDIR+= nsclpcsio 2341.62SjmcneillSUBDIR+= padlock 2351.90SjmcneillSUBDIR+= r128drm 2361.90SjmcneillSUBDIR+= radeondrm 2371.90SjmcneillSUBDIR+= savagedrm 2381.90SjmcneillSUBDIR+= sisdrm 2391.90SjmcneillSUBDIR+= tdfxdrm 2401.67SjruohoSUBDIR+= viac7temp 2411.90SjmcneillSUBDIR+= viadrm 2421.149SriastradSUBDIR+= viadrmums 2431.15Sad.endif 2441.15Sad 2451.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2461.142Schristos ${MACHINE_ARCH} == "x86_64" 2471.142SchristosSUBDIR+= azalia 2481.142SchristosSUBDIR+= compat_linux 2491.142SchristosSUBDIR+= drm 2501.142SchristosSUBDIR+= drmkms 2511.142SchristosSUBDIR+= drmkms_linux 2521.142SchristosSUBDIR+= drmkms_pci 2531.142SchristosSUBDIR+= i915drm 2541.142SchristosSUBDIR+= i915drmkms 2551.142SchristosSUBDIR+= pad 2561.85Sjruoho# 2571.85Sjruoho# ISA modules 2581.85Sjruoho# 2591.59SjmcneillSUBDIR+= aps 2601.80SjmcneillSUBDIR+= finsio 2611.79SjmcneillSUBDIR+= itesio 2621.101SjakllschSUBDIR+= lm 2631.101SjakllschSUBDIR+= lm_isa 2641.101SjakllschSUBDIR+= lm_isa_common 2651.101SjakllschSUBDIR+= lm_wbsio 2661.101SjakllschSUBDIR+= wbsio 2671.56Sjmcneill.endif 2681.56Sjmcneill 2691.49Stsutsui.if ${MACHINE_CPU} == "m68k" 2701.47StsutsuiSUBDIR+= compat_aoutm68k 2711.47Stsutsui#SUBDIR+= compat_linux 2721.47Stsutsui#SUBDIR+= compat_sunos 2731.47Stsutsui#SUBDIR+= compat_svr4 2741.47Stsutsui.endif 2751.47Stsutsui 2761.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 2771.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 2781.88Smbalmer ${MACHINE_ARCH} == "sparc64" 2791.88SmbalmerSUBDIR+= pwdog 2801.88Smbalmer.endif 2811.88Smbalmer 2821.23Sagc.include <bsd.own.mk> 2831.23Sagc 2841.107Sreinoud# 2851.107Sreinoud# NetBSD/usermode support 2861.107Sreinoud# 2871.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 2881.107Sreinoud ${MACHINE_ARCH} == "x86_64" 2891.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 2901.107Sreinoud.endif 2911.107Sreinoud 2921.23Sagc# we need our device mapper for LVM 2931.23Sagc.if (${MKLVM} != "no") 2941.28SyamtSUBDIR+= dm 2951.23Sagc.endif 2961.23Sagc 2971.39Sdarran.if (${MKDTRACE} != "no") 2981.116SchsSUBDIR+= cyclic 2991.39SdarranSUBDIR+= dtrace 3001.39Sdarran.endif 3011.39Sdarran 3021.39Sdarran# we need solaris for the dtrace and zfs modules 3031.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3041.39SdarranSUBDIR+= solaris 3051.39Sdarran.endif 3061.39Sdarran 3071.34Shaad.if (${MKZFS} != "no") 3081.34ShaadSUBDIR+= zfs 3091.34Shaad.endif 3101.34Shaad 3111.73Smrg.if (${MKCOMPATMODULES} != "no") 3121.73SmrgSUBDIR+= arch 3131.73Smrg.endif 3141.73Smrg 3151.84Sjmcneill# 3161.84Sjmcneill# DTV modules 3171.84Sjmcneill# 3181.84SjmcneillSUBDIR+= dtv 3191.84SjmcneillSUBDIR+= dtv_math 3201.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3211.84Sjmcneill# tuners/demods 3221.84SjmcneillSUBDIR+= au8522 3231.84SjmcneillSUBDIR+= cx24227 3241.84SjmcneillSUBDIR+= lg3303 3251.84SjmcneillSUBDIR+= mt2131 3261.84SjmcneillSUBDIR+= nxt2k 3271.84SjmcneillSUBDIR+= tvpll 3281.84SjmcneillSUBDIR+= xc3028 3291.84SjmcneillSUBDIR+= xc5k 3301.91SjruohoSUBDIR+= zl10353 3311.84Sjmcneill# hardware drivers 3321.84SjmcneillSUBDIR+= auvitek 3331.84SjmcneillSUBDIR+= coram 3341.84SjmcneillSUBDIR+= cxdtv 3351.84SjmcneillSUBDIR+= emdtv 3361.155SpgoyetteSUBDIR+= spkr 3371.84Sjmcneill.endif 3381.84Sjmcneill 3391.98Sriz.if (${MKISCSI} != "no") 3401.98SrizSUBDIR+= iscsi 3411.98Sriz.endif 3421.98Sriz 3431.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 3441.154Spgoyette 3451.1Sad.include <bsd.subdir.mk> 346