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