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