Makefile revision 1.188
11.188Spgoyette# $NetBSD: Makefile,v 1.188 2016/12/15 06:48:14 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.133SpgoyetteSUBDIR+= blowfish 121.38SpookaSUBDIR+= bpf 131.166SpgoyetteSUBDIR+= bpf_filter 141.183SpgoyetteSUBDIR+= bufq_disksort 151.183SpgoyetteSUBDIR+= bufq_fcfs 161.183SpgoyetteSUBDIR+= bufq_priocscan 171.183SpgoyetteSUBDIR+= bufq_readprio 181.133SpgoyetteSUBDIR+= camellia 191.133SpgoyetteSUBDIR+= cast128 201.132SpgoyetteSUBDIR+= ccd 211.7SrumbleSUBDIR+= cd9660 221.129SpgoyetteSUBDIR+= cgd 231.132SpgoyetteSUBDIR+= chfs 241.163SpgoyetteSUBDIR+= clockctl 251.134SpgoyetteSUBDIR+= crypto 261.7SrumbleSUBDIR+= coda 271.7SrumbleSUBDIR+= coda5 281.15SadSUBDIR+= compat 291.15SadSUBDIR+= compat_ossaudio 301.15SadSUBDIR+= coredump 311.104SpgoyetteSUBDIR+= dbcool 321.133SpgoyetteSUBDIR+= des 331.129SpgoyetteSUBDIR+= dk_subr 341.164SpgoyetteSUBDIR+= drvctl 351.7SrumbleSUBDIR+= efs 361.7SrumbleSUBDIR+= ext2fs 371.15SadSUBDIR+= exec_script 381.7SrumbleSUBDIR+= fdesc 391.7SrumbleSUBDIR+= ffs 401.18SadSUBDIR+= filecore 411.93SsjgSUBDIR+= filemon 421.68SahokaSUBDIR+= flash 431.15SadSUBDIR+= fss 441.89SmbalmerSUBDIR+= gpio 451.94SmbalmerSUBDIR+= gpioiic 461.92SmbalmerSUBDIR+= gpioow 471.89SmbalmerSUBDIR+= gpiosim 481.7SrumbleSUBDIR+= hfs 491.136SkardelSUBDIR+= hythygtemp 501.143SjmcneillSUBDIR+= i2cexec 511.166SpgoyetteSUBDIR+= i2c_bitbang 521.175SchristosSUBDIR+= if_agr 531.105SpgoyetteSUBDIR+= if_axe 541.120SnonakaSUBDIR+= if_axen 551.175SchristosSUBDIR+= if_faith 561.175SchristosSUBDIR+= if_gif 571.175SchristosSUBDIR+= if_gre 581.175SchristosSUBDIR+= if_loop 591.175SchristosSUBDIR+= if_mpls 601.118SchristosSUBDIR+= if_npflog 611.171SchristosSUBDIR+= if_ppp 621.174SpgoyetteSUBDIR+= if_pppoe 631.172SchristosSUBDIR+= if_sl 641.124SskrllSUBDIR+= if_smsc 651.175SchristosSUBDIR+= if_srt 661.175SchristosSUBDIR+= if_stf 671.172SchristosSUBDIR+= if_strip 681.176SpgoyetteSUBDIR+= if_tun tun 691.175SchristosSUBDIR+= if_vlan 701.94SmbalmerSUBDIR+= iic 711.167SpgoyetteSUBDIR+= ipl 721.7SrumbleSUBDIR+= kernfs 731.22SadSUBDIR+= layerfs 741.7SrumbleSUBDIR+= lfs 751.121SmbalmerSUBDIR+= lua 761.128SlnetoSUBDIR+= luasystm 771.123SmbalmerSUBDIR+= luapmf 781.7SrumbleSUBDIR+= mfs 791.45SpgoyetteSUBDIR+= miiverbose 801.45SpgoyetteSUBDIR+= miniroot 811.31SrmindSUBDIR+= mqueue 821.18SadSUBDIR+= msdos 831.68SahokaSUBDIR+= nand 841.68SahokaSUBDIR+= nandemulator 851.15SadSUBDIR+= nfs 861.15SadSUBDIR+= nfsserver 871.30SreinoudSUBDIR+= nilfs 881.96StronSUBDIR+= npf 891.97StronSUBDIR+= npf_alg_icmp 901.111SrmindSUBDIR+= npf_ext_log 911.119SchristosSUBDIR+= npf_ext_normalize 921.117SrmindSUBDIR+= npf_ext_rndblock 931.7SrumbleSUBDIR+= ntfs 941.18SadSUBDIR+= null 951.92SmbalmerSUBDIR+= onewire 961.134SpgoyetteSUBDIR+= opencrypto 971.7SrumbleSUBDIR+= overlay 981.42SpgoyetteSUBDIR+= pciverbose 991.41SahokaSUBDIR+= pf 1001.19ScubeSUBDIR+= ppp_bsdcomp 1011.19ScubeSUBDIR+= ppp_deflate 1021.7SrumbleSUBDIR+= procfs 1031.182SpgoyetteSUBDIR+= ptrace 1041.182SpgoyetteSUBDIR+= ptrace_common 1051.7SrumbleSUBDIR+= ptyfs 1061.7SrumbleSUBDIR+= puffs 1071.15SadSUBDIR+= putter 1081.165SpgoyetteSUBDIR+= raid 1091.44SpgoyetteSUBDIR+= scsiverbose 1101.103SpgoyetteSUBDIR+= sdtemp 1111.33SeladSUBDIR+= secmodel_bsd44 1121.100SjymSUBDIR+= secmodel_extensions 1131.33SeladSUBDIR+= secmodel_overlay 1141.33SeladSUBDIR+= securelevel 1151.133SpgoyetteSUBDIR+= skipjack 1161.168SpgoyetteSUBDIR+= slcompress 1171.7SrumbleSUBDIR+= smbfs 1181.81SpgoyetteSUBDIR+= spdmem 1191.188SpgoyetteSUBDIR+= spkr 1201.173SpgoyetteSUBDIR+= sppp_subr 1211.146SpgoyetteSUBDIR+= sysmon 1221.146SpgoyetteSUBDIR+= sysmon_envsys 1231.146SpgoyetteSUBDIR+= sysmon_power 1241.146SpgoyetteSUBDIR+= sysmon_taskq 1251.146SpgoyetteSUBDIR+= sysmon_wdog 1261.24SpookaSUBDIR+= sysvbfs 1271.153SpgoyetteSUBDIR+= sysv_ipc 1281.33SeladSUBDIR+= suser 1291.134SpgoyetteSUBDIR+= swcrypto 1301.48SpgoyetteSUBDIR+= swsensor 1311.145SpgoyetteSUBDIR+= swwdog 1321.7SrumbleSUBDIR+= tmpfs 1331.108SriastradSUBDIR+= uatp 1341.7SrumbleSUBDIR+= udf 1351.18SadSUBDIR+= umap 1361.7SrumbleSUBDIR+= union 1371.43SpgoyetteSUBDIR+= usbverbose 1381.106SchristosSUBDIR+= vcoda 1391.78SenamiSUBDIR+= v7fs 1401.25ShaadSUBDIR+= vnd 1411.157SpgoyetteSUBDIR+= wapbl 1421.131SpgoyetteSUBDIR+= zlib 1431.29SyamtSUBDIR+= tprof 1441.7Srumble.if (defined(NOTYET)) 1451.135SpgoyetteSUBDIR+= hifn # Builds on architectures with PCI bus 1461.7SrumbleSUBDIR+= unionfs 1471.7Srumble.endif 1481.37Sdyoung.if ${MKBINUTILS} != "no" 1491.37SdyoungSUBDIR+= xldscripts 1501.37Sdyoung.endif 1511.7Srumble 1521.15Sad# Machine dependent section 1531.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \ 1541.49Stsutsui ${MACHINE_CPU} == "m68k" 1551.47StsutsuiSUBDIR+= exec_aout 1561.47Stsutsui.endif 1571.47Stsutsui 1581.169Sscole.if ${MACHINE_ARCH} != "alpha" && \ 1591.169Sscole ${MACHINE_CPU} != "aarch64" && \ 1601.169Sscole ${MACHINE_ARCH} != "ia64" 1611.17SmartinSUBDIR+= exec_elf32 1621.17Smartin.endif 1631.15Sad 1641.139Smatt.if ${MACHINE_CPU} == "aarch64" || \ 1651.139Smatt ${MACHINE_ARCH} == "alpha" || \ 1661.169Sscole ${MACHINE_ARCH} == "ia64" || \ 1671.21Stsutsui ${MACHINE_ARCH} == "sparc64" || \ 1681.21Stsutsui ${MACHINE_ARCH} == "x86_64" 1691.20SheSUBDIR+= exec_elf64 1701.20She.endif 1711.20She 1721.29Syamt.if ${MACHINE_ARCH} == "i386" || \ 1731.29Syamt ${MACHINE_ARCH} == "x86_64" 1741.71SjruohoSUBDIR+= amdtemp 1751.64SjruohoSUBDIR+= coretemp 1761.65SjruohoSUBDIR+= est 1771.110SmartinSUBDIR+= hdafg 1781.110SmartinSUBDIR+= hdaudio 1791.144SjmcneillSUBDIR+= hdaudio_pci 1801.141SchristosSUBDIR+= hdaudioverbose 1811.72SjruohoSUBDIR+= hpet 1821.69SjruohoSUBDIR+= odcm 1831.66SjruohoSUBDIR+= powernow 1841.150SpgoyetteSUBDIR+= tco 1851.29SyamtSUBDIR+= tprof_pmi 1861.70SyamtSUBDIR+= tprof_amdpmi 1871.95SjmcneillSUBDIR+= vmt 1881.29Syamt.endif 1891.29Syamt 1901.140Sbad.if ${MACHINE_ARCH} == "i386" || \ 1911.137Sbad ${MACHINE_ARCH} == "x86_64" 1921.137SbadSUBDIR+= ubsec # Builds on architectures with PCI bus 1931.137Sbad.endif 1941.137Sbad 1951.126Salnsn.if ${MKSLJIT} != "no" 1961.126Salnsn# No modules for arm, mips and powerpc yet. 1971.114Salnsn.if ${MACHINE_ARCH} == "i386" || \ 1981.115Salnsn ${MACHINE_ARCH} == "x86_64" || \ 1991.115Salnsn ${MACHINE_ARCH} == "sparc" 2001.113SalnsnSUBDIR+= bpfjit 2011.112SalnsnSUBDIR+= sljit 2021.112Salnsn.endif 2031.126Salnsn.endif 2041.112Salnsn 2051.85Sjruoho# 2061.85Sjruoho# ACPI modules 2071.85Sjruoho# 2081.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \ 2091.46Spgoyette ${MACHINE_ARCH} == "ia64" || \ 2101.46Spgoyette ${MACHINE_ARCH} == "x86_64" 2111.46SpgoyetteSUBDIR+= acpiverbose 2121.46Spgoyette.endif 2131.46Spgoyette 2141.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \ 2151.50Sjmcneill ${MACHINE_ARCH} == "x86_64" 2161.52SjruohoSUBDIR+= acpiacad 2171.52SjruohoSUBDIR+= acpibat 2181.52SjruohoSUBDIR+= acpibut 2191.52SjruohoSUBDIR+= acpicpu 2201.53SjruohoSUBDIR+= acpidalb 2211.58SjruohoSUBDIR+= acpifan 2221.52SjruohoSUBDIR+= acpilid 2231.57SjruohoSUBDIR+= acpipmtr 2241.53SjruohoSUBDIR+= acpitz 2251.53SjruohoSUBDIR+= acpivga 2261.86SjruohoSUBDIR+= acpiwdrt 2271.51SjmcneillSUBDIR+= acpiwmi 2281.53SjruohoSUBDIR+= aibs 2291.54SjruohoSUBDIR+= asus 2301.63SjruohoSUBDIR+= fujbp 2311.63SjruohoSUBDIR+= fujhk 2321.75SjruohoSUBDIR+= hpacel 2331.54SjruohoSUBDIR+= hpqlb 2341.52SjruohoSUBDIR+= thinkpad 2351.50SjmcneillSUBDIR+= wmidell 2361.83SjruohoSUBDIR+= wmieeepc 2371.50SjmcneillSUBDIR+= wmihp 2381.50SjmcneillSUBDIR+= wmimsi 2391.50Sjmcneill.endif 2401.50Sjmcneill 2411.156Smatt.if ${MACHINE_CPU} == "arm" \ 2421.156Smatt || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 2431.151SmattSUBDIR+= compat_netbsd32 2441.180SskrllSUBDIR+= compat_netbsd32_mqueue 2451.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2461.181SskrllSUBDIR+= compat_netbsd32_ptrace 2471.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2481.151Smatt.endif 2491.151Smatt 2501.27Sabs.if ${MACHINE_ARCH} == "x86_64" 2511.15SadSUBDIR+= compat_linux32 2521.15SadSUBDIR+= compat_netbsd32 2531.180SskrllSUBDIR+= compat_netbsd32_mqueue 2541.158SpgoyetteSUBDIR+= compat_netbsd32_nfssrv 2551.181SskrllSUBDIR+= compat_netbsd32_ptrace 2561.162SpgoyetteSUBDIR+= compat_netbsd32_sysvipc 2571.15Sad.endif 2581.15Sad 2591.27Sabs.if ${MACHINE_ARCH} == "i386" 2601.90SjmcneillSUBDIR+= ati_pcigart 2611.15SadSUBDIR+= compat_freebsd 2621.15SadSUBDIR+= compat_ibcs2 2631.15SadSUBDIR+= compat_svr4 2641.90SjmcneillSUBDIR+= mach64drm 2651.90SjmcneillSUBDIR+= mgadrm 2661.76SjmcneillSUBDIR+= nsclpcsio 2671.62SjmcneillSUBDIR+= padlock 2681.90SjmcneillSUBDIR+= r128drm 2691.90SjmcneillSUBDIR+= radeondrm 2701.90SjmcneillSUBDIR+= savagedrm 2711.90SjmcneillSUBDIR+= sisdrm 2721.90SjmcneillSUBDIR+= tdfxdrm 2731.67SjruohoSUBDIR+= viac7temp 2741.90SjmcneillSUBDIR+= viadrm 2751.149SriastradSUBDIR+= viadrmums 2761.15Sad.endif 2771.15Sad 2781.142Schristos.if ${MACHINE_ARCH} == "i386" || \ 2791.142Schristos ${MACHINE_ARCH} == "x86_64" 2801.142SchristosSUBDIR+= azalia 2811.142SchristosSUBDIR+= compat_linux 2821.142SchristosSUBDIR+= drm 2831.142SchristosSUBDIR+= drmkms 2841.142SchristosSUBDIR+= drmkms_linux 2851.142SchristosSUBDIR+= drmkms_pci 2861.142SchristosSUBDIR+= i915drm 2871.142SchristosSUBDIR+= i915drmkms 2881.142SchristosSUBDIR+= pad 2891.85Sjruoho# 2901.85Sjruoho# ISA modules 2911.85Sjruoho# 2921.59SjmcneillSUBDIR+= aps 2931.80SjmcneillSUBDIR+= finsio 2941.79SjmcneillSUBDIR+= itesio 2951.101SjakllschSUBDIR+= lm 2961.101SjakllschSUBDIR+= lm_isa 2971.101SjakllschSUBDIR+= lm_isa_common 2981.101SjakllschSUBDIR+= lm_wbsio 2991.101SjakllschSUBDIR+= wbsio 3001.56Sjmcneill.endif 3011.56Sjmcneill 3021.49Stsutsui.if ${MACHINE_CPU} == "m68k" 3031.47StsutsuiSUBDIR+= compat_aoutm68k 3041.47Stsutsui#SUBDIR+= compat_linux 3051.47Stsutsui#SUBDIR+= compat_sunos 3061.47Stsutsui#SUBDIR+= compat_svr4 3071.47Stsutsui.endif 3081.47Stsutsui 3091.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \ 3101.88Smbalmer ${MACHINE_ARCH} == "x86_64" || \ 3111.88Smbalmer ${MACHINE_ARCH} == "sparc64" 3121.88SmbalmerSUBDIR+= pwdog 3131.88Smbalmer.endif 3141.88Smbalmer 3151.23Sagc.include <bsd.own.mk> 3161.23Sagc 3171.107Sreinoud# 3181.107Sreinoud# NetBSD/usermode support 3191.107Sreinoud# 3201.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \ 3211.107Sreinoud ${MACHINE_ARCH} == "x86_64" 3221.107SreinoudSUBDIR+= ../arch/usermode/modules/syscallemu 3231.107Sreinoud.endif 3241.107Sreinoud 3251.23Sagc# we need our device mapper for LVM 3261.23Sagc.if (${MKLVM} != "no") 3271.28SyamtSUBDIR+= dm 3281.23Sagc.endif 3291.23Sagc 3301.39Sdarran.if (${MKDTRACE} != "no") 3311.116SchsSUBDIR+= cyclic 3321.39SdarranSUBDIR+= dtrace 3331.39Sdarran.endif 3341.39Sdarran 3351.39Sdarran# we need solaris for the dtrace and zfs modules 3361.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 3371.39SdarranSUBDIR+= solaris 3381.39Sdarran.endif 3391.39Sdarran 3401.34Shaad.if (${MKZFS} != "no") 3411.34ShaadSUBDIR+= zfs 3421.34Shaad.endif 3431.34Shaad 3441.73Smrg.if (${MKCOMPATMODULES} != "no") 3451.73SmrgSUBDIR+= arch 3461.73Smrg.endif 3471.73Smrg 3481.84Sjmcneill# 3491.84Sjmcneill# DTV modules 3501.84Sjmcneill# 3511.84SjmcneillSUBDIR+= dtv 3521.84SjmcneillSUBDIR+= dtv_math 3531.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 3541.84Sjmcneill# tuners/demods 3551.84SjmcneillSUBDIR+= au8522 3561.84SjmcneillSUBDIR+= cx24227 3571.84SjmcneillSUBDIR+= lg3303 3581.84SjmcneillSUBDIR+= mt2131 3591.84SjmcneillSUBDIR+= nxt2k 3601.84SjmcneillSUBDIR+= tvpll 3611.84SjmcneillSUBDIR+= xc3028 3621.84SjmcneillSUBDIR+= xc5k 3631.91SjruohoSUBDIR+= zl10353 3641.84Sjmcneill# hardware drivers 3651.84SjmcneillSUBDIR+= auvitek 3661.84SjmcneillSUBDIR+= coram 3671.84SjmcneillSUBDIR+= cxdtv 3681.84SjmcneillSUBDIR+= emdtv 3691.84Sjmcneill.endif 3701.84Sjmcneill 3711.98Sriz.if (${MKISCSI} != "no") 3721.98SrizSUBDIR+= iscsi 3731.98Sriz.endif 3741.98Sriz 3751.179Spgoyette# For now, all of these are disabled, pending resolution of how to deal 3761.179Spgoyette# with attachment-specific modules and bus-specific modules (as opposed 3771.179Spgoyette# to machine- or architecture-specific modules) 3781.179Spgoyette 3791.179Spgoyette.if 0 3801.179SpgoyetteSUBDIR+= aac 3811.179SpgoyetteSUBDIR+= amr 3821.179SpgoyetteSUBDIR+= ataraid 3831.179SpgoyetteSUBDIR+= cac 3841.179SpgoyetteSUBDIR+= cac_eisa 3851.179SpgoyetteSUBDIR+= cac_pci 3861.179SpgoyetteSUBDIR+= if_vioif 3871.179SpgoyetteSUBDIR+= ld 3881.179SpgoyetteSUBDIR+= ld_aac 3891.179SpgoyetteSUBDIR+= ld_amr 3901.179SpgoyetteSUBDIR+= ld_ataraid 3911.179SpgoyetteSUBDIR+= ld_cac 3921.179SpgoyetteSUBDIR+= ld_icp 3931.179SpgoyetteSUBDIR+= ld_mlx 3941.179SpgoyetteSUBDIR+= ld_sdmmc 3951.179SpgoyetteSUBDIR+= ld_twa 3961.179SpgoyetteSUBDIR+= ld_twe 3971.179SpgoyetteSUBDIR+= ld_virtio 3981.179SpgoyetteSUBDIR+= mlx 3991.179SpgoyetteSUBDIR+= mlx_eisa 4001.179SpgoyetteSUBDIR+= mlx_pci 4011.179SpgoyetteSUBDIR+= ld_nvme 4021.179SpgoyetteSUBDIR+= nvme 4031.179SpgoyetteSUBDIR+= twa 4041.179SpgoyetteSUBDIR+= twe 4051.179SpgoyetteSUBDIR+= viomb 4061.179SpgoyetteSUBDIR+= virtio 4071.179Spgoyette.endif 4081.179Spgoyette 4091.154SpgoyetteSUBDIR+= examples # build these regularly to avoid bit-rot 4101.154Spgoyette 4111.1Sad.include <bsd.subdir.mk> 412