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