Makefile revision 1.190
11.190Sjdolecek#	$NetBSD: Makefile,v 1.190 2017/03/25 23:17:07 jdolecek Exp $
21.37Sdyoung
31.37Sdyoung.include <bsd.own.mk>
41.15Sad
51.15Sad# For all platforms
61.1Sad
71.179SpgoyetteSUBDIR=		accf_dataready
81.16SadSUBDIR+=	accf_httpready
91.15SadSUBDIR+=	adosfs
101.14SadSUBDIR+=	aio
111.133SpgoyetteSUBDIR+=	blowfish
121.38SpookaSUBDIR+=	bpf
131.166SpgoyetteSUBDIR+=	bpf_filter
141.183SpgoyetteSUBDIR+=	bufq_disksort
151.183SpgoyetteSUBDIR+=	bufq_fcfs
161.183SpgoyetteSUBDIR+=	bufq_priocscan
171.183SpgoyetteSUBDIR+=	bufq_readprio
181.133SpgoyetteSUBDIR+=	camellia
191.133SpgoyetteSUBDIR+=	cast128
201.132SpgoyetteSUBDIR+=	ccd
211.7SrumbleSUBDIR+=	cd9660
221.129SpgoyetteSUBDIR+=	cgd
231.132SpgoyetteSUBDIR+=	chfs
241.163SpgoyetteSUBDIR+=	clockctl
251.134SpgoyetteSUBDIR+=	crypto
261.7SrumbleSUBDIR+=	coda
271.7SrumbleSUBDIR+=	coda5
281.15SadSUBDIR+=	compat
291.15SadSUBDIR+=	compat_ossaudio
301.15SadSUBDIR+=	coredump
311.104SpgoyetteSUBDIR+=	dbcool
321.133SpgoyetteSUBDIR+=	des
331.129SpgoyetteSUBDIR+=	dk_subr
341.164SpgoyetteSUBDIR+=	drvctl
351.7SrumbleSUBDIR+=	efs
361.7SrumbleSUBDIR+=	ext2fs
371.15SadSUBDIR+=	exec_script
381.7SrumbleSUBDIR+=	fdesc
391.7SrumbleSUBDIR+=	ffs
401.18SadSUBDIR+=	filecore
411.93SsjgSUBDIR+=	filemon
421.68SahokaSUBDIR+=	flash
431.15SadSUBDIR+=	fss
441.89SmbalmerSUBDIR+=	gpio
451.94SmbalmerSUBDIR+=	gpioiic
461.92SmbalmerSUBDIR+=	gpioow
471.89SmbalmerSUBDIR+=	gpiosim
481.7SrumbleSUBDIR+=	hfs
491.136SkardelSUBDIR+=	hythygtemp
501.143SjmcneillSUBDIR+=	i2cexec
511.166SpgoyetteSUBDIR+=	i2c_bitbang
521.175SchristosSUBDIR+=	if_agr
531.105SpgoyetteSUBDIR+=	if_axe
541.120SnonakaSUBDIR+=	if_axen
551.175SchristosSUBDIR+=	if_faith
561.175SchristosSUBDIR+=	if_gif
571.175SchristosSUBDIR+=	if_gre
581.189SknakaharSUBDIR+=	if_l2tp
591.175SchristosSUBDIR+=	if_loop
601.175SchristosSUBDIR+=	if_mpls
611.118SchristosSUBDIR+=	if_npflog
621.171SchristosSUBDIR+=	if_ppp
631.174SpgoyetteSUBDIR+=	if_pppoe
641.172SchristosSUBDIR+=	if_sl
651.124SskrllSUBDIR+=	if_smsc
661.175SchristosSUBDIR+=	if_srt
671.175SchristosSUBDIR+=	if_stf
681.172SchristosSUBDIR+=	if_strip
691.176SpgoyetteSUBDIR+=	if_tun tun
701.175SchristosSUBDIR+=	if_vlan
711.94SmbalmerSUBDIR+=	iic
721.167SpgoyetteSUBDIR+=	ipl
731.7SrumbleSUBDIR+=	kernfs
741.22SadSUBDIR+=	layerfs
751.7SrumbleSUBDIR+=	lfs
761.121SmbalmerSUBDIR+=	lua
771.128SlnetoSUBDIR+=	luasystm
781.123SmbalmerSUBDIR+=	luapmf
791.7SrumbleSUBDIR+=	mfs
801.45SpgoyetteSUBDIR+=	miiverbose
811.45SpgoyetteSUBDIR+=	miniroot
821.31SrmindSUBDIR+=	mqueue
831.18SadSUBDIR+=	msdos
841.68SahokaSUBDIR+=	nand
851.68SahokaSUBDIR+=	nandemulator
861.15SadSUBDIR+=	nfs
871.15SadSUBDIR+=	nfsserver
881.30SreinoudSUBDIR+=	nilfs
891.96StronSUBDIR+=	npf
901.97StronSUBDIR+=	npf_alg_icmp
911.111SrmindSUBDIR+=	npf_ext_log
921.119SchristosSUBDIR+=	npf_ext_normalize
931.117SrmindSUBDIR+=	npf_ext_rndblock
941.7SrumbleSUBDIR+=	ntfs
951.18SadSUBDIR+=	null
961.92SmbalmerSUBDIR+=	onewire
971.134SpgoyetteSUBDIR+=	opencrypto
981.7SrumbleSUBDIR+=	overlay
991.42SpgoyetteSUBDIR+=	pciverbose
1001.41SahokaSUBDIR+=	pf
1011.19ScubeSUBDIR+=	ppp_bsdcomp
1021.19ScubeSUBDIR+=	ppp_deflate
1031.7SrumbleSUBDIR+=	procfs
1041.182SpgoyetteSUBDIR+=	ptrace
1051.182SpgoyetteSUBDIR+=	ptrace_common
1061.7SrumbleSUBDIR+=	ptyfs
1071.7SrumbleSUBDIR+=	puffs
1081.15SadSUBDIR+=	putter
1091.165SpgoyetteSUBDIR+=	raid
1101.44SpgoyetteSUBDIR+=	scsiverbose
1111.103SpgoyetteSUBDIR+=	sdtemp
1121.33SeladSUBDIR+=	secmodel_bsd44
1131.100SjymSUBDIR+=	secmodel_extensions
1141.33SeladSUBDIR+=	secmodel_overlay
1151.33SeladSUBDIR+=	securelevel
1161.133SpgoyetteSUBDIR+=	skipjack
1171.168SpgoyetteSUBDIR+=	slcompress
1181.7SrumbleSUBDIR+=	smbfs
1191.81SpgoyetteSUBDIR+=	spdmem
1201.188SpgoyetteSUBDIR+=	spkr
1211.173SpgoyetteSUBDIR+=	sppp_subr
1221.146SpgoyetteSUBDIR+=	sysmon
1231.146SpgoyetteSUBDIR+=	sysmon_envsys
1241.146SpgoyetteSUBDIR+=	sysmon_power
1251.146SpgoyetteSUBDIR+=	sysmon_taskq
1261.146SpgoyetteSUBDIR+=	sysmon_wdog
1271.24SpookaSUBDIR+=	sysvbfs
1281.153SpgoyetteSUBDIR+=	sysv_ipc
1291.33SeladSUBDIR+=	suser
1301.134SpgoyetteSUBDIR+=	swcrypto
1311.48SpgoyetteSUBDIR+=	swsensor
1321.145SpgoyetteSUBDIR+=	swwdog
1331.7SrumbleSUBDIR+=	tmpfs
1341.108SriastradSUBDIR+=	uatp
1351.7SrumbleSUBDIR+=	udf
1361.18SadSUBDIR+=	umap
1371.7SrumbleSUBDIR+=	union
1381.43SpgoyetteSUBDIR+=	usbverbose
1391.106SchristosSUBDIR+=	vcoda
1401.78SenamiSUBDIR+=	v7fs
1411.25ShaadSUBDIR+=	vnd
1421.157SpgoyetteSUBDIR+=	wapbl
1431.131SpgoyetteSUBDIR+=	zlib
1441.29SyamtSUBDIR+=	tprof
1451.7Srumble.if (defined(NOTYET))
1461.135SpgoyetteSUBDIR+=	hifn		# Builds on architectures with PCI bus
1471.7SrumbleSUBDIR+=	unionfs
1481.7Srumble.endif
1491.37Sdyoung.if ${MKBINUTILS} != "no"
1501.37SdyoungSUBDIR+=	xldscripts
1511.37Sdyoung.endif
1521.7Srumble
1531.15Sad# Machine dependent section
1541.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \
1551.49Stsutsui    ${MACHINE_CPU} == "m68k"
1561.47StsutsuiSUBDIR+=	exec_aout
1571.47Stsutsui.endif
1581.47Stsutsui
1591.169Sscole.if ${MACHINE_ARCH} != "alpha" && \
1601.169Sscole    ${MACHINE_CPU} != "aarch64" && \
1611.169Sscole    ${MACHINE_ARCH} != "ia64"
1621.17SmartinSUBDIR+=	exec_elf32
1631.17Smartin.endif
1641.15Sad
1651.139Smatt.if ${MACHINE_CPU} == "aarch64" || \
1661.139Smatt    ${MACHINE_ARCH} == "alpha" || \
1671.169Sscole    ${MACHINE_ARCH} == "ia64" || \
1681.21Stsutsui    ${MACHINE_ARCH} == "sparc64" || \
1691.21Stsutsui    ${MACHINE_ARCH} == "x86_64"
1701.20SheSUBDIR+=	exec_elf64
1711.20She.endif
1721.20She
1731.29Syamt.if ${MACHINE_ARCH} == "i386" || \
1741.29Syamt    ${MACHINE_ARCH} == "x86_64"
1751.71SjruohoSUBDIR+=	amdtemp
1761.64SjruohoSUBDIR+=	coretemp
1771.65SjruohoSUBDIR+=	est
1781.110SmartinSUBDIR+=	hdafg
1791.110SmartinSUBDIR+=	hdaudio
1801.144SjmcneillSUBDIR+=	hdaudio_pci
1811.141SchristosSUBDIR+=	hdaudioverbose
1821.72SjruohoSUBDIR+=	hpet
1831.69SjruohoSUBDIR+=	odcm
1841.66SjruohoSUBDIR+=	powernow
1851.150SpgoyetteSUBDIR+=	tco
1861.29SyamtSUBDIR+=	tprof_pmi
1871.70SyamtSUBDIR+=	tprof_amdpmi
1881.95SjmcneillSUBDIR+=	vmt
1891.29Syamt.endif
1901.29Syamt
1911.140Sbad.if ${MACHINE_ARCH} == "i386" || \
1921.137Sbad    ${MACHINE_ARCH} == "x86_64"
1931.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1941.137Sbad.endif
1951.137Sbad
1961.126Salnsn.if ${MKSLJIT} != "no"
1971.126Salnsn# No modules for arm, mips and powerpc yet.
1981.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1991.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
2001.115Salnsn    ${MACHINE_ARCH} == "sparc"
2011.113SalnsnSUBDIR+=	bpfjit
2021.112SalnsnSUBDIR+=	sljit
2031.112Salnsn.endif
2041.126Salnsn.endif
2051.112Salnsn
2061.85Sjruoho#
2071.85Sjruoho# ACPI modules
2081.85Sjruoho#
2091.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
2101.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
2111.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
2121.46SpgoyetteSUBDIR+=	acpiverbose
2131.46Spgoyette.endif
2141.46Spgoyette
2151.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
2161.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
2171.52SjruohoSUBDIR+=	acpiacad
2181.52SjruohoSUBDIR+=	acpibat
2191.52SjruohoSUBDIR+=	acpibut
2201.52SjruohoSUBDIR+=	acpicpu
2211.53SjruohoSUBDIR+=	acpidalb
2221.58SjruohoSUBDIR+=	acpifan
2231.52SjruohoSUBDIR+=	acpilid
2241.57SjruohoSUBDIR+=	acpipmtr
2251.53SjruohoSUBDIR+=	acpitz
2261.53SjruohoSUBDIR+=	acpivga
2271.86SjruohoSUBDIR+=	acpiwdrt
2281.51SjmcneillSUBDIR+=	acpiwmi
2291.53SjruohoSUBDIR+=	aibs
2301.54SjruohoSUBDIR+=	asus
2311.63SjruohoSUBDIR+=	fujbp
2321.63SjruohoSUBDIR+=	fujhk
2331.75SjruohoSUBDIR+=	hpacel
2341.54SjruohoSUBDIR+=	hpqlb
2351.52SjruohoSUBDIR+=	thinkpad
2361.50SjmcneillSUBDIR+=	wmidell
2371.83SjruohoSUBDIR+=	wmieeepc
2381.50SjmcneillSUBDIR+=	wmihp
2391.50SjmcneillSUBDIR+=	wmimsi
2401.50Sjmcneill.endif
2411.50Sjmcneill
2421.156Smatt.if ${MACHINE_CPU} == "arm" \
2431.156Smatt    || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
2441.151SmattSUBDIR+=	compat_netbsd32
2451.180SskrllSUBDIR+=	compat_netbsd32_mqueue
2461.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2471.181SskrllSUBDIR+=	compat_netbsd32_ptrace
2481.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2491.151Smatt.endif
2501.151Smatt
2511.27Sabs.if ${MACHINE_ARCH} == "x86_64"
2521.15SadSUBDIR+=	compat_linux32
2531.15SadSUBDIR+=	compat_netbsd32
2541.180SskrllSUBDIR+=	compat_netbsd32_mqueue
2551.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2561.181SskrllSUBDIR+=	compat_netbsd32_ptrace
2571.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2581.15Sad.endif
2591.15Sad
2601.27Sabs.if ${MACHINE_ARCH} == "i386"
2611.90SjmcneillSUBDIR+=	ati_pcigart
2621.15SadSUBDIR+=	compat_freebsd
2631.15SadSUBDIR+=	compat_ibcs2
2641.15SadSUBDIR+=	compat_svr4
2651.90SjmcneillSUBDIR+=	mach64drm
2661.90SjmcneillSUBDIR+=	mgadrm
2671.76SjmcneillSUBDIR+=	nsclpcsio
2681.62SjmcneillSUBDIR+=	padlock
2691.90SjmcneillSUBDIR+=	r128drm
2701.90SjmcneillSUBDIR+=	radeondrm
2711.90SjmcneillSUBDIR+=	savagedrm
2721.90SjmcneillSUBDIR+=	sisdrm
2731.90SjmcneillSUBDIR+=	tdfxdrm
2741.67SjruohoSUBDIR+=	viac7temp
2751.90SjmcneillSUBDIR+=	viadrm
2761.149SriastradSUBDIR+=	viadrmums
2771.15Sad.endif
2781.15Sad
2791.142Schristos.if ${MACHINE_ARCH} == "i386" || \
2801.142Schristos    ${MACHINE_ARCH} == "x86_64"
2811.142SchristosSUBDIR+=	azalia
2821.142SchristosSUBDIR+=	compat_linux
2831.142SchristosSUBDIR+=	drm
2841.142SchristosSUBDIR+=	drmkms
2851.142SchristosSUBDIR+=	drmkms_linux
2861.142SchristosSUBDIR+=	drmkms_pci
2871.142SchristosSUBDIR+=	i915drm
2881.142SchristosSUBDIR+=	i915drmkms
2891.142SchristosSUBDIR+=	pad
2901.85Sjruoho#
2911.85Sjruoho# ISA modules
2921.85Sjruoho#
2931.59SjmcneillSUBDIR+=	aps
2941.80SjmcneillSUBDIR+=	finsio
2951.79SjmcneillSUBDIR+=	itesio
2961.101SjakllschSUBDIR+=	lm
2971.101SjakllschSUBDIR+=	lm_isa
2981.101SjakllschSUBDIR+=	lm_isa_common
2991.101SjakllschSUBDIR+=	lm_wbsio
3001.101SjakllschSUBDIR+=	wbsio
3011.56Sjmcneill.endif
3021.56Sjmcneill
3031.49Stsutsui.if ${MACHINE_CPU} == "m68k"
3041.47StsutsuiSUBDIR+=	compat_aoutm68k
3051.47Stsutsui#SUBDIR+=	compat_linux
3061.47Stsutsui#SUBDIR+=	compat_sunos
3071.47Stsutsui#SUBDIR+=	compat_svr4
3081.47Stsutsui.endif
3091.47Stsutsui
3101.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \
3111.88Smbalmer    ${MACHINE_ARCH} == "x86_64" || \
3121.88Smbalmer    ${MACHINE_ARCH} == "sparc64"
3131.88SmbalmerSUBDIR+=	pwdog
3141.88Smbalmer.endif
3151.88Smbalmer
3161.23Sagc.include <bsd.own.mk>
3171.23Sagc
3181.107Sreinoud#
3191.107Sreinoud# NetBSD/usermode support
3201.107Sreinoud#
3211.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \
3221.107Sreinoud    ${MACHINE_ARCH} == "x86_64"
3231.107SreinoudSUBDIR+=	../arch/usermode/modules/syscallemu
3241.107Sreinoud.endif
3251.107Sreinoud
3261.23Sagc# we need our device mapper for LVM
3271.23Sagc.if (${MKLVM} != "no")
3281.28SyamtSUBDIR+= 	dm
3291.23Sagc.endif
3301.23Sagc
3311.39Sdarran.if (${MKDTRACE} != "no")
3321.116SchsSUBDIR+=	cyclic
3331.39SdarranSUBDIR+=	dtrace
3341.39Sdarran.endif
3351.39Sdarran
3361.39Sdarran# we need solaris for the dtrace and zfs modules
3371.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
3381.39SdarranSUBDIR+=        solaris
3391.39Sdarran.endif
3401.39Sdarran
3411.34Shaad.if (${MKZFS} != "no")
3421.34ShaadSUBDIR+=	zfs
3431.34Shaad.endif
3441.34Shaad
3451.73Smrg.if (${MKCOMPATMODULES} != "no")
3461.73SmrgSUBDIR+=	arch
3471.73Smrg.endif
3481.73Smrg
3491.84Sjmcneill#
3501.84Sjmcneill# DTV modules
3511.84Sjmcneill#
3521.84SjmcneillSUBDIR+=	dtv
3531.84SjmcneillSUBDIR+=	dtv_math
3541.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
3551.84Sjmcneill# tuners/demods
3561.84SjmcneillSUBDIR+=	au8522
3571.84SjmcneillSUBDIR+=	cx24227
3581.84SjmcneillSUBDIR+=	lg3303
3591.84SjmcneillSUBDIR+=	mt2131
3601.84SjmcneillSUBDIR+=	nxt2k
3611.84SjmcneillSUBDIR+=	tvpll
3621.84SjmcneillSUBDIR+=	xc3028
3631.84SjmcneillSUBDIR+=	xc5k
3641.91SjruohoSUBDIR+=	zl10353
3651.84Sjmcneill# hardware drivers
3661.84SjmcneillSUBDIR+=	auvitek
3671.84SjmcneillSUBDIR+=	coram
3681.84SjmcneillSUBDIR+=	cxdtv
3691.84SjmcneillSUBDIR+=	emdtv
3701.84Sjmcneill.endif
3711.84Sjmcneill
3721.98Sriz.if (${MKISCSI} != "no")
3731.98SrizSUBDIR+=	iscsi
3741.98Sriz.endif
3751.98Sriz
3761.179Spgoyette# For now, all of these are disabled, pending resolution of how to deal
3771.179Spgoyette# with attachment-specific modules and bus-specific modules (as opposed
3781.179Spgoyette# to machine- or architecture-specific modules)
3791.179Spgoyette
3801.179Spgoyette.if 0
3811.179SpgoyetteSUBDIR+=	aac
3821.179SpgoyetteSUBDIR+=	amr
3831.179SpgoyetteSUBDIR+=	ataraid
3841.179SpgoyetteSUBDIR+=	cac
3851.179SpgoyetteSUBDIR+=	cac_eisa
3861.179SpgoyetteSUBDIR+=	cac_pci
3871.179SpgoyetteSUBDIR+=	if_vioif
3881.179SpgoyetteSUBDIR+=	ld
3891.179SpgoyetteSUBDIR+=	ld_aac
3901.179SpgoyetteSUBDIR+=	ld_amr
3911.179SpgoyetteSUBDIR+=	ld_ataraid
3921.179SpgoyetteSUBDIR+=	ld_cac
3931.179SpgoyetteSUBDIR+=	ld_icp
3941.179SpgoyetteSUBDIR+=	ld_mlx
3951.179SpgoyetteSUBDIR+=	ld_sdmmc
3961.179SpgoyetteSUBDIR+=	ld_twa
3971.179SpgoyetteSUBDIR+=	ld_twe
3981.179SpgoyetteSUBDIR+=	ld_virtio
3991.179SpgoyetteSUBDIR+=	mlx
4001.179SpgoyetteSUBDIR+=	mlx_eisa
4011.179SpgoyetteSUBDIR+=	mlx_pci
4021.179SpgoyetteSUBDIR+=	ld_nvme
4031.179SpgoyetteSUBDIR+=	nvme
4041.179SpgoyetteSUBDIR+=	twa
4051.179SpgoyetteSUBDIR+=	twe
4061.179SpgoyetteSUBDIR+=	viomb
4071.179SpgoyetteSUBDIR+=	virtio
4081.190SjdolecekSUBDIR+=	vioscsi
4091.179Spgoyette.endif
4101.179Spgoyette
4111.154SpgoyetteSUBDIR+=	examples	# build these regularly to avoid bit-rot
4121.154Spgoyette
4131.1Sad.include <bsd.subdir.mk>
414