Makefile revision 1.194
1# $NetBSD: Makefile,v 1.194 2017/08/01 13:49:50 maxv 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+= wsbell 148SUBDIR+= zlib 149SUBDIR+= tprof 150.if (defined(NOTYET)) 151SUBDIR+= hifn # Builds on architectures with PCI bus 152SUBDIR+= unionfs 153.endif 154.if ${MKBINUTILS} != "no" 155SUBDIR+= xldscripts 156.endif 157 158# Machine dependent section 159.if ${MACHINE_ARCH} == "i386" || \ 160 ${MACHINE_CPU} == "m68k" 161SUBDIR+= exec_aout 162.endif 163 164.if ${MACHINE_ARCH} != "alpha" && \ 165 ${MACHINE_CPU} != "aarch64" && \ 166 ${MACHINE_ARCH} != "ia64" 167SUBDIR+= exec_elf32 168.endif 169 170.if ${MACHINE_CPU} == "aarch64" || \ 171 ${MACHINE_ARCH} == "alpha" || \ 172 ${MACHINE_ARCH} == "ia64" || \ 173 ${MACHINE_ARCH} == "sparc64" || \ 174 ${MACHINE_ARCH} == "x86_64" 175SUBDIR+= exec_elf64 176.endif 177 178.if ${MACHINE_ARCH} == "i386" || \ 179 ${MACHINE_ARCH} == "x86_64" 180SUBDIR+= amdtemp 181SUBDIR+= coretemp 182SUBDIR+= est 183SUBDIR+= hdafg 184SUBDIR+= hdaudio 185SUBDIR+= hdaudio_pci 186SUBDIR+= hdaudioverbose 187SUBDIR+= hpet 188SUBDIR+= odcm 189SUBDIR+= powernow 190SUBDIR+= tco 191SUBDIR+= tprof_pmi 192SUBDIR+= tprof_amdpmi 193SUBDIR+= vmt 194.endif 195 196.if ${MACHINE_ARCH} == "i386" || \ 197 ${MACHINE_ARCH} == "x86_64" 198SUBDIR+= ubsec # Builds on architectures with PCI bus 199.endif 200 201.if ${MKSLJIT} != "no" 202# No modules for arm, mips and powerpc yet. 203.if ${MACHINE_ARCH} == "i386" || \ 204 ${MACHINE_ARCH} == "x86_64" || \ 205 ${MACHINE_ARCH} == "sparc" 206SUBDIR+= bpfjit 207SUBDIR+= sljit 208.endif 209.endif 210 211# 212# ACPI modules 213# 214.if ${MACHINE_ARCH} == "i386" || \ 215 ${MACHINE_ARCH} == "ia64" || \ 216 ${MACHINE_ARCH} == "x86_64" 217SUBDIR+= acpiverbose 218.endif 219 220.if ${MACHINE_ARCH} == "i386" || \ 221 ${MACHINE_ARCH} == "x86_64" 222SUBDIR+= acpiacad 223SUBDIR+= acpibat 224SUBDIR+= acpibut 225SUBDIR+= acpicpu 226SUBDIR+= acpidalb 227SUBDIR+= acpifan 228SUBDIR+= acpilid 229SUBDIR+= acpipmtr 230SUBDIR+= acpitz 231SUBDIR+= acpivga 232SUBDIR+= acpiwdrt 233SUBDIR+= acpiwmi 234SUBDIR+= aibs 235SUBDIR+= asus 236SUBDIR+= fujbp 237SUBDIR+= fujhk 238SUBDIR+= hpacel 239SUBDIR+= hpqlb 240SUBDIR+= thinkpad 241SUBDIR+= wmidell 242SUBDIR+= wmieeepc 243SUBDIR+= wmihp 244SUBDIR+= wmimsi 245.endif 246 247.if ${MACHINE_CPU} == "arm" \ 248 || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 249SUBDIR+= compat_netbsd32 250SUBDIR+= compat_netbsd32_mqueue 251SUBDIR+= compat_netbsd32_nfssrv 252SUBDIR+= compat_netbsd32_ptrace 253SUBDIR+= compat_netbsd32_sysvipc 254.endif 255 256.if ${MACHINE_ARCH} == "x86_64" 257SUBDIR+= compat_linux32 258SUBDIR+= compat_netbsd32 259SUBDIR+= compat_netbsd32_mqueue 260SUBDIR+= compat_netbsd32_nfssrv 261SUBDIR+= compat_netbsd32_ptrace 262SUBDIR+= compat_netbsd32_sysvipc 263.endif 264 265.if ${MACHINE_ARCH} == "i386" 266SUBDIR+= ati_pcigart 267SUBDIR+= compat_freebsd 268SUBDIR+= compat_ibcs2 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