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