Makefile revision 1.182
1# $NetBSD: Makefile,v 1.182 2016/11/02 00:12:00 pgoyette Exp $ 2 3.include <bsd.own.mk> 4 5# For all platforms 6 7SUBDIR= accf_dataready 8SUBDIR+= accf_httpready 9SUBDIR+= adosfs 10SUBDIR+= aio 11SUBDIR+= blowfish 12SUBDIR+= bpf 13SUBDIR+= bpf_filter 14SUBDIR+= camellia 15SUBDIR+= cast128 16SUBDIR+= ccd 17SUBDIR+= cd9660 18SUBDIR+= cgd 19SUBDIR+= chfs 20SUBDIR+= clockctl 21SUBDIR+= crypto 22SUBDIR+= coda 23SUBDIR+= coda5 24SUBDIR+= compat 25SUBDIR+= compat_ossaudio 26SUBDIR+= coredump 27SUBDIR+= dbcool 28SUBDIR+= des 29SUBDIR+= dk_subr 30SUBDIR+= drvctl 31SUBDIR+= efs 32SUBDIR+= ext2fs 33SUBDIR+= exec_script 34SUBDIR+= fdesc 35SUBDIR+= ffs 36SUBDIR+= filecore 37SUBDIR+= filemon 38SUBDIR+= flash 39SUBDIR+= fss 40SUBDIR+= gpio 41SUBDIR+= gpioiic 42SUBDIR+= gpioow 43SUBDIR+= gpiosim 44SUBDIR+= hfs 45SUBDIR+= hythygtemp 46SUBDIR+= i2cexec 47SUBDIR+= i2c_bitbang 48SUBDIR+= if_agr 49SUBDIR+= if_axe 50SUBDIR+= if_axen 51SUBDIR+= if_faith 52SUBDIR+= if_gif 53SUBDIR+= if_gre 54SUBDIR+= if_loop 55SUBDIR+= if_mpls 56SUBDIR+= if_npflog 57SUBDIR+= if_ppp 58SUBDIR+= if_pppoe 59SUBDIR+= if_sl 60SUBDIR+= if_smsc 61SUBDIR+= if_srt 62SUBDIR+= if_stf 63SUBDIR+= if_strip 64SUBDIR+= if_tun tun 65SUBDIR+= if_vlan 66SUBDIR+= iic 67SUBDIR+= ipl 68SUBDIR+= kernfs 69SUBDIR+= layerfs 70SUBDIR+= lfs 71SUBDIR+= lua 72SUBDIR+= luasystm 73SUBDIR+= luapmf 74SUBDIR+= mfs 75SUBDIR+= miiverbose 76SUBDIR+= miniroot 77SUBDIR+= mqueue 78SUBDIR+= msdos 79SUBDIR+= nand 80SUBDIR+= nandemulator 81SUBDIR+= nfs 82SUBDIR+= nfsserver 83SUBDIR+= nilfs 84SUBDIR+= npf 85SUBDIR+= npf_alg_icmp 86SUBDIR+= npf_ext_log 87SUBDIR+= npf_ext_normalize 88SUBDIR+= npf_ext_rndblock 89SUBDIR+= ntfs 90SUBDIR+= null 91SUBDIR+= onewire 92SUBDIR+= opencrypto 93SUBDIR+= overlay 94SUBDIR+= pciverbose 95SUBDIR+= pf 96SUBDIR+= ppp_bsdcomp 97SUBDIR+= ppp_deflate 98SUBDIR+= procfs 99SUBDIR+= ptrace 100SUBDIR+= ptrace_common 101SUBDIR+= ptyfs 102SUBDIR+= puffs 103SUBDIR+= putter 104SUBDIR+= raid 105SUBDIR+= scsiverbose 106SUBDIR+= sdtemp 107SUBDIR+= secmodel_bsd44 108SUBDIR+= secmodel_extensions 109SUBDIR+= secmodel_overlay 110SUBDIR+= securelevel 111SUBDIR+= skipjack 112SUBDIR+= slcompress 113SUBDIR+= smbfs 114SUBDIR+= spdmem 115SUBDIR+= sppp_subr 116SUBDIR+= sysmon 117SUBDIR+= sysmon_envsys 118SUBDIR+= sysmon_power 119SUBDIR+= sysmon_taskq 120SUBDIR+= sysmon_wdog 121SUBDIR+= sysvbfs 122SUBDIR+= sysv_ipc 123SUBDIR+= suser 124SUBDIR+= swcrypto 125SUBDIR+= swsensor 126SUBDIR+= swwdog 127SUBDIR+= tmpfs 128SUBDIR+= uatp 129SUBDIR+= udf 130SUBDIR+= umap 131SUBDIR+= union 132SUBDIR+= usbverbose 133SUBDIR+= vcoda 134SUBDIR+= v7fs 135SUBDIR+= vnd 136SUBDIR+= wapbl 137SUBDIR+= zlib 138SUBDIR+= tprof 139.if (defined(NOTYET)) 140SUBDIR+= hifn # Builds on architectures with PCI bus 141SUBDIR+= unionfs 142.endif 143.if ${MKBINUTILS} != "no" 144SUBDIR+= xldscripts 145.endif 146 147# Machine dependent section 148.if ${MACHINE_ARCH} == "i386" || \ 149 ${MACHINE_CPU} == "m68k" 150SUBDIR+= exec_aout 151.endif 152 153.if ${MACHINE_ARCH} != "alpha" && \ 154 ${MACHINE_CPU} != "aarch64" && \ 155 ${MACHINE_ARCH} != "ia64" 156SUBDIR+= exec_elf32 157.endif 158 159.if ${MACHINE_CPU} == "aarch64" || \ 160 ${MACHINE_ARCH} == "alpha" || \ 161 ${MACHINE_ARCH} == "ia64" || \ 162 ${MACHINE_ARCH} == "sparc64" || \ 163 ${MACHINE_ARCH} == "x86_64" 164SUBDIR+= exec_elf64 165.endif 166 167.if ${MACHINE_ARCH} == "i386" || \ 168 ${MACHINE_ARCH} == "x86_64" 169SUBDIR+= amdtemp 170SUBDIR+= coretemp 171SUBDIR+= est 172SUBDIR+= hdafg 173SUBDIR+= hdaudio 174SUBDIR+= hdaudio_pci 175SUBDIR+= hdaudioverbose 176SUBDIR+= hpet 177SUBDIR+= odcm 178SUBDIR+= powernow 179SUBDIR+= tco 180SUBDIR+= tprof_pmi 181SUBDIR+= tprof_amdpmi 182SUBDIR+= vmt 183.endif 184 185.if ${MACHINE_ARCH} == "i386" || \ 186 ${MACHINE_ARCH} == "x86_64" 187SUBDIR+= ubsec # Builds on architectures with PCI bus 188.endif 189 190.if ${MKSLJIT} != "no" 191# No modules for arm, mips and powerpc yet. 192.if ${MACHINE_ARCH} == "i386" || \ 193 ${MACHINE_ARCH} == "x86_64" || \ 194 ${MACHINE_ARCH} == "sparc" 195SUBDIR+= bpfjit 196SUBDIR+= sljit 197.endif 198.endif 199 200# 201# ACPI modules 202# 203.if ${MACHINE_ARCH} == "i386" || \ 204 ${MACHINE_ARCH} == "ia64" || \ 205 ${MACHINE_ARCH} == "x86_64" 206SUBDIR+= acpiverbose 207.endif 208 209.if ${MACHINE_ARCH} == "i386" || \ 210 ${MACHINE_ARCH} == "x86_64" 211SUBDIR+= acpiacad 212SUBDIR+= acpibat 213SUBDIR+= acpibut 214SUBDIR+= acpicpu 215SUBDIR+= acpidalb 216SUBDIR+= acpifan 217SUBDIR+= acpilid 218SUBDIR+= acpipmtr 219SUBDIR+= acpitz 220SUBDIR+= acpivga 221SUBDIR+= acpiwdrt 222SUBDIR+= acpiwmi 223SUBDIR+= aibs 224SUBDIR+= asus 225SUBDIR+= fujbp 226SUBDIR+= fujhk 227SUBDIR+= hpacel 228SUBDIR+= hpqlb 229SUBDIR+= thinkpad 230SUBDIR+= wmidell 231SUBDIR+= wmieeepc 232SUBDIR+= wmihp 233SUBDIR+= wmimsi 234.endif 235 236.if ${MACHINE_CPU} == "arm" \ 237 || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 238SUBDIR+= compat_netbsd32 239SUBDIR+= compat_netbsd32_mqueue 240SUBDIR+= compat_netbsd32_nfssrv 241SUBDIR+= compat_netbsd32_ptrace 242SUBDIR+= compat_netbsd32_sysvipc 243.endif 244 245.if ${MACHINE_ARCH} == "x86_64" 246SUBDIR+= compat_linux32 247SUBDIR+= compat_netbsd32 248SUBDIR+= compat_netbsd32_mqueue 249SUBDIR+= compat_netbsd32_nfssrv 250SUBDIR+= compat_netbsd32_ptrace 251SUBDIR+= compat_netbsd32_sysvipc 252.endif 253 254.if ${MACHINE_ARCH} == "i386" 255SUBDIR+= ati_pcigart 256SUBDIR+= compat_freebsd 257SUBDIR+= compat_ibcs2 258SUBDIR+= compat_svr4 259SUBDIR+= mach64drm 260SUBDIR+= mgadrm 261SUBDIR+= nsclpcsio 262SUBDIR+= padlock 263SUBDIR+= r128drm 264SUBDIR+= radeondrm 265SUBDIR+= savagedrm 266SUBDIR+= sisdrm 267SUBDIR+= tdfxdrm 268SUBDIR+= viac7temp 269SUBDIR+= viadrm 270SUBDIR+= viadrmums 271.endif 272 273.if ${MACHINE_ARCH} == "i386" || \ 274 ${MACHINE_ARCH} == "x86_64" 275SUBDIR+= azalia 276SUBDIR+= compat_linux 277SUBDIR+= drm 278SUBDIR+= drmkms 279SUBDIR+= drmkms_linux 280SUBDIR+= drmkms_pci 281SUBDIR+= i915drm 282SUBDIR+= i915drmkms 283SUBDIR+= pad 284# 285# ISA modules 286# 287SUBDIR+= aps 288SUBDIR+= finsio 289SUBDIR+= itesio 290SUBDIR+= lm 291SUBDIR+= lm_isa 292SUBDIR+= lm_isa_common 293SUBDIR+= lm_wbsio 294SUBDIR+= wbsio 295.endif 296 297.if ${MACHINE_CPU} == "m68k" 298SUBDIR+= compat_aoutm68k 299#SUBDIR+= compat_linux 300#SUBDIR+= compat_sunos 301#SUBDIR+= compat_svr4 302.endif 303 304.if ${MACHINE_ARCH} == "i386" || \ 305 ${MACHINE_ARCH} == "x86_64" || \ 306 ${MACHINE_ARCH} == "sparc64" 307SUBDIR+= pwdog 308.endif 309 310.include <bsd.own.mk> 311 312# 313# NetBSD/usermode support 314# 315.if ${MACHINE_ARCH} == "i386" || \ 316 ${MACHINE_ARCH} == "x86_64" 317SUBDIR+= ../arch/usermode/modules/syscallemu 318.endif 319 320# we need our device mapper for LVM 321.if (${MKLVM} != "no") 322SUBDIR+= dm 323.endif 324 325.if (${MKDTRACE} != "no") 326SUBDIR+= cyclic 327SUBDIR+= dtrace 328.endif 329 330# we need solaris for the dtrace and zfs modules 331.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 332SUBDIR+= solaris 333.endif 334 335.if (${MKZFS} != "no") 336SUBDIR+= zfs 337.endif 338 339.if (${MKCOMPATMODULES} != "no") 340SUBDIR+= arch 341.endif 342 343# 344# DTV modules 345# 346SUBDIR+= dtv 347SUBDIR+= dtv_math 348.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 349# tuners/demods 350SUBDIR+= au8522 351SUBDIR+= cx24227 352SUBDIR+= lg3303 353SUBDIR+= mt2131 354SUBDIR+= nxt2k 355SUBDIR+= tvpll 356SUBDIR+= xc3028 357SUBDIR+= xc5k 358SUBDIR+= zl10353 359# hardware drivers 360SUBDIR+= auvitek 361SUBDIR+= coram 362SUBDIR+= cxdtv 363SUBDIR+= emdtv 364SUBDIR+= spkr 365.endif 366 367.if (${MKISCSI} != "no") 368SUBDIR+= iscsi 369.endif 370 371# For now, all of these are disabled, pending resolution of how to deal 372# with attachment-specific modules and bus-specific modules (as opposed 373# to machine- or architecture-specific modules) 374 375.if 0 376SUBDIR+= aac 377SUBDIR+= amr 378SUBDIR+= ataraid 379SUBDIR+= cac 380SUBDIR+= cac_eisa 381SUBDIR+= cac_pci 382SUBDIR+= if_vioif 383SUBDIR+= ld 384SUBDIR+= ld_aac 385SUBDIR+= ld_amr 386SUBDIR+= ld_ataraid 387SUBDIR+= ld_cac 388SUBDIR+= ld_icp 389SUBDIR+= ld_mlx 390SUBDIR+= ld_sdmmc 391SUBDIR+= ld_twa 392SUBDIR+= ld_twe 393SUBDIR+= ld_virtio 394SUBDIR+= mlx 395SUBDIR+= mlx_eisa 396SUBDIR+= mlx_pci 397SUBDIR+= ld_nvme 398SUBDIR+= nvme 399SUBDIR+= twa 400SUBDIR+= twe 401SUBDIR+= viomb 402SUBDIR+= virtio 403.endif 404 405SUBDIR+= examples # build these regularly to avoid bit-rot 406 407.include <bsd.subdir.mk> 408