1 1.169 scole # $NetBSD: Makefile,v 1.169 2016/08/05 17:12:13 scole Exp $ 2 1.37 dyoung 3 1.37 dyoung .include <bsd.own.mk> 4 1.15 ad 5 1.15 ad # For all platforms 6 1.1 ad 7 1.37 dyoung SUBDIR= accf_dataready 8 1.16 ad SUBDIR+= accf_httpready 9 1.15 ad SUBDIR+= adosfs 10 1.14 ad SUBDIR+= aio 11 1.133 pgoyette SUBDIR+= blowfish 12 1.38 pooka SUBDIR+= bpf 13 1.166 pgoyette SUBDIR+= bpf_filter 14 1.133 pgoyette SUBDIR+= camellia 15 1.133 pgoyette SUBDIR+= cast128 16 1.132 pgoyette SUBDIR+= ccd 17 1.7 rumble SUBDIR+= cd9660 18 1.129 pgoyette SUBDIR+= cgd 19 1.132 pgoyette SUBDIR+= chfs 20 1.163 pgoyette SUBDIR+= clockctl 21 1.134 pgoyette SUBDIR+= crypto 22 1.7 rumble SUBDIR+= coda 23 1.7 rumble SUBDIR+= coda5 24 1.15 ad SUBDIR+= compat 25 1.15 ad SUBDIR+= compat_ossaudio 26 1.15 ad SUBDIR+= coredump 27 1.104 pgoyette SUBDIR+= dbcool 28 1.133 pgoyette SUBDIR+= des 29 1.129 pgoyette SUBDIR+= dk_subr 30 1.164 pgoyette SUBDIR+= drvctl 31 1.7 rumble SUBDIR+= efs 32 1.7 rumble SUBDIR+= ext2fs 33 1.15 ad SUBDIR+= exec_script 34 1.7 rumble SUBDIR+= fdesc 35 1.7 rumble SUBDIR+= ffs 36 1.18 ad SUBDIR+= filecore 37 1.93 sjg SUBDIR+= filemon 38 1.68 ahoka SUBDIR+= flash 39 1.15 ad SUBDIR+= fss 40 1.89 mbalmer SUBDIR+= gpio 41 1.94 mbalmer SUBDIR+= gpioiic 42 1.92 mbalmer SUBDIR+= gpioow 43 1.89 mbalmer SUBDIR+= gpiosim 44 1.7 rumble SUBDIR+= hfs 45 1.136 kardel SUBDIR+= hythygtemp 46 1.143 jmcneill SUBDIR+= i2cexec 47 1.166 pgoyette SUBDIR+= i2c_bitbang 48 1.105 pgoyette SUBDIR+= if_axe 49 1.120 nonaka SUBDIR+= if_axen 50 1.118 christos SUBDIR+= if_npflog 51 1.124 skrll SUBDIR+= if_smsc 52 1.94 mbalmer SUBDIR+= iic 53 1.167 pgoyette SUBDIR+= ipl 54 1.7 rumble SUBDIR+= kernfs 55 1.22 ad SUBDIR+= layerfs 56 1.7 rumble SUBDIR+= lfs 57 1.121 mbalmer SUBDIR+= lua 58 1.128 lneto SUBDIR+= luasystm 59 1.123 mbalmer SUBDIR+= luapmf 60 1.7 rumble SUBDIR+= mfs 61 1.45 pgoyette SUBDIR+= miiverbose 62 1.45 pgoyette SUBDIR+= miniroot 63 1.31 rmind SUBDIR+= mqueue 64 1.18 ad SUBDIR+= msdos 65 1.68 ahoka SUBDIR+= nand 66 1.68 ahoka SUBDIR+= nandemulator 67 1.15 ad SUBDIR+= nfs 68 1.15 ad SUBDIR+= nfsserver 69 1.30 reinoud SUBDIR+= nilfs 70 1.96 tron SUBDIR+= npf 71 1.97 tron SUBDIR+= npf_alg_icmp 72 1.111 rmind SUBDIR+= npf_ext_log 73 1.119 christos SUBDIR+= npf_ext_normalize 74 1.117 rmind SUBDIR+= npf_ext_rndblock 75 1.7 rumble SUBDIR+= ntfs 76 1.18 ad SUBDIR+= null 77 1.92 mbalmer SUBDIR+= onewire 78 1.134 pgoyette SUBDIR+= opencrypto 79 1.7 rumble SUBDIR+= overlay 80 1.42 pgoyette SUBDIR+= pciverbose 81 1.41 ahoka SUBDIR+= pf 82 1.19 cube SUBDIR+= ppp_bsdcomp 83 1.19 cube SUBDIR+= ppp_deflate 84 1.7 rumble SUBDIR+= procfs 85 1.7 rumble SUBDIR+= ptyfs 86 1.7 rumble SUBDIR+= puffs 87 1.15 ad SUBDIR+= putter 88 1.165 pgoyette SUBDIR+= raid 89 1.44 pgoyette SUBDIR+= scsiverbose 90 1.103 pgoyette SUBDIR+= sdtemp 91 1.33 elad SUBDIR+= secmodel_bsd44 92 1.100 jym SUBDIR+= secmodel_extensions 93 1.33 elad SUBDIR+= secmodel_overlay 94 1.33 elad SUBDIR+= securelevel 95 1.133 pgoyette SUBDIR+= skipjack 96 1.168 pgoyette SUBDIR+= slcompress 97 1.7 rumble SUBDIR+= smbfs 98 1.81 pgoyette SUBDIR+= spdmem 99 1.146 pgoyette SUBDIR+= sysmon 100 1.146 pgoyette SUBDIR+= sysmon_envsys 101 1.146 pgoyette SUBDIR+= sysmon_power 102 1.146 pgoyette SUBDIR+= sysmon_taskq 103 1.146 pgoyette SUBDIR+= sysmon_wdog 104 1.24 pooka SUBDIR+= sysvbfs 105 1.153 pgoyette SUBDIR+= sysv_ipc 106 1.33 elad SUBDIR+= suser 107 1.134 pgoyette SUBDIR+= swcrypto 108 1.48 pgoyette SUBDIR+= swsensor 109 1.145 pgoyette SUBDIR+= swwdog 110 1.7 rumble SUBDIR+= tmpfs 111 1.108 riastrad SUBDIR+= uatp 112 1.7 rumble SUBDIR+= udf 113 1.18 ad SUBDIR+= umap 114 1.7 rumble SUBDIR+= union 115 1.43 pgoyette SUBDIR+= usbverbose 116 1.106 christos SUBDIR+= vcoda 117 1.78 enami SUBDIR+= v7fs 118 1.25 haad SUBDIR+= vnd 119 1.157 pgoyette SUBDIR+= wapbl 120 1.131 pgoyette SUBDIR+= zlib 121 1.29 yamt SUBDIR+= tprof 122 1.7 rumble .if (defined(NOTYET)) 123 1.135 pgoyette SUBDIR+= hifn # Builds on architectures with PCI bus 124 1.7 rumble SUBDIR+= unionfs 125 1.7 rumble .endif 126 1.37 dyoung .if ${MKBINUTILS} != "no" 127 1.37 dyoung SUBDIR+= xldscripts 128 1.37 dyoung .endif 129 1.7 rumble 130 1.15 ad # Machine dependent section 131 1.47 tsutsui .if ${MACHINE_ARCH} == "i386" || \ 132 1.49 tsutsui ${MACHINE_CPU} == "m68k" 133 1.47 tsutsui SUBDIR+= exec_aout 134 1.47 tsutsui .endif 135 1.47 tsutsui 136 1.169 scole .if ${MACHINE_ARCH} != "alpha" && \ 137 1.169 scole ${MACHINE_CPU} != "aarch64" && \ 138 1.169 scole ${MACHINE_ARCH} != "ia64" 139 1.17 martin SUBDIR+= exec_elf32 140 1.17 martin .endif 141 1.15 ad 142 1.139 matt .if ${MACHINE_CPU} == "aarch64" || \ 143 1.139 matt ${MACHINE_ARCH} == "alpha" || \ 144 1.169 scole ${MACHINE_ARCH} == "ia64" || \ 145 1.21 tsutsui ${MACHINE_ARCH} == "sparc64" || \ 146 1.21 tsutsui ${MACHINE_ARCH} == "x86_64" 147 1.20 he SUBDIR+= exec_elf64 148 1.20 he .endif 149 1.20 he 150 1.29 yamt .if ${MACHINE_ARCH} == "i386" || \ 151 1.29 yamt ${MACHINE_ARCH} == "x86_64" 152 1.71 jruoho SUBDIR+= amdtemp 153 1.64 jruoho SUBDIR+= coretemp 154 1.65 jruoho SUBDIR+= est 155 1.110 martin SUBDIR+= hdafg 156 1.110 martin SUBDIR+= hdaudio 157 1.144 jmcneill SUBDIR+= hdaudio_pci 158 1.141 christos SUBDIR+= hdaudioverbose 159 1.72 jruoho SUBDIR+= hpet 160 1.69 jruoho SUBDIR+= odcm 161 1.66 jruoho SUBDIR+= powernow 162 1.150 pgoyette SUBDIR+= tco 163 1.29 yamt SUBDIR+= tprof_pmi 164 1.70 yamt SUBDIR+= tprof_amdpmi 165 1.95 jmcneill SUBDIR+= vmt 166 1.29 yamt .endif 167 1.29 yamt 168 1.140 bad .if ${MACHINE_ARCH} == "i386" || \ 169 1.137 bad ${MACHINE_ARCH} == "x86_64" 170 1.137 bad SUBDIR+= ubsec # Builds on architectures with PCI bus 171 1.137 bad .endif 172 1.137 bad 173 1.126 alnsn .if ${MKSLJIT} != "no" 174 1.126 alnsn # No modules for arm, mips and powerpc yet. 175 1.114 alnsn .if ${MACHINE_ARCH} == "i386" || \ 176 1.115 alnsn ${MACHINE_ARCH} == "x86_64" || \ 177 1.115 alnsn ${MACHINE_ARCH} == "sparc" 178 1.113 alnsn SUBDIR+= bpfjit 179 1.112 alnsn SUBDIR+= sljit 180 1.112 alnsn .endif 181 1.126 alnsn .endif 182 1.112 alnsn 183 1.85 jruoho # 184 1.85 jruoho # ACPI modules 185 1.85 jruoho # 186 1.46 pgoyette .if ${MACHINE_ARCH} == "i386" || \ 187 1.46 pgoyette ${MACHINE_ARCH} == "ia64" || \ 188 1.46 pgoyette ${MACHINE_ARCH} == "x86_64" 189 1.46 pgoyette SUBDIR+= acpiverbose 190 1.46 pgoyette .endif 191 1.46 pgoyette 192 1.50 jmcneill .if ${MACHINE_ARCH} == "i386" || \ 193 1.50 jmcneill ${MACHINE_ARCH} == "x86_64" 194 1.52 jruoho SUBDIR+= acpiacad 195 1.52 jruoho SUBDIR+= acpibat 196 1.52 jruoho SUBDIR+= acpibut 197 1.52 jruoho SUBDIR+= acpicpu 198 1.53 jruoho SUBDIR+= acpidalb 199 1.58 jruoho SUBDIR+= acpifan 200 1.52 jruoho SUBDIR+= acpilid 201 1.57 jruoho SUBDIR+= acpipmtr 202 1.53 jruoho SUBDIR+= acpitz 203 1.53 jruoho SUBDIR+= acpivga 204 1.86 jruoho SUBDIR+= acpiwdrt 205 1.51 jmcneill SUBDIR+= acpiwmi 206 1.53 jruoho SUBDIR+= aibs 207 1.54 jruoho SUBDIR+= asus 208 1.63 jruoho SUBDIR+= fujbp 209 1.63 jruoho SUBDIR+= fujhk 210 1.75 jruoho SUBDIR+= hpacel 211 1.54 jruoho SUBDIR+= hpqlb 212 1.52 jruoho SUBDIR+= thinkpad 213 1.50 jmcneill SUBDIR+= wmidell 214 1.83 jruoho SUBDIR+= wmieeepc 215 1.50 jmcneill SUBDIR+= wmihp 216 1.50 jmcneill SUBDIR+= wmimsi 217 1.50 jmcneill .endif 218 1.50 jmcneill 219 1.156 matt .if ${MACHINE_CPU} == "arm" \ 220 1.156 matt || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 221 1.151 matt SUBDIR+= compat_netbsd32 222 1.158 pgoyette SUBDIR+= compat_netbsd32_nfssrv 223 1.159 pgoyette SUBDIR+= compat_netbsd32_mqueue 224 1.162 pgoyette SUBDIR+= compat_netbsd32_sysvipc 225 1.151 matt .endif 226 1.151 matt 227 1.27 abs .if ${MACHINE_ARCH} == "x86_64" 228 1.15 ad SUBDIR+= compat_linux32 229 1.15 ad SUBDIR+= compat_netbsd32 230 1.158 pgoyette SUBDIR+= compat_netbsd32_nfssrv 231 1.159 pgoyette SUBDIR+= compat_netbsd32_mqueue 232 1.162 pgoyette SUBDIR+= compat_netbsd32_sysvipc 233 1.15 ad .endif 234 1.15 ad 235 1.27 abs .if ${MACHINE_ARCH} == "i386" 236 1.90 jmcneill SUBDIR+= ati_pcigart 237 1.15 ad SUBDIR+= compat_freebsd 238 1.15 ad SUBDIR+= compat_ibcs2 239 1.15 ad SUBDIR+= compat_svr4 240 1.90 jmcneill SUBDIR+= mach64drm 241 1.90 jmcneill SUBDIR+= mgadrm 242 1.76 jmcneill SUBDIR+= nsclpcsio 243 1.62 jmcneill SUBDIR+= padlock 244 1.90 jmcneill SUBDIR+= r128drm 245 1.90 jmcneill SUBDIR+= radeondrm 246 1.90 jmcneill SUBDIR+= savagedrm 247 1.90 jmcneill SUBDIR+= sisdrm 248 1.90 jmcneill SUBDIR+= tdfxdrm 249 1.67 jruoho SUBDIR+= viac7temp 250 1.90 jmcneill SUBDIR+= viadrm 251 1.149 riastrad SUBDIR+= viadrmums 252 1.15 ad .endif 253 1.15 ad 254 1.142 christos .if ${MACHINE_ARCH} == "i386" || \ 255 1.142 christos ${MACHINE_ARCH} == "x86_64" 256 1.142 christos SUBDIR+= azalia 257 1.142 christos SUBDIR+= compat_linux 258 1.142 christos SUBDIR+= drm 259 1.142 christos SUBDIR+= drmkms 260 1.142 christos SUBDIR+= drmkms_linux 261 1.142 christos SUBDIR+= drmkms_pci 262 1.142 christos SUBDIR+= i915drm 263 1.142 christos SUBDIR+= i915drmkms 264 1.142 christos SUBDIR+= pad 265 1.85 jruoho # 266 1.85 jruoho # ISA modules 267 1.85 jruoho # 268 1.59 jmcneill SUBDIR+= aps 269 1.80 jmcneill SUBDIR+= finsio 270 1.79 jmcneill SUBDIR+= itesio 271 1.101 jakllsch SUBDIR+= lm 272 1.101 jakllsch SUBDIR+= lm_isa 273 1.101 jakllsch SUBDIR+= lm_isa_common 274 1.101 jakllsch SUBDIR+= lm_wbsio 275 1.101 jakllsch SUBDIR+= wbsio 276 1.56 jmcneill .endif 277 1.56 jmcneill 278 1.49 tsutsui .if ${MACHINE_CPU} == "m68k" 279 1.47 tsutsui SUBDIR+= compat_aoutm68k 280 1.47 tsutsui #SUBDIR+= compat_linux 281 1.47 tsutsui #SUBDIR+= compat_sunos 282 1.47 tsutsui #SUBDIR+= compat_svr4 283 1.47 tsutsui .endif 284 1.47 tsutsui 285 1.88 mbalmer .if ${MACHINE_ARCH} == "i386" || \ 286 1.88 mbalmer ${MACHINE_ARCH} == "x86_64" || \ 287 1.88 mbalmer ${MACHINE_ARCH} == "sparc64" 288 1.88 mbalmer SUBDIR+= pwdog 289 1.88 mbalmer .endif 290 1.88 mbalmer 291 1.23 agc .include <bsd.own.mk> 292 1.23 agc 293 1.107 reinoud # 294 1.107 reinoud # NetBSD/usermode support 295 1.107 reinoud # 296 1.107 reinoud .if ${MACHINE_ARCH} == "i386" || \ 297 1.107 reinoud ${MACHINE_ARCH} == "x86_64" 298 1.107 reinoud SUBDIR+= ../arch/usermode/modules/syscallemu 299 1.107 reinoud .endif 300 1.107 reinoud 301 1.23 agc # we need our device mapper for LVM 302 1.23 agc .if (${MKLVM} != "no") 303 1.28 yamt SUBDIR+= dm 304 1.23 agc .endif 305 1.23 agc 306 1.39 darran .if (${MKDTRACE} != "no") 307 1.116 chs SUBDIR+= cyclic 308 1.39 darran SUBDIR+= dtrace 309 1.39 darran .endif 310 1.39 darran 311 1.39 darran # we need solaris for the dtrace and zfs modules 312 1.39 darran .if (${MKDTRACE} != "no" || ${MKZFS} != "no") 313 1.39 darran SUBDIR+= solaris 314 1.39 darran .endif 315 1.39 darran 316 1.34 haad .if (${MKZFS} != "no") 317 1.34 haad SUBDIR+= zfs 318 1.34 haad .endif 319 1.34 haad 320 1.73 mrg .if (${MKCOMPATMODULES} != "no") 321 1.73 mrg SUBDIR+= arch 322 1.73 mrg .endif 323 1.73 mrg 324 1.84 jmcneill # 325 1.84 jmcneill # DTV modules 326 1.84 jmcneill # 327 1.84 jmcneill SUBDIR+= dtv 328 1.84 jmcneill SUBDIR+= dtv_math 329 1.84 jmcneill .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 330 1.84 jmcneill # tuners/demods 331 1.84 jmcneill SUBDIR+= au8522 332 1.84 jmcneill SUBDIR+= cx24227 333 1.84 jmcneill SUBDIR+= lg3303 334 1.84 jmcneill SUBDIR+= mt2131 335 1.84 jmcneill SUBDIR+= nxt2k 336 1.84 jmcneill SUBDIR+= tvpll 337 1.84 jmcneill SUBDIR+= xc3028 338 1.84 jmcneill SUBDIR+= xc5k 339 1.91 jruoho SUBDIR+= zl10353 340 1.84 jmcneill # hardware drivers 341 1.84 jmcneill SUBDIR+= auvitek 342 1.84 jmcneill SUBDIR+= coram 343 1.84 jmcneill SUBDIR+= cxdtv 344 1.84 jmcneill SUBDIR+= emdtv 345 1.155 pgoyette SUBDIR+= spkr 346 1.84 jmcneill .endif 347 1.84 jmcneill 348 1.98 riz .if (${MKISCSI} != "no") 349 1.98 riz SUBDIR+= iscsi 350 1.98 riz .endif 351 1.98 riz 352 1.154 pgoyette SUBDIR+= examples # build these regularly to avoid bit-rot 353 1.154 pgoyette 354 1.1 ad .include <bsd.subdir.mk> 355