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