Makefile revision 1.156
1# $NetBSD: Makefile,v 1.156 2015/07/09 14:41:30 matt Exp $ 2 3.include <bsd.own.mk> 4 5# For all platforms 6 7SUBDIR= accf_dataready 8SUBDIR+= accf_httpready 9SUBDIR+= adosfs 10SUBDIR+= aio 11SUBDIR+= blowfish 12SUBDIR+= bpf 13SUBDIR+= camellia 14SUBDIR+= cast128 15SUBDIR+= ccd 16SUBDIR+= cd9660 17SUBDIR+= cgd 18SUBDIR+= chfs 19SUBDIR+= crypto 20SUBDIR+= coda 21SUBDIR+= coda5 22SUBDIR+= compat 23SUBDIR+= compat_sysv 24SUBDIR+= compat_ossaudio 25SUBDIR+= coredump 26SUBDIR+= dbcool 27SUBDIR+= des 28SUBDIR+= dk_subr 29SUBDIR+= efs 30SUBDIR+= ext2fs 31SUBDIR+= exec_script 32SUBDIR+= fdesc 33SUBDIR+= ffs 34SUBDIR+= filecore 35SUBDIR+= filemon 36SUBDIR+= flash 37SUBDIR+= fss 38SUBDIR+= gpio 39SUBDIR+= gpioiic 40SUBDIR+= gpioow 41SUBDIR+= gpiosim 42SUBDIR+= hfs 43SUBDIR+= hythygtemp 44SUBDIR+= i2cexec 45SUBDIR+= if_axe 46SUBDIR+= if_axen 47SUBDIR+= if_npflog 48SUBDIR+= if_smsc 49SUBDIR+= iic 50SUBDIR+= kernfs 51SUBDIR+= layerfs 52SUBDIR+= lfs 53SUBDIR+= lua 54SUBDIR+= luasystm 55SUBDIR+= luapmf 56SUBDIR+= mfs 57SUBDIR+= miiverbose 58SUBDIR+= miniroot 59SUBDIR+= mqueue 60SUBDIR+= msdos 61SUBDIR+= nand 62SUBDIR+= nandemulator 63SUBDIR+= nfs 64SUBDIR+= nfsserver 65SUBDIR+= nilfs 66SUBDIR+= npf 67SUBDIR+= npf_alg_icmp 68SUBDIR+= npf_ext_log 69SUBDIR+= npf_ext_normalize 70SUBDIR+= npf_ext_rndblock 71SUBDIR+= ntfs 72SUBDIR+= null 73SUBDIR+= onewire 74SUBDIR+= opencrypto 75SUBDIR+= overlay 76SUBDIR+= pciverbose 77SUBDIR+= pf 78SUBDIR+= ppp_bsdcomp 79SUBDIR+= ppp_deflate 80SUBDIR+= procfs 81SUBDIR+= ptyfs 82SUBDIR+= puffs 83SUBDIR+= putter 84SUBDIR+= scsiverbose 85SUBDIR+= sdtemp 86SUBDIR+= secmodel_bsd44 87SUBDIR+= secmodel_extensions 88SUBDIR+= secmodel_overlay 89SUBDIR+= securelevel 90SUBDIR+= skipjack 91SUBDIR+= smbfs 92SUBDIR+= spdmem 93SUBDIR+= sysmon 94SUBDIR+= sysmon_envsys 95SUBDIR+= sysmon_power 96SUBDIR+= sysmon_taskq 97SUBDIR+= sysmon_wdog 98SUBDIR+= sysvbfs 99SUBDIR+= sysv_ipc 100SUBDIR+= suser 101SUBDIR+= swcrypto 102SUBDIR+= swsensor 103SUBDIR+= swwdog 104SUBDIR+= tmpfs 105SUBDIR+= uatp 106SUBDIR+= udf 107SUBDIR+= umap 108SUBDIR+= union 109SUBDIR+= usbverbose 110SUBDIR+= vcoda 111SUBDIR+= v7fs 112SUBDIR+= vnd 113SUBDIR+= zlib 114SUBDIR+= tprof 115.if (defined(NOTYET)) 116SUBDIR+= hifn # Builds on architectures with PCI bus 117SUBDIR+= unionfs 118.endif 119.if ${MKBINUTILS} != "no" 120SUBDIR+= xldscripts 121.endif 122 123# Machine dependent section 124.if ${MACHINE_ARCH} == "i386" || \ 125 ${MACHINE_CPU} == "m68k" 126SUBDIR+= exec_aout 127.endif 128 129.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64" 130SUBDIR+= exec_elf32 131.endif 132 133.if ${MACHINE_CPU} == "aarch64" || \ 134 ${MACHINE_ARCH} == "alpha" || \ 135 ${MACHINE_ARCH} == "sparc64" || \ 136 ${MACHINE_ARCH} == "x86_64" 137SUBDIR+= exec_elf64 138.endif 139 140.if ${MACHINE_ARCH} == "i386" || \ 141 ${MACHINE_ARCH} == "x86_64" 142SUBDIR+= amdtemp 143SUBDIR+= coretemp 144SUBDIR+= est 145SUBDIR+= hdafg 146SUBDIR+= hdaudio 147SUBDIR+= hdaudio_pci 148SUBDIR+= hdaudioverbose 149SUBDIR+= hpet 150SUBDIR+= odcm 151SUBDIR+= powernow 152SUBDIR+= tco 153SUBDIR+= tprof_pmi 154SUBDIR+= tprof_amdpmi 155SUBDIR+= vmt 156.endif 157 158.if ${MACHINE_ARCH} == "i386" || \ 159 ${MACHINE_ARCH} == "x86_64" 160SUBDIR+= ubsec # Builds on architectures with PCI bus 161.endif 162 163.if ${MKSLJIT} != "no" 164# No modules for arm, mips and powerpc yet. 165.if ${MACHINE_ARCH} == "i386" || \ 166 ${MACHINE_ARCH} == "x86_64" || \ 167 ${MACHINE_ARCH} == "sparc" 168SUBDIR+= bpfjit 169SUBDIR+= sljit 170.endif 171.endif 172 173# 174# ACPI modules 175# 176.if ${MACHINE_ARCH} == "i386" || \ 177 ${MACHINE_ARCH} == "ia64" || \ 178 ${MACHINE_ARCH} == "x86_64" 179SUBDIR+= acpiverbose 180.endif 181 182.if ${MACHINE_ARCH} == "i386" || \ 183 ${MACHINE_ARCH} == "x86_64" 184SUBDIR+= acpiacad 185SUBDIR+= acpibat 186SUBDIR+= acpibut 187SUBDIR+= acpicpu 188SUBDIR+= acpidalb 189SUBDIR+= acpifan 190SUBDIR+= acpilid 191SUBDIR+= acpipmtr 192SUBDIR+= acpitz 193SUBDIR+= acpivga 194SUBDIR+= acpiwdrt 195SUBDIR+= acpiwmi 196SUBDIR+= aibs 197SUBDIR+= asus 198SUBDIR+= fujbp 199SUBDIR+= fujhk 200SUBDIR+= hpacel 201SUBDIR+= hpqlb 202SUBDIR+= thinkpad 203SUBDIR+= wmidell 204SUBDIR+= wmieeepc 205SUBDIR+= wmihp 206SUBDIR+= wmimsi 207.endif 208 209.if ${MACHINE_CPU} == "arm" \ 210 || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE)) 211SUBDIR+= compat_netbsd32 212.endif 213 214.if ${MACHINE_ARCH} == "x86_64" 215SUBDIR+= compat_linux32 216SUBDIR+= compat_netbsd32 217.endif 218 219.if ${MACHINE_ARCH} == "i386" 220SUBDIR+= ati_pcigart 221SUBDIR+= compat_freebsd 222SUBDIR+= compat_ibcs2 223SUBDIR+= compat_svr4 224SUBDIR+= mach64drm 225SUBDIR+= mgadrm 226SUBDIR+= nsclpcsio 227SUBDIR+= padlock 228SUBDIR+= r128drm 229SUBDIR+= radeondrm 230SUBDIR+= savagedrm 231SUBDIR+= sisdrm 232SUBDIR+= tdfxdrm 233SUBDIR+= viac7temp 234SUBDIR+= viadrm 235SUBDIR+= viadrmums 236.endif 237 238.if ${MACHINE_ARCH} == "i386" || \ 239 ${MACHINE_ARCH} == "x86_64" 240SUBDIR+= azalia 241SUBDIR+= compat_linux 242SUBDIR+= drm 243SUBDIR+= drmkms 244SUBDIR+= drmkms_linux 245SUBDIR+= drmkms_pci 246SUBDIR+= i915drm 247SUBDIR+= i915drmkms 248SUBDIR+= pad 249# 250# ISA modules 251# 252SUBDIR+= aps 253SUBDIR+= finsio 254SUBDIR+= itesio 255SUBDIR+= lm 256SUBDIR+= lm_isa 257SUBDIR+= lm_isa_common 258SUBDIR+= lm_wbsio 259SUBDIR+= wbsio 260.endif 261 262.if ${MACHINE_CPU} == "m68k" 263SUBDIR+= compat_aoutm68k 264#SUBDIR+= compat_linux 265#SUBDIR+= compat_sunos 266#SUBDIR+= compat_svr4 267.endif 268 269.if ${MACHINE_ARCH} == "i386" || \ 270 ${MACHINE_ARCH} == "x86_64" || \ 271 ${MACHINE_ARCH} == "sparc64" 272SUBDIR+= pwdog 273.endif 274 275.include <bsd.own.mk> 276 277# 278# NetBSD/usermode support 279# 280.if ${MACHINE_ARCH} == "i386" || \ 281 ${MACHINE_ARCH} == "x86_64" 282SUBDIR+= ../arch/usermode/modules/syscallemu 283.endif 284 285# we need our device mapper for LVM 286.if (${MKLVM} != "no") 287SUBDIR+= dm 288.endif 289 290.if (${MKDTRACE} != "no") 291SUBDIR+= cyclic 292SUBDIR+= dtrace 293.endif 294 295# we need solaris for the dtrace and zfs modules 296.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 297SUBDIR+= solaris 298.endif 299 300.if (${MKZFS} != "no") 301SUBDIR+= zfs 302.endif 303 304.if (${MKCOMPATMODULES} != "no") 305SUBDIR+= arch 306.endif 307 308# 309# DTV modules 310# 311SUBDIR+= dtv 312SUBDIR+= dtv_math 313.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 314# tuners/demods 315SUBDIR+= au8522 316SUBDIR+= cx24227 317SUBDIR+= lg3303 318SUBDIR+= mt2131 319SUBDIR+= nxt2k 320SUBDIR+= tvpll 321SUBDIR+= xc3028 322SUBDIR+= xc5k 323SUBDIR+= zl10353 324# hardware drivers 325SUBDIR+= auvitek 326SUBDIR+= coram 327SUBDIR+= cxdtv 328SUBDIR+= emdtv 329SUBDIR+= spkr 330.endif 331 332.if (${MKISCSI} != "no") 333SUBDIR+= iscsi 334.endif 335 336SUBDIR+= examples # build these regularly to avoid bit-rot 337 338.include <bsd.subdir.mk> 339