Makefile revision 1.137
11.1Sragge# $NetBSD: Makefile,v 1.137 2014/08/09 12:34:05 bad Exp $ 21.1Sragge 31.1Sragge.include <bsd.own.mk> 41.1Sragge 51.1Sragge# For all platforms 61.1Sragge 71.1SraggeSUBDIR= accf_dataready 81.1SraggeSUBDIR+= accf_httpready 91.1SraggeSUBDIR+= adosfs 101.1SraggeSUBDIR+= aio 111.1SraggeSUBDIR+= blowfish 121.1SraggeSUBDIR+= bpf 131.1SraggeSUBDIR+= camellia 141.1SraggeSUBDIR+= cast128 151.1SraggeSUBDIR+= ccd 161.1SraggeSUBDIR+= cd9660 171.1SraggeSUBDIR+= cgd 181.1SraggeSUBDIR+= chfs 191.1SraggeSUBDIR+= crypto 201.1SraggeSUBDIR+= coda 211.1SraggeSUBDIR+= coda5 221.1SraggeSUBDIR+= compat 231.1SraggeSUBDIR+= compat_ossaudio 241.1SraggeSUBDIR+= coredump 251.1SraggeSUBDIR+= dbcool 261.1SraggeSUBDIR+= des 271.1SraggeSUBDIR+= dk_subr 281.1SraggeSUBDIR+= efs 291.1SraggeSUBDIR+= ext2fs 301.1SraggeSUBDIR+= exec_script 311.1SraggeSUBDIR+= fdesc 321.1SraggeSUBDIR+= ffs 331.1SraggeSUBDIR+= filecore 341.1SraggeSUBDIR+= filemon 351.1SraggeSUBDIR+= flash 361.4SmattSUBDIR+= fss 371.1SraggeSUBDIR+= gpio 381.1SraggeSUBDIR+= gpioiic 391.1SraggeSUBDIR+= gpioow 401.1SraggeSUBDIR+= gpiosim 411.1SraggeSUBDIR+= hfs 421.1SraggeSUBDIR+= hythygtemp 431.1SraggeSUBDIR+= if_axe 441.1SraggeSUBDIR+= if_axen 451.1SraggeSUBDIR+= if_npflog 461.1SraggeSUBDIR+= if_smsc 471.1SraggeSUBDIR+= iic 481.1SraggeSUBDIR+= kernfs 491.1SraggeSUBDIR+= layerfs 501.1SraggeSUBDIR+= lfs 511.1SraggeSUBDIR+= lua 521.1SraggeSUBDIR+= luasystm 531.4SmattSUBDIR+= luapmf 541.4SmattSUBDIR+= mfs 551.4SmattSUBDIR+= miiverbose 561.4SmattSUBDIR+= miniroot 571.1SraggeSUBDIR+= mqueue 581.1SraggeSUBDIR+= msdos 591.1SraggeSUBDIR+= nand 601.4SmattSUBDIR+= nandemulator 611.4SmattSUBDIR+= nfs 621.4SmattSUBDIR+= nfsserver 631.1SraggeSUBDIR+= nilfs 641.1SraggeSUBDIR+= npf 651.4SmattSUBDIR+= npf_alg_icmp 661.1SraggeSUBDIR+= npf_ext_log 671.4SmattSUBDIR+= npf_ext_normalize 681.4SmattSUBDIR+= npf_ext_rndblock 691.1SraggeSUBDIR+= ntfs 701.4SmattSUBDIR+= null 711.1SraggeSUBDIR+= onewire 721.1SraggeSUBDIR+= opencrypto 731.4SmattSUBDIR+= overlay 741.1SraggeSUBDIR+= pciverbose 751.4SmattSUBDIR+= pf 761.1SraggeSUBDIR+= ppp_bsdcomp 771.4SmattSUBDIR+= ppp_deflate 781.1SraggeSUBDIR+= procfs 791.1SraggeSUBDIR+= ptyfs 801.4SmattSUBDIR+= puffs 811.1SraggeSUBDIR+= putter 821.1SraggeSUBDIR+= scsiverbose 831.1SraggeSUBDIR+= sdtemp 841.4SmattSUBDIR+= secmodel_bsd44 851.1SraggeSUBDIR+= secmodel_extensions 861.4SmattSUBDIR+= secmodel_overlay 871.1SraggeSUBDIR+= securelevel 881.1SraggeSUBDIR+= skipjack 891.4SmattSUBDIR+= smbfs 901.1SraggeSUBDIR+= spdmem 911.1SraggeSUBDIR+= sysvbfs 921.1SraggeSUBDIR+= suser 931.1SraggeSUBDIR+= swcrypto 941.1SraggeSUBDIR+= swsensor 951.4SmattSUBDIR+= tmpfs 961.1SraggeSUBDIR+= uatp 971.1SraggeSUBDIR+= udf 981.3SmattSUBDIR+= umap 991.1SraggeSUBDIR+= union 100SUBDIR+= usbverbose 101SUBDIR+= vcoda 102SUBDIR+= v7fs 103SUBDIR+= vnd 104SUBDIR+= zlib 105SUBDIR+= tprof 106.if (defined(NOTYET)) 107SUBDIR+= hifn # Builds on architectures with PCI bus 108SUBDIR+= unionfs 109.endif 110.if ${MKBINUTILS} != "no" 111SUBDIR+= xldscripts 112.endif 113 114# Machine dependent section 115.if ${MACHINE_ARCH} == "i386" || \ 116 ${MACHINE_CPU} == "m68k" 117SUBDIR+= exec_aout 118.endif 119 120.if ${MACHINE_ARCH} != "alpha" 121SUBDIR+= exec_elf32 122.endif 123 124.if ${MACHINE_ARCH} == "alpha" || \ 125 ${MACHINE_ARCH} == "sparc64" || \ 126 ${MACHINE_ARCH} == "x86_64" 127SUBDIR+= exec_elf64 128.endif 129 130.if ${MACHINE_ARCH} == "i386" || \ 131 ${MACHINE_ARCH} == "x86_64" 132SUBDIR+= amdtemp 133SUBDIR+= coretemp 134SUBDIR+= est 135SUBDIR+= hdafg 136SUBDIR+= hdaudio 137SUBDIR+= hpet 138SUBDIR+= odcm 139SUBDIR+= powernow 140SUBDIR+= tprof_pmi 141SUBDIR+= tprof_amdpmi 142SUBDIR+= vmt 143.endif 144 145.if ${MACHINE_ARCH} == "alpha" || \ 146 !empty(${MACHINE_ARCH:Mearm*}) || !empty(${MACHINE_ARCH:Marm*}) || \ 147 ${MACHINE_ARCH} == "i386" || \ 148 ${MACHINE_ARCH} == "ia64" || \ 149 ${MACHINE_ARCH} == "hppa" || \ 150 !empty(${MACHINE_ARCH:Mmips*}) || \ 151 ${MACHINE_ARCH} == "sparc" || \ 152 ${MACHINE_ARCH} == "sparc64" || \ 153 ${MACHINE_ARCH} == "x86_64" 154SUBDIR+= ubsec # Builds on architectures with PCI bus 155.endif 156 157.if ${MKSLJIT} != "no" 158# No modules for arm, mips and powerpc yet. 159.if ${MACHINE_ARCH} == "i386" || \ 160 ${MACHINE_ARCH} == "x86_64" || \ 161 ${MACHINE_ARCH} == "sparc" 162SUBDIR+= bpfjit 163SUBDIR+= sljit 164.endif 165.endif 166 167# 168# ACPI modules 169# 170.if ${MACHINE_ARCH} == "i386" || \ 171 ${MACHINE_ARCH} == "ia64" || \ 172 ${MACHINE_ARCH} == "x86_64" 173SUBDIR+= acpiverbose 174.endif 175 176.if ${MACHINE_ARCH} == "i386" || \ 177 ${MACHINE_ARCH} == "x86_64" 178SUBDIR+= acpiacad 179SUBDIR+= acpibat 180SUBDIR+= acpibut 181SUBDIR+= acpicpu 182SUBDIR+= acpidalb 183SUBDIR+= acpifan 184SUBDIR+= acpilid 185SUBDIR+= acpipmtr 186SUBDIR+= acpitz 187SUBDIR+= acpivga 188SUBDIR+= acpiwdrt 189SUBDIR+= acpiwmi 190SUBDIR+= aibs 191SUBDIR+= asus 192SUBDIR+= fujbp 193SUBDIR+= fujhk 194SUBDIR+= hpacel 195SUBDIR+= hpqlb 196SUBDIR+= thinkpad 197SUBDIR+= wmidell 198SUBDIR+= wmieeepc 199SUBDIR+= wmihp 200SUBDIR+= wmimsi 201.endif 202 203.if ${MACHINE_ARCH} == "x86_64" 204SUBDIR+= azalia 205SUBDIR+= compat_linux 206SUBDIR+= compat_linux32 207SUBDIR+= compat_netbsd32 208SUBDIR+= drm 209SUBDIR+= i915drm 210SUBDIR+= pad 211.endif 212 213.if ${MACHINE_ARCH} == "i386" 214SUBDIR+= ati_pcigart 215SUBDIR+= azalia 216SUBDIR+= compat_freebsd 217SUBDIR+= compat_ibcs2 218SUBDIR+= compat_linux 219SUBDIR+= compat_svr4 220SUBDIR+= drm 221SUBDIR+= i915drm 222SUBDIR+= mach64drm 223SUBDIR+= mgadrm 224SUBDIR+= nsclpcsio 225SUBDIR+= pad 226SUBDIR+= padlock 227SUBDIR+= r128drm 228SUBDIR+= radeondrm 229SUBDIR+= savagedrm 230SUBDIR+= sisdrm 231SUBDIR+= tdfxdrm 232SUBDIR+= viac7temp 233SUBDIR+= viadrm 234.endif 235 236# 237# ISA modules 238# 239.if ${MACHINE_ARCH} == "i386" || \ 240 ${MACHINE_ARCH} == "x86_64" 241SUBDIR+= aps 242SUBDIR+= finsio 243SUBDIR+= itesio 244SUBDIR+= lm 245SUBDIR+= lm_isa 246SUBDIR+= lm_isa_common 247SUBDIR+= lm_wbsio 248SUBDIR+= wbsio 249.endif 250 251.if ${MACHINE_CPU} == "m68k" 252SUBDIR+= compat_aoutm68k 253#SUBDIR+= compat_linux 254#SUBDIR+= compat_sunos 255#SUBDIR+= compat_svr4 256.endif 257 258.if ${MACHINE_ARCH} == "i386" || \ 259 ${MACHINE_ARCH} == "x86_64" || \ 260 ${MACHINE_ARCH} == "sparc64" 261SUBDIR+= pwdog 262.endif 263 264.include <bsd.own.mk> 265 266# 267# NetBSD/usermode support 268# 269.if ${MACHINE_ARCH} == "i386" || \ 270 ${MACHINE_ARCH} == "x86_64" 271SUBDIR+= ../arch/usermode/modules/syscallemu 272.endif 273 274# we need our device mapper for LVM 275.if (${MKLVM} != "no") 276SUBDIR+= dm 277.endif 278 279.if (${MKDTRACE} != "no") 280SUBDIR+= cyclic 281SUBDIR+= dtrace 282.endif 283 284# we need solaris for the dtrace and zfs modules 285.if (${MKDTRACE} != "no" || ${MKZFS} != "no") 286SUBDIR+= solaris 287.endif 288 289.if (${MKZFS} != "no") 290SUBDIR+= zfs 291.endif 292 293.if (${MKCOMPATMODULES} != "no") 294SUBDIR+= arch 295.endif 296 297# 298# DTV modules 299# 300SUBDIR+= dtv 301SUBDIR+= dtv_math 302.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 303# tuners/demods 304SUBDIR+= au8522 305SUBDIR+= cx24227 306SUBDIR+= lg3303 307SUBDIR+= mt2131 308SUBDIR+= nxt2k 309SUBDIR+= tvpll 310SUBDIR+= xc3028 311SUBDIR+= xc5k 312SUBDIR+= zl10353 313# hardware drivers 314SUBDIR+= auvitek 315SUBDIR+= coram 316SUBDIR+= cxdtv 317SUBDIR+= emdtv 318.endif 319 320.if (${MKISCSI} != "no") 321SUBDIR+= iscsi 322.endif 323 324.include <bsd.subdir.mk> 325