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