Makefile revision 1.193
11.193Spgoyette# $NetBSD: Makefile,v 1.193 2017/06/12 01:01:01 pgoyette Exp $ 21.37Sdyoung 31.37Sdyoung.include <bsd.own.mk> 41.15Sad 51.15Sad# For all platforms 61.1Sad 71.179SpgoyetteSUBDIR= accf_dataready 81.16SadSUBDIR+= accf_httpready 91.15SadSUBDIR+= adosfs 101.14SadSUBDIR+= aio 111.192SpgoyetteSUBDIR+= audio 121.133SpgoyetteSUBDIR+= blowfish 131.38SpookaSUBDIR+= bpf 141.166SpgoyetteSUBDIR+= bpf_filter 151.183SpgoyetteSUBDIR+= bufq_disksort 161.183SpgoyetteSUBDIR+= bufq_fcfs 171.183SpgoyetteSUBDIR+= bufq_priocscan 181.183SpgoyetteSUBDIR+= bufq_readprio 191.133SpgoyetteSUBDIR+= camellia 201.133SpgoyetteSUBDIR+= cast128 211.132SpgoyetteSUBDIR+= ccd 221.7SrumbleSUBDIR+= cd9660 231.129SpgoyetteSUBDIR+= cgd 241.132SpgoyetteSUBDIR+= chfs 251.163SpgoyetteSUBDIR+= clockctl 261.134SpgoyetteSUBDIR+= crypto 271.7SrumbleSUBDIR+= coda 281.7SrumbleSUBDIR+= coda5 291.15SadSUBDIR+= compat 301.15SadSUBDIR+= compat_ossaudio 311.15SadSUBDIR+= coredump 321.104SpgoyetteSUBDIR+= dbcool 331.133SpgoyetteSUBDIR+= des 341.129SpgoyetteSUBDIR+= dk_subr 351.164SpgoyetteSUBDIR+= drvctl 361.7SrumbleSUBDIR+= efs 371.7SrumbleSUBDIR+= ext2fs 381.15SadSUBDIR+= exec_script 391.7SrumbleSUBDIR+= fdesc 401.7SrumbleSUBDIR+= ffs 411.18SadSUBDIR+= filecore 421.93SsjgSUBDIR+= filemon 431.68SahokaSUBDIR+= flash 441.15SadSUBDIR+= fss 451.89SmbalmerSUBDIR+= gpio 461.94SmbalmerSUBDIR+= gpioiic 471.92SmbalmerSUBDIR+= gpioow 481.89SmbalmerSUBDIR+= gpiosim 491.7SrumbleSUBDIR+= hfs 501.136SkardelSUBDIR+= hythygtemp 511.143SjmcneillSUBDIR+= i2cexec 521.166SpgoyetteSUBDIR+= i2c_bitbang 531.175SchristosSUBDIR+= if_agr 541.105SpgoyetteSUBDIR+= if_axe 551.120SnonakaSUBDIR+= if_axen 561.175SchristosSUBDIR+= if_faith 571.175SchristosSUBDIR+= if_gif 581.175SchristosSUBDIR+= if_gre 591.189SknakaharSUBDIR+= if_l2tp 601.175SchristosSUBDIR+= if_loop 611.175SchristosSUBDIR+= if_mpls 621.118SchristosSUBDIR+= if_npflog 631.171SchristosSUBDIR+= if_ppp 641.174SpgoyetteSUBDIR+= if_pppoe 651.172SchristosSUBDIR+= if_sl 661.124SskrllSUBDIR+= if_smsc 671.175SchristosSUBDIR+= if_srt 681.175SchristosSUBDIR+= if_stf 691.172SchristosSUBDIR+= if_strip 701.176SpgoyetteSUBDIR+= if_tun tun 711.175SchristosSUBDIR+= if_vlan 721.94SmbalmerSUBDIR+= iic 731.167SpgoyetteSUBDIR+= ipl 741.7SrumbleSUBDIR+= kernfs 751.22SadSUBDIR+= layerfs 761.7SrumbleSUBDIR+= lfs 771.121SmbalmerSUBDIR+= lua 781.128SlnetoSUBDIR+= luasystm 791.123SmbalmerSUBDIR+= luapmf 801.7SrumbleSUBDIR+= mfs 811.192SpgoyetteSUBDIR+= midi 821.45SpgoyetteSUBDIR+= miiverbose 831.45SpgoyetteSUBDIR+= miniroot 841.31SrmindSUBDIR+= mqueue 851.18SadSUBDIR+= msdos 861.68SahokaSUBDIR+= nand 871.68SahokaSUBDIR+= nandemulator 881.15SadSUBDIR+= nfs 891.15SadSUBDIR+= nfsserver 901.30SreinoudSUBDIR+= nilfs 911.96StronSUBDIR+= npf 921.97StronSUBDIR+= npf_alg_icmp 931.111SrmindSUBDIR+= npf_ext_log 941.119SchristosSUBDIR+= npf_ext_normalize 951.117SrmindSUBDIR+= npf_ext_rndblock 961.7SrumbleSUBDIR+= ntfs 971.18SadSUBDIR+= null 981.92SmbalmerSUBDIR+= onewire 991.134SpgoyetteSUBDIR+= opencrypto 1001.7SrumbleSUBDIR+= overlay 1011.42SpgoyetteSUBDIR+= pciverbose 1021.41SahokaSUBDIR+= pf 1031.19ScubeSUBDIR+= ppp_bsdcomp 1041.19ScubeSUBDIR+= ppp_deflate 1051.7SrumbleSUBDIR+= procfs 1061.182SpgoyetteSUBDIR+= ptrace 1071.182SpgoyetteSUBDIR+= ptrace_common 1081.7SrumbleSUBDIR+= ptyfs 1091.7SrumbleSUBDIR+= puffs 1101.15SadSUBDIR+= putter 1111.165SpgoyetteSUBDIR+= raid 1121.44SpgoyetteSUBDIR+= scsiverbose 1131.103SpgoyetteSUBDIR+= sdtemp 1141.33SeladSUBDIR+= secmodel_bsd44 1151.100SjymSUBDIR+= secmodel_extensions 1161.33SeladSUBDIR+= secmodel_overlay 1171.33SeladSUBDIR+= securelevel 1181.192SpgoyetteSUBDIR+= sequencer 1191.133SpgoyetteSUBDIR+= skipjack 1201.168SpgoyetteSUBDIR+= slcompress 1211.7SrumbleSUBDIR+= smbfs 1221.81SpgoyetteSUBDIR+= spdmem 1231.188SpgoyetteSUBDIR+= spkr 1241.173SpgoyetteSUBDIR+= sppp_subr 1251.146SpgoyetteSUBDIR+= sysmon 1261.146SpgoyetteSUBDIR+= sysmon_envsys 1271.146SpgoyetteSUBDIR+= sysmon_power 1281.146SpgoyetteSUBDIR+= sysmon_taskq 1291.146SpgoyetteSUBDIR+= sysmon_wdog 1301.24SpookaSUBDIR+= sysvbfs 1311.153SpgoyetteSUBDIR+= sysv_ipc 1321.33SeladSUBDIR+= suser 1331.134SpgoyetteSUBDIR+= swcrypto 1341.48SpgoyetteSUBDIR+= swsensor 1351.145SpgoyetteSUBDIR+= swwdog 1361.7SrumbleSUBDIR+= tmpfs 1371.191SriastradSUBDIR+= ualea 1381.108SriastradSUBDIR+= uatp 1391.7SrumbleSUBDIR+= udf 1401.18SadSUBDIR+= umap 1411.7SrumbleSUBDIR+= union 1421.43SpgoyetteSUBDIR+= usbverbose 1431.106SchristosSUBDIR+= vcoda 1441.78SenamiSUBDIR+= v7fs 1451.25ShaadSUBDIR+= vnd 1461.157SpgoyetteSUBDIR+= wapbl 1471.193SpgoyetteSUBDIR+= wsbell 1481.131SpgoyetteSUBDIR+= zlib 1491.29SyamtSUBDIR+= tprof 1501.7Srumble.if (defined(NOTYET)) 1511.135SpgoyetteSUBDIR+= hifn # Builds on architectures with PCI bus 1521.7SrumbleSUBDIR+= unionfs 1531.7Srumble.endif 1541.37Sdyoung.if ${MKBINUTILS} != "no" 1551.37SdyoungSUBDIR+= xldscripts 1561.37Sdyoung.endif 1571.7Srumble 1581.15Sad# Machine dependent section 1591.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \ 1601.49Stsutsui ${MACHINE_CPU} == "m68k" 1611.47StsutsuiSUBDIR+= exec_aout 1621.47Stsutsui.endif 1631.47Stsutsui 1641.169Sscole.if ${MACHINE_ARCH} != "alpha" && \ 1651.169Sscole ${MACHINE_CPU} != "aarch64" && \ 1661.169Sscole ${MACHINE_ARCH} != "ia64" 1671.17SmartinSUBDIR+= exec_elf32 1681.17Smartin.endif 1691.15Sad 1701.139Smatt.if ${MACHINE_CPU} == "aarch64" || \ 1711.139Smatt ${MACHINE_ARCH} == "alpha" || \ 1721.169Sscole ${MACHINE_ARCH} == "ia64" || \ 1731.21Stsutsui ${MACHINE_ARCH} == "sparc64" || \ 1741.21Stsutsui ${MACHINE_ARCH} == "x86_64" 1751.20SheSUBDIR+= exec_elf64 1761.20She.endif 1771.20She 1781.29Syamt.if ${MACHINE_ARCH} == "i386" || \ 1791.29Syamt ${MACHINE_ARCH} == "x86_64" 1801.71SjruohoSUBDIR+= amdtemp 1811.64SjruohoSUBDIR+= coretemp 1821.65SjruohoSUBDIR+= est 1831.110SmartinSUBDIR+= hdafg 1841.110SmartinSUBDIR+= hdaudio 1851.144SjmcneillSUBDIR+= hdaudio_pci 1861.141SchristosSUBDIR+= hdaudioverbose 1871.72SjruohoSUBDIR+= hpet 1881.69SjruohoSUBDIR+= odcm 1891.66SjruohoSUBDIR+= powernow 1901.150SpgoyetteSUBDIR+= tco 1911.29SyamtSUBDIR+= tprof_pmi 1921.70SyamtSUBDIR+= tprof_amdpmi 1931.95SjmcneillSUBDIR+= vmt 1941.29Syamt.endif 1951.29Syamt 1961.140Sbad.if ${MACHINE_ARCH} == "i386" || \ 1971.137Sbad ${MACHINE_ARCH} == "x86_64" 1981.137SbadSUBDIR+= ubsec # Builds on architectures with PCI bus 1991.137Sbad.endif 2001.137Sbad 2011.126Salnsn.if ${MKSLJIT} != "no" 2021.126Salnsn# No modules for arm, mips and powerpc yet. 2031.114Salnsn.if ${MACHINE_ARCH} == "i386" || \ 2041.115Salnsn ${MACHINE_ARCH} == "x86_64" || \ 2051.115Salnsn ${MACHINE_ARCH} == "sparc" 2061.113SalnsnSUBDIR+= bpfjit 2071.112SalnsnSUBDIR+= sljit 2081.112Salnsn.endif 2091.126Salnsn.endif 2101.112Salnsn 2111.85Sjruoho# 2121.85Sjruoho# ACPI modules 2131.85Sjruoho# 2141.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \ 2151.46Spgoyette ${MACHINE_ARCH} == "ia64" || \ 2161.46Spgoyette ${MACHINE_ARCH} == "x86_64" 2171.46SpgoyetteSUBDIR+= acpiverbose 2181.46Spgoyette.endif 2191.46Spgoyette 2201.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \ 2211.50Sjmcneill ${MACHINE_ARCH} == "x86_64" 2221.52SjruohoSUBDIR+= acpiacad 2231.52SjruohoSUBDIR+= acpibat 2241.52SjruohoSUBDIR+= acpibut 2251.52SjruohoSUBDIR+= acpicpu 2261.53SjruohoSUBDIR+= acpidalb 2271.58SjruohoSUBDIR+= acpifan 2281.52SjruohoSUBDIR+= acpilid 2291.57SjruohoSUBDIR+= acpipmtr 2301.53SjruohoSUBDIR+= acpitz 2311.53SjruohoSUBDIR+= acpivga 2321.86SjruohoSUBDIR+= acpiwdrt 2331.51SjmcneillSUBDIR+= acpiwmi 2341.53SjruohoSUBDIR+= aibs 2351.54SjruohoSUBDIR+= asus 2361.63SjruohoSUBDIR+= fujbp 2371.63SjruohoSUBDIR+= fujhk 2381.75SjruohoSUBDIR+= hpacel 2391.54SjruohoSUBDIR+= hpqlb 2401.52SjruohoSUBDIR+= thinkpad 2411.50SjmcneillSUBDIR+= wmidell 2421.83SjruohoSUBDIR+= wmieeepc 2431.50SjmcneillSUBDIR+= wmihp 2441.50SjmcneillSUBDIR+= wmimsi 2451.50Sjmcneill.endif 2461.50Sjmcneill 2471.156Smatt.if ${MACHINE_CPU} == "arm" \ 2481.156Smatt || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 2491.151SmattSUBDIR+= compat_netbsd32 2501.180SskrllSUBDIR+= compat_netbsd32_mqueue 2511.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2521.181SskrllSUBDIR+= compat_netbsd32_ptrace 2531.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2541.151Smatt.endif 2551.151Smatt 2561.27Sabs.if ${MACHINE_ARCH} == "x86_64" 2571.15SadSUBDIR+= compat_linux32 2581.15SadSUBDIR+= compat_netbsd32 2591.180SskrllSUBDIR+= compat_netbsd32_mqueue 2601.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2611.181SskrllSUBDIR+= compat_netbsd32_ptrace 2621.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2631.15Sad.endif 2641.15Sad 2651.27Sabs.if ${MACHINE_ARCH} == "i386" 2661.90SjmcneillSUBDIR+= ati_pcigart 2671.15SadSUBDIR+= compat_freebsd 2681.15SadSUBDIR+= compat_ibcs2 2691.15SadSUBDIR+= compat_svr4 2701.90SjmcneillSUBDIR+= mach64drm 2711.90SjmcneillSUBDIR+= mgadrm 2721.76SjmcneillSUBDIR+= nsclpcsio 2731.62SjmcneillSUBDIR+= padlock 2741.90SjmcneillSUBDIR+= r128drm 2751.90SjmcneillSUBDIR+= radeondrm 2761.90SjmcneillSUBDIR+= savagedrm 2771.90SjmcneillSUBDIR+= sisdrm 2781.90SjmcneillSUBDIR+= tdfxdrm 2791.67SjruohoSUBDIR+= viac7temp 2801.90SjmcneillSUBDIR+= viadrm 2811.149SriastradSUBDIR+= viadrmums 2821.15Sad.endif 2831.15Sad 2841.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2851.142Schristos ${MACHINE_ARCH} == "x86_64" 2861.142SchristosSUBDIR+= azalia 2871.142SchristosSUBDIR+= compat_linux 2881.142SchristosSUBDIR+= drm 2891.142SchristosSUBDIR+= drmkms 2901.142SchristosSUBDIR+= drmkms_linux 2911.142SchristosSUBDIR+= drmkms_pci 2921.142SchristosSUBDIR+= i915drm 2931.142SchristosSUBDIR+= i915drmkms 2941.142SchristosSUBDIR+= pad 2951.85Sjruoho# 2961.85Sjruoho# ISA modules 2971.85Sjruoho# 2981.59SjmcneillSUBDIR+= aps 2991.80SjmcneillSUBDIR+= finsio 3001.79SjmcneillSUBDIR+= itesio 3011.101SjakllschSUBDIR+= lm 3021.101SjakllschSUBDIR+= lm_isa 3031.101SjakllschSUBDIR+= lm_isa_common 3041.101SjakllschSUBDIR+= lm_wbsio 3051.101SjakllschSUBDIR+= wbsio 3061.56Sjmcneill.endif 3071.56Sjmcneill 3081.49Stsutsui.if ${MACHINE_CPU} == "m68k" 3091.47StsutsuiSUBDIR+= compat_aoutm68k 3101.47Stsutsui#SUBDIR+= compat_linux 3111.47Stsutsui#SUBDIR+= compat_sunos 3121.47Stsutsui#SUBDIR+= compat_svr4 3131.47Stsutsui.endif 3141.47Stsutsui 3151.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 3161.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 3171.88Smbalmer ${MACHINE_ARCH} == "sparc64" 3181.88SmbalmerSUBDIR+= pwdog 3191.88Smbalmer.endif 3201.88Smbalmer 3211.23Sagc.include <bsd.own.mk> 3221.23Sagc 3231.107Sreinoud# 3241.107Sreinoud# NetBSD/usermode support 3251.107Sreinoud# 3261.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 3271.107Sreinoud ${MACHINE_ARCH} == "x86_64" 3281.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 3291.107Sreinoud.endif 3301.107Sreinoud 3311.23Sagc# we need our device mapper for LVM 3321.23Sagc.if (${MKLVM} != "no") 3331.28SyamtSUBDIR+= dm 3341.23Sagc.endif 3351.23Sagc 3361.39Sdarran.if (${MKDTRACE} != "no") 3371.116SchsSUBDIR+= cyclic 3381.39SdarranSUBDIR+= dtrace 3391.39Sdarran.endif 3401.39Sdarran 3411.39Sdarran# we need solaris for the dtrace and zfs modules 3421.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3431.39SdarranSUBDIR+= solaris 3441.39Sdarran.endif 3451.39Sdarran 3461.34Shaad.if (${MKZFS} != "no") 3471.34ShaadSUBDIR+= zfs 3481.34Shaad.endif 3491.34Shaad 3501.73Smrg.if (${MKCOMPATMODULES} != "no") 3511.73SmrgSUBDIR+= arch 3521.73Smrg.endif 3531.73Smrg 3541.84Sjmcneill# 3551.84Sjmcneill# DTV modules 3561.84Sjmcneill# 3571.84SjmcneillSUBDIR+= dtv 3581.84SjmcneillSUBDIR+= dtv_math 3591.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3601.84Sjmcneill# tuners/demods 3611.84SjmcneillSUBDIR+= au8522 3621.84SjmcneillSUBDIR+= cx24227 3631.84SjmcneillSUBDIR+= lg3303 3641.84SjmcneillSUBDIR+= mt2131 3651.84SjmcneillSUBDIR+= nxt2k 3661.84SjmcneillSUBDIR+= tvpll 3671.84SjmcneillSUBDIR+= xc3028 3681.84SjmcneillSUBDIR+= xc5k 3691.91SjruohoSUBDIR+= zl10353 3701.84Sjmcneill# hardware drivers 3711.84SjmcneillSUBDIR+= auvitek 3721.84SjmcneillSUBDIR+= coram 3731.84SjmcneillSUBDIR+= cxdtv 3741.84SjmcneillSUBDIR+= emdtv 3751.84Sjmcneill.endif 3761.84Sjmcneill 3771.98Sriz.if (${MKISCSI} != "no") 3781.98SrizSUBDIR+= iscsi 3791.98Sriz.endif 3801.98Sriz 3811.179Spgoyette# For now, all of these are disabled, pending resolution of how to deal 3821.179Spgoyette# with attachment-specific modules and bus-specific modules (as opposed 3831.179Spgoyette# to machine- or architecture-specific modules) 3841.179Spgoyette 3851.179Spgoyette.if 0 3861.179SpgoyetteSUBDIR+= aac 3871.179SpgoyetteSUBDIR+= amr 3881.179SpgoyetteSUBDIR+= ataraid 3891.179SpgoyetteSUBDIR+= cac 3901.179SpgoyetteSUBDIR+= cac_eisa 3911.179SpgoyetteSUBDIR+= cac_pci 3921.179SpgoyetteSUBDIR+= if_vioif 3931.179SpgoyetteSUBDIR+= ld 3941.179SpgoyetteSUBDIR+= ld_aac 3951.179SpgoyetteSUBDIR+= ld_amr 3961.179SpgoyetteSUBDIR+= ld_ataraid 3971.179SpgoyetteSUBDIR+= ld_cac 3981.179SpgoyetteSUBDIR+= ld_icp 3991.179SpgoyetteSUBDIR+= ld_mlx 4001.179SpgoyetteSUBDIR+= ld_sdmmc 4011.179SpgoyetteSUBDIR+= ld_twa 4021.179SpgoyetteSUBDIR+= ld_twe 4031.179SpgoyetteSUBDIR+= ld_virtio 4041.179SpgoyetteSUBDIR+= mlx 4051.179SpgoyetteSUBDIR+= mlx_eisa 4061.179SpgoyetteSUBDIR+= mlx_pci 4071.179SpgoyetteSUBDIR+= ld_nvme 4081.179SpgoyetteSUBDIR+= nvme 4091.179SpgoyetteSUBDIR+= twa 4101.179SpgoyetteSUBDIR+= twe 4111.179SpgoyetteSUBDIR+= viomb 4121.179SpgoyetteSUBDIR+= virtio 4131.190SjdolecekSUBDIR+= vioscsi 4141.179Spgoyette.endif 4151.179Spgoyette 4161.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 4171.154Spgoyette 4181.1Sad.include <bsd.subdir.mk> 419