Makefile revision 1.176
11.176Spgoyette# $NetBSD: Makefile,v 1.176 2016/09/10 02:20:10 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.175SchristosSUBDIR+= if_agr 491.105SpgoyetteSUBDIR+= if_axe 501.120SnonakaSUBDIR+= if_axen 511.175SchristosSUBDIR+= if_faith 521.175SchristosSUBDIR+= if_gif 531.175SchristosSUBDIR+= if_gre 541.175SchristosSUBDIR+= if_loop 551.175SchristosSUBDIR+= if_mpls 561.118SchristosSUBDIR+= if_npflog 571.171SchristosSUBDIR+= if_ppp 581.174SpgoyetteSUBDIR+= if_pppoe 591.172SchristosSUBDIR+= if_sl 601.124SskrllSUBDIR+= if_smsc 611.175SchristosSUBDIR+= if_srt 621.175SchristosSUBDIR+= if_stf 631.172SchristosSUBDIR+= if_strip 641.176SpgoyetteSUBDIR+= if_tun tun 651.175SchristosSUBDIR+= if_vlan 661.94SmbalmerSUBDIR+= iic 671.167SpgoyetteSUBDIR+= ipl 681.7SrumbleSUBDIR+= kernfs 691.22SadSUBDIR+= layerfs 701.7SrumbleSUBDIR+= lfs 711.121SmbalmerSUBDIR+= lua 721.128SlnetoSUBDIR+= luasystm 731.123SmbalmerSUBDIR+= luapmf 741.7SrumbleSUBDIR+= mfs 751.45SpgoyetteSUBDIR+= miiverbose 761.45SpgoyetteSUBDIR+= miniroot 771.31SrmindSUBDIR+= mqueue 781.18SadSUBDIR+= msdos 791.68SahokaSUBDIR+= nand 801.68SahokaSUBDIR+= nandemulator 811.15SadSUBDIR+= nfs 821.15SadSUBDIR+= nfsserver 831.30SreinoudSUBDIR+= nilfs 841.96StronSUBDIR+= npf 851.97StronSUBDIR+= npf_alg_icmp 861.111SrmindSUBDIR+= npf_ext_log 871.119SchristosSUBDIR+= npf_ext_normalize 881.117SrmindSUBDIR+= npf_ext_rndblock 891.7SrumbleSUBDIR+= ntfs 901.18SadSUBDIR+= null 911.92SmbalmerSUBDIR+= onewire 921.134SpgoyetteSUBDIR+= opencrypto 931.7SrumbleSUBDIR+= overlay 941.42SpgoyetteSUBDIR+= pciverbose 951.41SahokaSUBDIR+= pf 961.19ScubeSUBDIR+= ppp_bsdcomp 971.19ScubeSUBDIR+= ppp_deflate 981.7SrumbleSUBDIR+= procfs 991.7SrumbleSUBDIR+= ptyfs 1001.7SrumbleSUBDIR+= puffs 1011.15SadSUBDIR+= putter 1021.165SpgoyetteSUBDIR+= raid 1031.44SpgoyetteSUBDIR+= scsiverbose 1041.103SpgoyetteSUBDIR+= sdtemp 1051.33SeladSUBDIR+= secmodel_bsd44 1061.100SjymSUBDIR+= secmodel_extensions 1071.33SeladSUBDIR+= secmodel_overlay 1081.33SeladSUBDIR+= securelevel 1091.133SpgoyetteSUBDIR+= skipjack 1101.168SpgoyetteSUBDIR+= slcompress 1111.7SrumbleSUBDIR+= smbfs 1121.81SpgoyetteSUBDIR+= spdmem 1131.173SpgoyetteSUBDIR+= sppp_subr 1141.146SpgoyetteSUBDIR+= sysmon 1151.146SpgoyetteSUBDIR+= sysmon_envsys 1161.146SpgoyetteSUBDIR+= sysmon_power 1171.146SpgoyetteSUBDIR+= sysmon_taskq 1181.146SpgoyetteSUBDIR+= sysmon_wdog 1191.24SpookaSUBDIR+= sysvbfs 1201.153SpgoyetteSUBDIR+= sysv_ipc 1211.33SeladSUBDIR+= suser 1221.134SpgoyetteSUBDIR+= swcrypto 1231.48SpgoyetteSUBDIR+= swsensor 1241.145SpgoyetteSUBDIR+= swwdog 1251.7SrumbleSUBDIR+= tmpfs 1261.108SriastradSUBDIR+= uatp 1271.7SrumbleSUBDIR+= udf 1281.18SadSUBDIR+= umap 1291.7SrumbleSUBDIR+= union 1301.43SpgoyetteSUBDIR+= usbverbose 1311.106SchristosSUBDIR+= vcoda 1321.78SenamiSUBDIR+= v7fs 1331.25ShaadSUBDIR+= vnd 1341.157SpgoyetteSUBDIR+= wapbl 1351.131SpgoyetteSUBDIR+= zlib 1361.29SyamtSUBDIR+= tprof 1371.7Srumble.if (defined(NOTYET)) 1381.135SpgoyetteSUBDIR+= hifn # Builds on architectures with PCI bus 1391.7SrumbleSUBDIR+= unionfs 1401.7Srumble.endif 1411.37Sdyoung.if ${MKBINUTILS} != "no" 1421.37SdyoungSUBDIR+= xldscripts 1431.37Sdyoung.endif 1441.7Srumble 1451.15Sad# Machine dependent section 1461.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \ 1471.49Stsutsui ${MACHINE_CPU} == "m68k" 1481.47StsutsuiSUBDIR+= exec_aout 1491.47Stsutsui.endif 1501.47Stsutsui 1511.169Sscole.if ${MACHINE_ARCH} != "alpha" && \ 1521.169Sscole ${MACHINE_CPU} != "aarch64" && \ 1531.169Sscole ${MACHINE_ARCH} != "ia64" 1541.17SmartinSUBDIR+= exec_elf32 1551.17Smartin.endif 1561.15Sad 1571.139Smatt.if ${MACHINE_CPU} == "aarch64" || \ 1581.139Smatt ${MACHINE_ARCH} == "alpha" || \ 1591.169Sscole ${MACHINE_ARCH} == "ia64" || \ 1601.21Stsutsui ${MACHINE_ARCH} == "sparc64" || \ 1611.21Stsutsui ${MACHINE_ARCH} == "x86_64" 1621.20SheSUBDIR+= exec_elf64 1631.20She.endif 1641.20She 1651.29Syamt.if ${MACHINE_ARCH} == "i386" || \ 1661.29Syamt ${MACHINE_ARCH} == "x86_64" 1671.71SjruohoSUBDIR+= amdtemp 1681.64SjruohoSUBDIR+= coretemp 1691.65SjruohoSUBDIR+= est 1701.110SmartinSUBDIR+= hdafg 1711.110SmartinSUBDIR+= hdaudio 1721.144SjmcneillSUBDIR+= hdaudio_pci 1731.141SchristosSUBDIR+= hdaudioverbose 1741.72SjruohoSUBDIR+= hpet 1751.69SjruohoSUBDIR+= odcm 1761.66SjruohoSUBDIR+= powernow 1771.150SpgoyetteSUBDIR+= tco 1781.29SyamtSUBDIR+= tprof_pmi 1791.70SyamtSUBDIR+= tprof_amdpmi 1801.95SjmcneillSUBDIR+= vmt 1811.29Syamt.endif 1821.29Syamt 1831.140Sbad.if ${MACHINE_ARCH} == "i386" || \ 1841.137Sbad ${MACHINE_ARCH} == "x86_64" 1851.137SbadSUBDIR+= ubsec # Builds on architectures with PCI bus 1861.137Sbad.endif 1871.137Sbad 1881.126Salnsn.if ${MKSLJIT} != "no" 1891.126Salnsn# No modules for arm, mips and powerpc yet. 1901.114Salnsn.if ${MACHINE_ARCH} == "i386" || \ 1911.115Salnsn ${MACHINE_ARCH} == "x86_64" || \ 1921.115Salnsn ${MACHINE_ARCH} == "sparc" 1931.113SalnsnSUBDIR+= bpfjit 1941.112SalnsnSUBDIR+= sljit 1951.112Salnsn.endif 1961.126Salnsn.endif 1971.112Salnsn 1981.85Sjruoho# 1991.85Sjruoho# ACPI modules 2001.85Sjruoho# 2011.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \ 2021.46Spgoyette ${MACHINE_ARCH} == "ia64" || \ 2031.46Spgoyette ${MACHINE_ARCH} == "x86_64" 2041.46SpgoyetteSUBDIR+= acpiverbose 2051.46Spgoyette.endif 2061.46Spgoyette 2071.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \ 2081.50Sjmcneill ${MACHINE_ARCH} == "x86_64" 2091.52SjruohoSUBDIR+= acpiacad 2101.52SjruohoSUBDIR+= acpibat 2111.52SjruohoSUBDIR+= acpibut 2121.52SjruohoSUBDIR+= acpicpu 2131.53SjruohoSUBDIR+= acpidalb 2141.58SjruohoSUBDIR+= acpifan 2151.52SjruohoSUBDIR+= acpilid 2161.57SjruohoSUBDIR+= acpipmtr 2171.53SjruohoSUBDIR+= acpitz 2181.53SjruohoSUBDIR+= acpivga 2191.86SjruohoSUBDIR+= acpiwdrt 2201.51SjmcneillSUBDIR+= acpiwmi 2211.53SjruohoSUBDIR+= aibs 2221.54SjruohoSUBDIR+= asus 2231.63SjruohoSUBDIR+= fujbp 2241.63SjruohoSUBDIR+= fujhk 2251.75SjruohoSUBDIR+= hpacel 2261.54SjruohoSUBDIR+= hpqlb 2271.52SjruohoSUBDIR+= thinkpad 2281.50SjmcneillSUBDIR+= wmidell 2291.83SjruohoSUBDIR+= wmieeepc 2301.50SjmcneillSUBDIR+= wmihp 2311.50SjmcneillSUBDIR+= wmimsi 2321.50Sjmcneill.endif 2331.50Sjmcneill 2341.156Smatt.if ${MACHINE_CPU} == "arm" \ 2351.156Smatt || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 2361.151SmattSUBDIR+= compat_netbsd32 2371.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2381.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2391.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2401.151Smatt.endif 2411.151Smatt 2421.27Sabs.if ${MACHINE_ARCH} == "x86_64" 2431.15SadSUBDIR+= compat_linux32 2441.15SadSUBDIR+= compat_netbsd32 2451.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2461.159SpgoyetteSUBDIR+= compat_netbsd32_mqueue 2471.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2481.15Sad.endif 2491.15Sad 2501.27Sabs.if ${MACHINE_ARCH} == "i386" 2511.90SjmcneillSUBDIR+= ati_pcigart 2521.15SadSUBDIR+= compat_freebsd 2531.15SadSUBDIR+= compat_ibcs2 2541.15SadSUBDIR+= compat_svr4 2551.90SjmcneillSUBDIR+= mach64drm 2561.90SjmcneillSUBDIR+= mgadrm 2571.76SjmcneillSUBDIR+= nsclpcsio 2581.62SjmcneillSUBDIR+= padlock 2591.90SjmcneillSUBDIR+= r128drm 2601.90SjmcneillSUBDIR+= radeondrm 2611.90SjmcneillSUBDIR+= savagedrm 2621.90SjmcneillSUBDIR+= sisdrm 2631.90SjmcneillSUBDIR+= tdfxdrm 2641.67SjruohoSUBDIR+= viac7temp 2651.90SjmcneillSUBDIR+= viadrm 2661.149SriastradSUBDIR+= viadrmums 2671.15Sad.endif 2681.15Sad 2691.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2701.142Schristos ${MACHINE_ARCH} == "x86_64" 2711.142SchristosSUBDIR+= azalia 2721.142SchristosSUBDIR+= compat_linux 2731.142SchristosSUBDIR+= drm 2741.142SchristosSUBDIR+= drmkms 2751.142SchristosSUBDIR+= drmkms_linux 2761.142SchristosSUBDIR+= drmkms_pci 2771.142SchristosSUBDIR+= i915drm 2781.142SchristosSUBDIR+= i915drmkms 2791.142SchristosSUBDIR+= pad 2801.85Sjruoho# 2811.85Sjruoho# ISA modules 2821.85Sjruoho# 2831.59SjmcneillSUBDIR+= aps 2841.80SjmcneillSUBDIR+= finsio 2851.79SjmcneillSUBDIR+= itesio 2861.101SjakllschSUBDIR+= lm 2871.101SjakllschSUBDIR+= lm_isa 2881.101SjakllschSUBDIR+= lm_isa_common 2891.101SjakllschSUBDIR+= lm_wbsio 2901.101SjakllschSUBDIR+= wbsio 2911.56Sjmcneill.endif 2921.56Sjmcneill 2931.49Stsutsui.if ${MACHINE_CPU} == "m68k" 2941.47StsutsuiSUBDIR+= compat_aoutm68k 2951.47Stsutsui#SUBDIR+= compat_linux 2961.47Stsutsui#SUBDIR+= compat_sunos 2971.47Stsutsui#SUBDIR+= compat_svr4 2981.47Stsutsui.endif 2991.47Stsutsui 3001.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 3011.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 3021.88Smbalmer ${MACHINE_ARCH} == "sparc64" 3031.88SmbalmerSUBDIR+= pwdog 3041.88Smbalmer.endif 3051.88Smbalmer 3061.23Sagc.include <bsd.own.mk> 3071.23Sagc 3081.107Sreinoud# 3091.107Sreinoud# NetBSD/usermode support 3101.107Sreinoud# 3111.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 3121.107Sreinoud ${MACHINE_ARCH} == "x86_64" 3131.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 3141.107Sreinoud.endif 3151.107Sreinoud 3161.23Sagc# we need our device mapper for LVM 3171.23Sagc.if (${MKLVM} != "no") 3181.28SyamtSUBDIR+= dm 3191.23Sagc.endif 3201.23Sagc 3211.39Sdarran.if (${MKDTRACE} != "no") 3221.116SchsSUBDIR+= cyclic 3231.39SdarranSUBDIR+= dtrace 3241.39Sdarran.endif 3251.39Sdarran 3261.39Sdarran# we need solaris for the dtrace and zfs modules 3271.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3281.39SdarranSUBDIR+= solaris 3291.39Sdarran.endif 3301.39Sdarran 3311.34Shaad.if (${MKZFS} != "no") 3321.34ShaadSUBDIR+= zfs 3331.34Shaad.endif 3341.34Shaad 3351.73Smrg.if (${MKCOMPATMODULES} != "no") 3361.73SmrgSUBDIR+= arch 3371.73Smrg.endif 3381.73Smrg 3391.84Sjmcneill# 3401.84Sjmcneill# DTV modules 3411.84Sjmcneill# 3421.84SjmcneillSUBDIR+= dtv 3431.84SjmcneillSUBDIR+= dtv_math 3441.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3451.84Sjmcneill# tuners/demods 3461.84SjmcneillSUBDIR+= au8522 3471.84SjmcneillSUBDIR+= cx24227 3481.84SjmcneillSUBDIR+= lg3303 3491.84SjmcneillSUBDIR+= mt2131 3501.84SjmcneillSUBDIR+= nxt2k 3511.84SjmcneillSUBDIR+= tvpll 3521.84SjmcneillSUBDIR+= xc3028 3531.84SjmcneillSUBDIR+= xc5k 3541.91SjruohoSUBDIR+= zl10353 3551.84Sjmcneill# hardware drivers 3561.84SjmcneillSUBDIR+= auvitek 3571.84SjmcneillSUBDIR+= coram 3581.84SjmcneillSUBDIR+= cxdtv 3591.84SjmcneillSUBDIR+= emdtv 3601.155SpgoyetteSUBDIR+= spkr 3611.84Sjmcneill.endif 3621.84Sjmcneill 3631.98Sriz.if (${MKISCSI} != "no") 3641.98SrizSUBDIR+= iscsi 3651.98Sriz.endif 3661.98Sriz 3671.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 3681.154Spgoyette 3691.1Sad.include <bsd.subdir.mk> 370