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