Makefile revision 1.151
1# $NetBSD: Makefile,v 1.151 2015/05/09 14:19:13 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_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+= suser 99SUBDIR+= swcrypto 100SUBDIR+= swsensor 101SUBDIR+= swwdog 102SUBDIR+= tmpfs 103SUBDIR+= uatp 104SUBDIR+= udf 105SUBDIR+= umap 106SUBDIR+= union 107SUBDIR+= usbverbose 108SUBDIR+= vcoda 109SUBDIR+= v7fs 110SUBDIR+= vnd 111SUBDIR+= zlib 112SUBDIR+= tprof 113.if (defined(NOTYET)) 114SUBDIR+= hifn # Builds on architectures with PCI bus 115SUBDIR+= unionfs 116.endif 117.if ${MKBINUTILS} != "no" 118SUBDIR+= xldscripts 119.endif 120 121# Machine dependent section 122.if ${MACHINE_ARCH} == "i386" || \ 123 ${MACHINE_CPU} == "m68k" 124SUBDIR+= exec_aout 125.endif 126 127.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64" 128SUBDIR+= exec_elf32 129.endif 130 131.if ${MACHINE_CPU} == "aarch64" || \ 132 ${MACHINE_ARCH} == "alpha" || \ 133 ${MACHINE_ARCH} == "sparc64" || \ 134 ${MACHINE_ARCH} == "x86_64" 135SUBDIR+= exec_elf64 136.endif 137 138.if ${MACHINE_ARCH} == "i386" || \ 139 ${MACHINE_ARCH} == "x86_64" 140SUBDIR+= amdtemp 141SUBDIR+= coretemp 142SUBDIR+= est 143SUBDIR+= hdafg 144SUBDIR+= hdaudio 145SUBDIR+= hdaudio_pci 146SUBDIR+= hdaudioverbose 147SUBDIR+= hpet 148SUBDIR+= odcm 149SUBDIR+= powernow 150SUBDIR+= tco 151SUBDIR+= tprof_pmi 152SUBDIR+= tprof_amdpmi 153SUBDIR+= vmt 154.endif 155 156.if ${MACHINE_ARCH} == "i386" || \ 157 ${MACHINE_ARCH} == "x86_64" 158SUBDIR+= ubsec # Builds on architectures with PCI bus 159.endif 160 161.if ${MKSLJIT} != "no" 162# No modules for arm, mips and powerpc yet. 163.if ${MACHINE_ARCH} == "i386" || \ 164 ${MACHINE_ARCH} == "x86_64" || \ 165 ${MACHINE_ARCH} == "sparc" 166SUBDIR+= bpfjit 167SUBDIR+= sljit 168.endif 169.endif 170 171# 172# ACPI modules 173# 174.if ${MACHINE_ARCH} == "i386" || \ 175 ${MACHINE_ARCH} == "ia64" || \ 176 ${MACHINE_ARCH} == "x86_64" 177SUBDIR+= acpiverbose 178.endif 179 180.if ${MACHINE_ARCH} == "i386" || \ 181 ${MACHINE_ARCH} == "x86_64" 182SUBDIR+= acpiacad 183SUBDIR+= acpibat 184SUBDIR+= acpibut 185SUBDIR+= acpicpu 186SUBDIR+= acpidalb 187SUBDIR+= acpifan 188SUBDIR+= acpilid 189SUBDIR+= acpipmtr 190SUBDIR+= acpitz 191SUBDIR+= acpivga 192SUBDIR+= acpiwdrt 193SUBDIR+= acpiwmi 194SUBDIR+= aibs 195SUBDIR+= asus 196SUBDIR+= fujbp 197SUBDIR+= fujhk 198SUBDIR+= hpacel 199SUBDIR+= hpqlb 200SUBDIR+= thinkpad 201SUBDIR+= wmidell 202SUBDIR+= wmieeepc 203SUBDIR+= wmihp 204SUBDIR+= wmimsi 205.endif 206 207.if ${MACHINE_CPU} == "arm" || !empty(MACHINE_ARCH:Mmips64*) 208SUBDIR+= compat_netbsd32 209.endif 210 211.if ${MACHINE_ARCH} == "x86_64" 212SUBDIR+= compat_linux32 213SUBDIR+= compat_netbsd32 214.endif 215 216.if ${MACHINE_ARCH} == "i386" 217SUBDIR+= ati_pcigart 218SUBDIR+= compat_freebsd 219SUBDIR+= compat_ibcs2 220SUBDIR+= compat_svr4 221SUBDIR+= mach64drm 222SUBDIR+= mgadrm 223SUBDIR+= nsclpcsio 224SUBDIR+= padlock 225SUBDIR+= r128drm 226SUBDIR+= radeondrm 227SUBDIR+= savagedrm 228SUBDIR+= sisdrm 229SUBDIR+= tdfxdrm 230SUBDIR+= viac7temp 231SUBDIR+= viadrm 232SUBDIR+= viadrmums 233.endif 234 235.if ${MACHINE_ARCH} == "i386" || \ 236 ${MACHINE_ARCH} == "x86_64" 237SUBDIR+= azalia 238SUBDIR+= compat_linux 239SUBDIR+= drm 240SUBDIR+= drmkms 241SUBDIR+= drmkms_linux 242SUBDIR+= drmkms_pci 243SUBDIR+= i915drm 244SUBDIR+= i915drmkms 245SUBDIR+= pad 246# 247# ISA modules 248# 249SUBDIR+= aps 250SUBDIR+= finsio 251SUBDIR+= itesio 252SUBDIR+= lm 253SUBDIR+= lm_isa 254SUBDIR+= lm_isa_common 255SUBDIR+= lm_wbsio 256SUBDIR+= wbsio 257.endif 258 259.if ${MACHINE_CPU} == "m68k" 260SUBDIR+= compat_aoutm68k 261#SUBDIR+= compat_linux 262#SUBDIR+= compat_sunos 263#SUBDIR+= compat_svr4 264.endif 265 266.if ${MACHINE_ARCH} == "i386" || \ 267 ${MACHINE_ARCH} == "x86_64" || \ 268 ${MACHINE_ARCH} == "sparc64" 269SUBDIR+= pwdog 270.endif 271 272.include <bsd.own.mk> 273 274# 275# NetBSD/usermode support 276# 277.if ${MACHINE_ARCH} == "i386" || \ 278 ${MACHINE_ARCH} == "x86_64" 279SUBDIR+= ../arch/usermode/modules/syscallemu 280.endif 281 282# we need our device mapper for LVM 283.if (${MKLVM} != "no") 284SUBDIR+= dm 285.endif 286 287.if (${MKDTRACE} != "no") 288SUBDIR+= cyclic 289SUBDIR+= dtrace 290.endif 291 292# we need solaris for the dtrace and zfs modules 293.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 294SUBDIR+= solaris 295.endif 296 297.if (${MKZFS} != "no") 298SUBDIR+= zfs 299.endif 300 301.if (${MKCOMPATMODULES} != "no") 302SUBDIR+= arch 303.endif 304 305# 306# DTV modules 307# 308SUBDIR+= dtv 309SUBDIR+= dtv_math 310.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 311# tuners/demods 312SUBDIR+= au8522 313SUBDIR+= cx24227 314SUBDIR+= lg3303 315SUBDIR+= mt2131 316SUBDIR+= nxt2k 317SUBDIR+= tvpll 318SUBDIR+= xc3028 319SUBDIR+= xc5k 320SUBDIR+= zl10353 321# hardware drivers 322SUBDIR+= auvitek 323SUBDIR+= coram 324SUBDIR+= cxdtv 325SUBDIR+= emdtv 326.endif 327 328.if (${MKISCSI} != "no") 329SUBDIR+= iscsi 330.endif 331 332.include <bsd.subdir.mk> 333