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