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