Makefile revision 1.157
11.157Spgoyette# $NetBSD: Makefile,v 1.157 2015/11/15 03:12:14 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.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.151Smatt.endif 2141.151Smatt 2151.27Sabs.if ${MACHINE_ARCH} == "x86_64" 2161.15SadSUBDIR+= compat_linux32 2171.15SadSUBDIR+= compat_netbsd32 2181.15Sad.endif 2191.15Sad 2201.27Sabs.if ${MACHINE_ARCH} == "i386" 2211.90SjmcneillSUBDIR+= ati_pcigart 2221.15SadSUBDIR+= compat_freebsd 2231.15SadSUBDIR+= compat_ibcs2 2241.15SadSUBDIR+= compat_svr4 2251.90SjmcneillSUBDIR+= mach64drm 2261.90SjmcneillSUBDIR+= mgadrm 2271.76SjmcneillSUBDIR+= nsclpcsio 2281.62SjmcneillSUBDIR+= padlock 2291.90SjmcneillSUBDIR+= r128drm 2301.90SjmcneillSUBDIR+= radeondrm 2311.90SjmcneillSUBDIR+= savagedrm 2321.90SjmcneillSUBDIR+= sisdrm 2331.90SjmcneillSUBDIR+= tdfxdrm 2341.67SjruohoSUBDIR+= viac7temp 2351.90SjmcneillSUBDIR+= viadrm 2361.149SriastradSUBDIR+= viadrmums 2371.15Sad.endif 2381.15Sad 2391.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2401.142Schristos ${MACHINE_ARCH} == "x86_64" 2411.142SchristosSUBDIR+= azalia 2421.142SchristosSUBDIR+= compat_linux 2431.142SchristosSUBDIR+= drm 2441.142SchristosSUBDIR+= drmkms 2451.142SchristosSUBDIR+= drmkms_linux 2461.142SchristosSUBDIR+= drmkms_pci 2471.142SchristosSUBDIR+= i915drm 2481.142SchristosSUBDIR+= i915drmkms 2491.142SchristosSUBDIR+= pad 2501.85Sjruoho# 2511.85Sjruoho# ISA modules 2521.85Sjruoho# 2531.59SjmcneillSUBDIR+= aps 2541.80SjmcneillSUBDIR+= finsio 2551.79SjmcneillSUBDIR+= itesio 2561.101SjakllschSUBDIR+= lm 2571.101SjakllschSUBDIR+= lm_isa 2581.101SjakllschSUBDIR+= lm_isa_common 2591.101SjakllschSUBDIR+= lm_wbsio 2601.101SjakllschSUBDIR+= wbsio 2611.56Sjmcneill.endif 2621.56Sjmcneill 2631.49Stsutsui.if ${MACHINE_CPU} == "m68k" 2641.47StsutsuiSUBDIR+= compat_aoutm68k 2651.47Stsutsui#SUBDIR+= compat_linux 2661.47Stsutsui#SUBDIR+= compat_sunos 2671.47Stsutsui#SUBDIR+= compat_svr4 2681.47Stsutsui.endif 2691.47Stsutsui 2701.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 2711.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 2721.88Smbalmer ${MACHINE_ARCH} == "sparc64" 2731.88SmbalmerSUBDIR+= pwdog 2741.88Smbalmer.endif 2751.88Smbalmer 2761.23Sagc.include <bsd.own.mk> 2771.23Sagc 2781.107Sreinoud# 2791.107Sreinoud# NetBSD/usermode support 2801.107Sreinoud# 2811.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 2821.107Sreinoud ${MACHINE_ARCH} == "x86_64" 2831.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 2841.107Sreinoud.endif 2851.107Sreinoud 2861.23Sagc# we need our device mapper for LVM 2871.23Sagc.if (${MKLVM} != "no") 2881.28SyamtSUBDIR+= dm 2891.23Sagc.endif 2901.23Sagc 2911.39Sdarran.if (${MKDTRACE} != "no") 2921.116SchsSUBDIR+= cyclic 2931.39SdarranSUBDIR+= dtrace 2941.39Sdarran.endif 2951.39Sdarran 2961.39Sdarran# we need solaris for the dtrace and zfs modules 2971.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 2981.39SdarranSUBDIR+= solaris 2991.39Sdarran.endif 3001.39Sdarran 3011.34Shaad.if (${MKZFS} != "no") 3021.34ShaadSUBDIR+= zfs 3031.34Shaad.endif 3041.34Shaad 3051.73Smrg.if (${MKCOMPATMODULES} != "no") 3061.73SmrgSUBDIR+= arch 3071.73Smrg.endif 3081.73Smrg 3091.84Sjmcneill# 3101.84Sjmcneill# DTV modules 3111.84Sjmcneill# 3121.84SjmcneillSUBDIR+= dtv 3131.84SjmcneillSUBDIR+= dtv_math 3141.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3151.84Sjmcneill# tuners/demods 3161.84SjmcneillSUBDIR+= au8522 3171.84SjmcneillSUBDIR+= cx24227 3181.84SjmcneillSUBDIR+= lg3303 3191.84SjmcneillSUBDIR+= mt2131 3201.84SjmcneillSUBDIR+= nxt2k 3211.84SjmcneillSUBDIR+= tvpll 3221.84SjmcneillSUBDIR+= xc3028 3231.84SjmcneillSUBDIR+= xc5k 3241.91SjruohoSUBDIR+= zl10353 3251.84Sjmcneill# hardware drivers 3261.84SjmcneillSUBDIR+= auvitek 3271.84SjmcneillSUBDIR+= coram 3281.84SjmcneillSUBDIR+= cxdtv 3291.84SjmcneillSUBDIR+= emdtv 3301.155SpgoyetteSUBDIR+= spkr 3311.84Sjmcneill.endif 3321.84Sjmcneill 3331.98Sriz.if (${MKISCSI} != "no") 3341.98SrizSUBDIR+= iscsi 3351.98Sriz.endif 3361.98Sriz 3371.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 3381.154Spgoyette 3391.1Sad.include <bsd.subdir.mk> 340