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