Makefile revision 1.158
11.158Spgoyette# $NetBSD: Makefile,v 1.158 2015/12/01 09:13: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.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.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2141.151Smatt.endif 2151.151Smatt 2161.27Sabs.if ${MACHINE_ARCH} == "x86_64" 2171.15SadSUBDIR+= compat_linux32 2181.15SadSUBDIR+= compat_netbsd32 2191.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2201.15Sad.endif 2211.15Sad 2221.27Sabs.if ${MACHINE_ARCH} == "i386" 2231.90SjmcneillSUBDIR+= ati_pcigart 2241.15SadSUBDIR+= compat_freebsd 2251.15SadSUBDIR+= compat_ibcs2 2261.15SadSUBDIR+= compat_svr4 2271.90SjmcneillSUBDIR+= mach64drm 2281.90SjmcneillSUBDIR+= mgadrm 2291.76SjmcneillSUBDIR+= nsclpcsio 2301.62SjmcneillSUBDIR+= padlock 2311.90SjmcneillSUBDIR+= r128drm 2321.90SjmcneillSUBDIR+= radeondrm 2331.90SjmcneillSUBDIR+= savagedrm 2341.90SjmcneillSUBDIR+= sisdrm 2351.90SjmcneillSUBDIR+= tdfxdrm 2361.67SjruohoSUBDIR+= viac7temp 2371.90SjmcneillSUBDIR+= viadrm 2381.149SriastradSUBDIR+= viadrmums 2391.15Sad.endif 2401.15Sad 2411.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2421.142Schristos ${MACHINE_ARCH} == "x86_64" 2431.142SchristosSUBDIR+= azalia 2441.142SchristosSUBDIR+= compat_linux 2451.142SchristosSUBDIR+= drm 2461.142SchristosSUBDIR+= drmkms 2471.142SchristosSUBDIR+= drmkms_linux 2481.142SchristosSUBDIR+= drmkms_pci 2491.142SchristosSUBDIR+= i915drm 2501.142SchristosSUBDIR+= i915drmkms 2511.142SchristosSUBDIR+= pad 2521.85Sjruoho# 2531.85Sjruoho# ISA modules 2541.85Sjruoho# 2551.59SjmcneillSUBDIR+= aps 2561.80SjmcneillSUBDIR+= finsio 2571.79SjmcneillSUBDIR+= itesio 2581.101SjakllschSUBDIR+= lm 2591.101SjakllschSUBDIR+= lm_isa 2601.101SjakllschSUBDIR+= lm_isa_common 2611.101SjakllschSUBDIR+= lm_wbsio 2621.101SjakllschSUBDIR+= wbsio 2631.56Sjmcneill.endif 2641.56Sjmcneill 2651.49Stsutsui.if ${MACHINE_CPU} == "m68k" 2661.47StsutsuiSUBDIR+= compat_aoutm68k 2671.47Stsutsui#SUBDIR+= compat_linux 2681.47Stsutsui#SUBDIR+= compat_sunos 2691.47Stsutsui#SUBDIR+= compat_svr4 2701.47Stsutsui.endif 2711.47Stsutsui 2721.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 2731.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 2741.88Smbalmer ${MACHINE_ARCH} == "sparc64" 2751.88SmbalmerSUBDIR+= pwdog 2761.88Smbalmer.endif 2771.88Smbalmer 2781.23Sagc.include <bsd.own.mk> 2791.23Sagc 2801.107Sreinoud# 2811.107Sreinoud# NetBSD/usermode support 2821.107Sreinoud# 2831.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 2841.107Sreinoud ${MACHINE_ARCH} == "x86_64" 2851.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 2861.107Sreinoud.endif 2871.107Sreinoud 2881.23Sagc# we need our device mapper for LVM 2891.23Sagc.if (${MKLVM} != "no") 2901.28SyamtSUBDIR+= dm 2911.23Sagc.endif 2921.23Sagc 2931.39Sdarran.if (${MKDTRACE} != "no") 2941.116SchsSUBDIR+= cyclic 2951.39SdarranSUBDIR+= dtrace 2961.39Sdarran.endif 2971.39Sdarran 2981.39Sdarran# we need solaris for the dtrace and zfs modules 2991.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3001.39SdarranSUBDIR+= solaris 3011.39Sdarran.endif 3021.39Sdarran 3031.34Shaad.if (${MKZFS} != "no") 3041.34ShaadSUBDIR+= zfs 3051.34Shaad.endif 3061.34Shaad 3071.73Smrg.if (${MKCOMPATMODULES} != "no") 3081.73SmrgSUBDIR+= arch 3091.73Smrg.endif 3101.73Smrg 3111.84Sjmcneill# 3121.84Sjmcneill# DTV modules 3131.84Sjmcneill# 3141.84SjmcneillSUBDIR+= dtv 3151.84SjmcneillSUBDIR+= dtv_math 3161.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3171.84Sjmcneill# tuners/demods 3181.84SjmcneillSUBDIR+= au8522 3191.84SjmcneillSUBDIR+= cx24227 3201.84SjmcneillSUBDIR+= lg3303 3211.84SjmcneillSUBDIR+= mt2131 3221.84SjmcneillSUBDIR+= nxt2k 3231.84SjmcneillSUBDIR+= tvpll 3241.84SjmcneillSUBDIR+= xc3028 3251.84SjmcneillSUBDIR+= xc5k 3261.91SjruohoSUBDIR+= zl10353 3271.84Sjmcneill# hardware drivers 3281.84SjmcneillSUBDIR+= auvitek 3291.84SjmcneillSUBDIR+= coram 3301.84SjmcneillSUBDIR+= cxdtv 3311.84SjmcneillSUBDIR+= emdtv 3321.155SpgoyetteSUBDIR+= spkr 3331.84Sjmcneill.endif 3341.84Sjmcneill 3351.98Sriz.if (${MKISCSI} != "no") 3361.98SrizSUBDIR+= iscsi 3371.98Sriz.endif 3381.98Sriz 3391.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 3401.154Spgoyette 3411.1Sad.include <bsd.subdir.mk> 342