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