Makefile revision 1.161
1# $NetBSD: Makefile,v 1.161 2015/12/03 02:51:01 pgoyette 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_ossaudio 24SUBDIR+= coredump 25SUBDIR+= dbcool 26SUBDIR+= des 27SUBDIR+= dk_subr 28SUBDIR+= efs 29SUBDIR+= ext2fs 30SUBDIR+= exec_script 31SUBDIR+= fdesc 32SUBDIR+= ffs 33SUBDIR+= filecore 34SUBDIR+= filemon 35SUBDIR+= flash 36SUBDIR+= fss 37SUBDIR+= gpio 38SUBDIR+= gpioiic 39SUBDIR+= gpioow 40SUBDIR+= gpiosim 41SUBDIR+= hfs 42SUBDIR+= hythygtemp 43SUBDIR+= i2cexec 44SUBDIR+= if_axe 45SUBDIR+= if_axen 46SUBDIR+= if_npflog 47SUBDIR+= if_smsc 48SUBDIR+= iic 49SUBDIR+= kernfs 50SUBDIR+= layerfs 51SUBDIR+= lfs 52SUBDIR+= lua 53SUBDIR+= luasystm 54SUBDIR+= luapmf 55SUBDIR+= mfs 56SUBDIR+= miiverbose 57SUBDIR+= miniroot 58SUBDIR+= mqueue 59SUBDIR+= msdos 60SUBDIR+= nand 61SUBDIR+= nandemulator 62SUBDIR+= nfs 63SUBDIR+= nfsserver 64SUBDIR+= nilfs 65SUBDIR+= npf 66SUBDIR+= npf_alg_icmp 67SUBDIR+= npf_ext_log 68SUBDIR+= npf_ext_normalize 69SUBDIR+= npf_ext_rndblock 70SUBDIR+= ntfs 71SUBDIR+= null 72SUBDIR+= onewire 73SUBDIR+= opencrypto 74SUBDIR+= overlay 75SUBDIR+= pciverbose 76SUBDIR+= pf 77SUBDIR+= ppp_bsdcomp 78SUBDIR+= ppp_deflate 79SUBDIR+= procfs 80SUBDIR+= ptyfs 81SUBDIR+= puffs 82SUBDIR+= putter 83SUBDIR+= scsiverbose 84SUBDIR+= sdtemp 85SUBDIR+= secmodel_bsd44 86SUBDIR+= secmodel_extensions 87SUBDIR+= secmodel_overlay 88SUBDIR+= securelevel 89SUBDIR+= skipjack 90SUBDIR+= smbfs 91SUBDIR+= spdmem 92SUBDIR+= sysmon 93SUBDIR+= sysmon_envsys 94SUBDIR+= sysmon_power 95SUBDIR+= sysmon_taskq 96SUBDIR+= sysmon_wdog 97SUBDIR+= sysvbfs 98SUBDIR+= sysv_ipc 99SUBDIR+= suser 100SUBDIR+= swcrypto 101SUBDIR+= swsensor 102SUBDIR+= swwdog 103SUBDIR+= tmpfs 104SUBDIR+= uatp 105SUBDIR+= udf 106SUBDIR+= umap 107SUBDIR+= union 108SUBDIR+= usbverbose 109SUBDIR+= vcoda 110SUBDIR+= v7fs 111SUBDIR+= vnd 112SUBDIR+= wapbl 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 212SUBDIR+= compat_netbsd32_nfssrv 213SUBDIR+= compat_netbsd32_mqueue 214.endif 215 216.if ${MACHINE_ARCH} == "x86_64" 217SUBDIR+= compat_linux32 218SUBDIR+= compat_netbsd32 219SUBDIR+= compat_netbsd32_nfssrv 220SUBDIR+= compat_netbsd32_mqueue 221.endif 222 223.if ${MACHINE_ARCH} == "i386" 224SUBDIR+= ati_pcigart 225SUBDIR+= compat_freebsd 226SUBDIR+= compat_ibcs2 227SUBDIR+= compat_svr4 228SUBDIR+= mach64drm 229SUBDIR+= mgadrm 230SUBDIR+= nsclpcsio 231SUBDIR+= padlock 232SUBDIR+= r128drm 233SUBDIR+= radeondrm 234SUBDIR+= savagedrm 235SUBDIR+= sisdrm 236SUBDIR+= tdfxdrm 237SUBDIR+= viac7temp 238SUBDIR+= viadrm 239SUBDIR+= viadrmums 240.endif 241 242.if ${MACHINE_ARCH} == "i386" || \ 243 ${MACHINE_ARCH} == "x86_64" 244SUBDIR+= azalia 245SUBDIR+= compat_linux 246SUBDIR+= drm 247SUBDIR+= drmkms 248SUBDIR+= drmkms_linux 249SUBDIR+= drmkms_pci 250SUBDIR+= i915drm 251SUBDIR+= i915drmkms 252SUBDIR+= pad 253# 254# ISA modules 255# 256SUBDIR+= aps 257SUBDIR+= finsio 258SUBDIR+= itesio 259SUBDIR+= lm 260SUBDIR+= lm_isa 261SUBDIR+= lm_isa_common 262SUBDIR+= lm_wbsio 263SUBDIR+= wbsio 264.endif 265 266.if ${MACHINE_CPU} == "m68k" 267SUBDIR+= compat_aoutm68k 268#SUBDIR+= compat_linux 269#SUBDIR+= compat_sunos 270#SUBDIR+= compat_svr4 271.endif 272 273.if ${MACHINE_ARCH} == "i386" || \ 274 ${MACHINE_ARCH} == "x86_64" || \ 275 ${MACHINE_ARCH} == "sparc64" 276SUBDIR+= pwdog 277.endif 278 279.include <bsd.own.mk> 280 281# 282# NetBSD/usermode support 283# 284.if ${MACHINE_ARCH} == "i386" || \ 285 ${MACHINE_ARCH} == "x86_64" 286SUBDIR+= ../arch/usermode/modules/syscallemu 287.endif 288 289# we need our device mapper for LVM 290.if (${MKLVM} != "no") 291SUBDIR+= dm 292.endif 293 294.if (${MKDTRACE} != "no") 295SUBDIR+= cyclic 296SUBDIR+= dtrace 297.endif 298 299# we need solaris for the dtrace and zfs modules 300.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 301SUBDIR+= solaris 302.endif 303 304.if (${MKZFS} != "no") 305SUBDIR+= zfs 306.endif 307 308.if (${MKCOMPATMODULES} != "no") 309SUBDIR+= arch 310.endif 311 312# 313# DTV modules 314# 315SUBDIR+= dtv 316SUBDIR+= dtv_math 317.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 318# tuners/demods 319SUBDIR+= au8522 320SUBDIR+= cx24227 321SUBDIR+= lg3303 322SUBDIR+= mt2131 323SUBDIR+= nxt2k 324SUBDIR+= tvpll 325SUBDIR+= xc3028 326SUBDIR+= xc5k 327SUBDIR+= zl10353 328# hardware drivers 329SUBDIR+= auvitek 330SUBDIR+= coram 331SUBDIR+= cxdtv 332SUBDIR+= emdtv 333SUBDIR+= spkr 334.endif 335 336.if (${MKISCSI} != "no") 337SUBDIR+= iscsi 338.endif 339 340SUBDIR+= examples # build these regularly to avoid bit-rot 341 342.include <bsd.subdir.mk> 343