Makefile revision 1.169
11.169Sscole#	$NetBSD: Makefile,v 1.169 2016/08/05 17:12:13 scole Exp $
21.37Sdyoung
31.37Sdyoung.include <bsd.own.mk>
41.15Sad
51.15Sad# For all platforms
61.1Sad
71.37SdyoungSUBDIR=		accf_dataready
81.16SadSUBDIR+=	accf_httpready
91.15SadSUBDIR+=	adosfs
101.14SadSUBDIR+=	aio
111.133SpgoyetteSUBDIR+=	blowfish
121.38SpookaSUBDIR+=	bpf
131.166SpgoyetteSUBDIR+=	bpf_filter
141.133SpgoyetteSUBDIR+=	camellia
151.133SpgoyetteSUBDIR+=	cast128
161.132SpgoyetteSUBDIR+=	ccd
171.7SrumbleSUBDIR+=	cd9660
181.129SpgoyetteSUBDIR+=	cgd
191.132SpgoyetteSUBDIR+=	chfs
201.163SpgoyetteSUBDIR+=	clockctl
211.134SpgoyetteSUBDIR+=	crypto
221.7SrumbleSUBDIR+=	coda
231.7SrumbleSUBDIR+=	coda5
241.15SadSUBDIR+=	compat
251.15SadSUBDIR+=	compat_ossaudio
261.15SadSUBDIR+=	coredump
271.104SpgoyetteSUBDIR+=	dbcool
281.133SpgoyetteSUBDIR+=	des
291.129SpgoyetteSUBDIR+=	dk_subr
301.164SpgoyetteSUBDIR+=	drvctl
311.7SrumbleSUBDIR+=	efs
321.7SrumbleSUBDIR+=	ext2fs
331.15SadSUBDIR+=	exec_script
341.7SrumbleSUBDIR+=	fdesc
351.7SrumbleSUBDIR+=	ffs
361.18SadSUBDIR+=	filecore
371.93SsjgSUBDIR+=	filemon
381.68SahokaSUBDIR+=	flash
391.15SadSUBDIR+=	fss
401.89SmbalmerSUBDIR+=	gpio
411.94SmbalmerSUBDIR+=	gpioiic
421.92SmbalmerSUBDIR+=	gpioow
431.89SmbalmerSUBDIR+=	gpiosim
441.7SrumbleSUBDIR+=	hfs
451.136SkardelSUBDIR+=	hythygtemp
461.143SjmcneillSUBDIR+=	i2cexec
471.166SpgoyetteSUBDIR+=	i2c_bitbang
481.105SpgoyetteSUBDIR+=	if_axe
491.120SnonakaSUBDIR+=	if_axen
501.118SchristosSUBDIR+=	if_npflog
511.124SskrllSUBDIR+=	if_smsc
521.94SmbalmerSUBDIR+=	iic
531.167SpgoyetteSUBDIR+=	ipl
541.7SrumbleSUBDIR+=	kernfs
551.22SadSUBDIR+=	layerfs
561.7SrumbleSUBDIR+=	lfs
571.121SmbalmerSUBDIR+=	lua
581.128SlnetoSUBDIR+=	luasystm
591.123SmbalmerSUBDIR+=	luapmf
601.7SrumbleSUBDIR+=	mfs
611.45SpgoyetteSUBDIR+=	miiverbose
621.45SpgoyetteSUBDIR+=	miniroot
631.31SrmindSUBDIR+=	mqueue
641.18SadSUBDIR+=	msdos
651.68SahokaSUBDIR+=	nand
661.68SahokaSUBDIR+=	nandemulator
671.15SadSUBDIR+=	nfs
681.15SadSUBDIR+=	nfsserver
691.30SreinoudSUBDIR+=	nilfs
701.96StronSUBDIR+=	npf
711.97StronSUBDIR+=	npf_alg_icmp
721.111SrmindSUBDIR+=	npf_ext_log
731.119SchristosSUBDIR+=	npf_ext_normalize
741.117SrmindSUBDIR+=	npf_ext_rndblock
751.7SrumbleSUBDIR+=	ntfs
761.18SadSUBDIR+=	null
771.92SmbalmerSUBDIR+=	onewire
781.134SpgoyetteSUBDIR+=	opencrypto
791.7SrumbleSUBDIR+=	overlay
801.42SpgoyetteSUBDIR+=	pciverbose
811.41SahokaSUBDIR+=	pf
821.19ScubeSUBDIR+=	ppp_bsdcomp
831.19ScubeSUBDIR+=	ppp_deflate
841.7SrumbleSUBDIR+=	procfs
851.7SrumbleSUBDIR+=	ptyfs
861.7SrumbleSUBDIR+=	puffs
871.15SadSUBDIR+=	putter
881.165SpgoyetteSUBDIR+=	raid
891.44SpgoyetteSUBDIR+=	scsiverbose
901.103SpgoyetteSUBDIR+=	sdtemp
911.33SeladSUBDIR+=	secmodel_bsd44
921.100SjymSUBDIR+=	secmodel_extensions
931.33SeladSUBDIR+=	secmodel_overlay
941.33SeladSUBDIR+=	securelevel
951.133SpgoyetteSUBDIR+=	skipjack
961.168SpgoyetteSUBDIR+=	slcompress
971.7SrumbleSUBDIR+=	smbfs
981.81SpgoyetteSUBDIR+=	spdmem
991.146SpgoyetteSUBDIR+=	sysmon
1001.146SpgoyetteSUBDIR+=	sysmon_envsys
1011.146SpgoyetteSUBDIR+=	sysmon_power
1021.146SpgoyetteSUBDIR+=	sysmon_taskq
1031.146SpgoyetteSUBDIR+=	sysmon_wdog
1041.24SpookaSUBDIR+=	sysvbfs
1051.153SpgoyetteSUBDIR+=	sysv_ipc
1061.33SeladSUBDIR+=	suser
1071.134SpgoyetteSUBDIR+=	swcrypto
1081.48SpgoyetteSUBDIR+=	swsensor
1091.145SpgoyetteSUBDIR+=	swwdog
1101.7SrumbleSUBDIR+=	tmpfs
1111.108SriastradSUBDIR+=	uatp
1121.7SrumbleSUBDIR+=	udf
1131.18SadSUBDIR+=	umap
1141.7SrumbleSUBDIR+=	union
1151.43SpgoyetteSUBDIR+=	usbverbose
1161.106SchristosSUBDIR+=	vcoda
1171.78SenamiSUBDIR+=	v7fs
1181.25ShaadSUBDIR+=	vnd
1191.157SpgoyetteSUBDIR+=	wapbl
1201.131SpgoyetteSUBDIR+=	zlib
1211.29SyamtSUBDIR+=	tprof
1221.7Srumble.if (defined(NOTYET))
1231.135SpgoyetteSUBDIR+=	hifn		# Builds on architectures with PCI bus
1241.7SrumbleSUBDIR+=	unionfs
1251.7Srumble.endif
1261.37Sdyoung.if ${MKBINUTILS} != "no"
1271.37SdyoungSUBDIR+=	xldscripts
1281.37Sdyoung.endif
1291.7Srumble
1301.15Sad# Machine dependent section
1311.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \
1321.49Stsutsui    ${MACHINE_CPU} == "m68k"
1331.47StsutsuiSUBDIR+=	exec_aout
1341.47Stsutsui.endif
1351.47Stsutsui
1361.169Sscole.if ${MACHINE_ARCH} != "alpha" && \
1371.169Sscole    ${MACHINE_CPU} != "aarch64" && \
1381.169Sscole    ${MACHINE_ARCH} != "ia64"
1391.17SmartinSUBDIR+=	exec_elf32
1401.17Smartin.endif
1411.15Sad
1421.139Smatt.if ${MACHINE_CPU} == "aarch64" || \
1431.139Smatt    ${MACHINE_ARCH} == "alpha" || \
1441.169Sscole    ${MACHINE_ARCH} == "ia64" || \
1451.21Stsutsui    ${MACHINE_ARCH} == "sparc64" || \
1461.21Stsutsui    ${MACHINE_ARCH} == "x86_64"
1471.20SheSUBDIR+=	exec_elf64
1481.20She.endif
1491.20She
1501.29Syamt.if ${MACHINE_ARCH} == "i386" || \
1511.29Syamt    ${MACHINE_ARCH} == "x86_64"
1521.71SjruohoSUBDIR+=	amdtemp
1531.64SjruohoSUBDIR+=	coretemp
1541.65SjruohoSUBDIR+=	est
1551.110SmartinSUBDIR+=	hdafg
1561.110SmartinSUBDIR+=	hdaudio
1571.144SjmcneillSUBDIR+=	hdaudio_pci
1581.141SchristosSUBDIR+=	hdaudioverbose
1591.72SjruohoSUBDIR+=	hpet
1601.69SjruohoSUBDIR+=	odcm
1611.66SjruohoSUBDIR+=	powernow
1621.150SpgoyetteSUBDIR+=	tco
1631.29SyamtSUBDIR+=	tprof_pmi
1641.70SyamtSUBDIR+=	tprof_amdpmi
1651.95SjmcneillSUBDIR+=	vmt
1661.29Syamt.endif
1671.29Syamt
1681.140Sbad.if ${MACHINE_ARCH} == "i386" || \
1691.137Sbad    ${MACHINE_ARCH} == "x86_64"
1701.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1711.137Sbad.endif
1721.137Sbad
1731.126Salnsn.if ${MKSLJIT} != "no"
1741.126Salnsn# No modules for arm, mips and powerpc yet.
1751.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1761.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
1771.115Salnsn    ${MACHINE_ARCH} == "sparc"
1781.113SalnsnSUBDIR+=	bpfjit
1791.112SalnsnSUBDIR+=	sljit
1801.112Salnsn.endif
1811.126Salnsn.endif
1821.112Salnsn
1831.85Sjruoho#
1841.85Sjruoho# ACPI modules
1851.85Sjruoho#
1861.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
1871.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
1881.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
1891.46SpgoyetteSUBDIR+=	acpiverbose
1901.46Spgoyette.endif
1911.46Spgoyette
1921.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
1931.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
1941.52SjruohoSUBDIR+=	acpiacad
1951.52SjruohoSUBDIR+=	acpibat
1961.52SjruohoSUBDIR+=	acpibut
1971.52SjruohoSUBDIR+=	acpicpu
1981.53SjruohoSUBDIR+=	acpidalb
1991.58SjruohoSUBDIR+=	acpifan
2001.52SjruohoSUBDIR+=	acpilid
2011.57SjruohoSUBDIR+=	acpipmtr
2021.53SjruohoSUBDIR+=	acpitz
2031.53SjruohoSUBDIR+=	acpivga
2041.86SjruohoSUBDIR+=	acpiwdrt
2051.51SjmcneillSUBDIR+=	acpiwmi
2061.53SjruohoSUBDIR+=	aibs
2071.54SjruohoSUBDIR+=	asus
2081.63SjruohoSUBDIR+=	fujbp
2091.63SjruohoSUBDIR+=	fujhk
2101.75SjruohoSUBDIR+=	hpacel
2111.54SjruohoSUBDIR+=	hpqlb
2121.52SjruohoSUBDIR+=	thinkpad
2131.50SjmcneillSUBDIR+=	wmidell
2141.83SjruohoSUBDIR+=	wmieeepc
2151.50SjmcneillSUBDIR+=	wmihp
2161.50SjmcneillSUBDIR+=	wmimsi
2171.50Sjmcneill.endif
2181.50Sjmcneill
2191.156Smatt.if ${MACHINE_CPU} == "arm" \
2201.156Smatt    || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
2211.151SmattSUBDIR+=	compat_netbsd32
2221.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2231.159SpgoyetteSUBDIR+=	compat_netbsd32_mqueue
2241.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2251.151Smatt.endif
2261.151Smatt
2271.27Sabs.if ${MACHINE_ARCH} == "x86_64"
2281.15SadSUBDIR+=	compat_linux32
2291.15SadSUBDIR+=	compat_netbsd32
2301.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2311.159SpgoyetteSUBDIR+=	compat_netbsd32_mqueue
2321.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2331.15Sad.endif
2341.15Sad
2351.27Sabs.if ${MACHINE_ARCH} == "i386"
2361.90SjmcneillSUBDIR+=	ati_pcigart
2371.15SadSUBDIR+=	compat_freebsd
2381.15SadSUBDIR+=	compat_ibcs2
2391.15SadSUBDIR+=	compat_svr4
2401.90SjmcneillSUBDIR+=	mach64drm
2411.90SjmcneillSUBDIR+=	mgadrm
2421.76SjmcneillSUBDIR+=	nsclpcsio
2431.62SjmcneillSUBDIR+=	padlock
2441.90SjmcneillSUBDIR+=	r128drm
2451.90SjmcneillSUBDIR+=	radeondrm
2461.90SjmcneillSUBDIR+=	savagedrm
2471.90SjmcneillSUBDIR+=	sisdrm
2481.90SjmcneillSUBDIR+=	tdfxdrm
2491.67SjruohoSUBDIR+=	viac7temp
2501.90SjmcneillSUBDIR+=	viadrm
2511.149SriastradSUBDIR+=	viadrmums
2521.15Sad.endif
2531.15Sad
2541.142Schristos.if ${MACHINE_ARCH} == "i386" || \
2551.142Schristos    ${MACHINE_ARCH} == "x86_64"
2561.142SchristosSUBDIR+=	azalia
2571.142SchristosSUBDIR+=	compat_linux
2581.142SchristosSUBDIR+=	drm
2591.142SchristosSUBDIR+=	drmkms
2601.142SchristosSUBDIR+=	drmkms_linux
2611.142SchristosSUBDIR+=	drmkms_pci
2621.142SchristosSUBDIR+=	i915drm
2631.142SchristosSUBDIR+=	i915drmkms
2641.142SchristosSUBDIR+=	pad
2651.85Sjruoho#
2661.85Sjruoho# ISA modules
2671.85Sjruoho#
2681.59SjmcneillSUBDIR+=	aps
2691.80SjmcneillSUBDIR+=	finsio
2701.79SjmcneillSUBDIR+=	itesio
2711.101SjakllschSUBDIR+=	lm
2721.101SjakllschSUBDIR+=	lm_isa
2731.101SjakllschSUBDIR+=	lm_isa_common
2741.101SjakllschSUBDIR+=	lm_wbsio
2751.101SjakllschSUBDIR+=	wbsio
2761.56Sjmcneill.endif
2771.56Sjmcneill
2781.49Stsutsui.if ${MACHINE_CPU} == "m68k"
2791.47StsutsuiSUBDIR+=	compat_aoutm68k
2801.47Stsutsui#SUBDIR+=	compat_linux
2811.47Stsutsui#SUBDIR+=	compat_sunos
2821.47Stsutsui#SUBDIR+=	compat_svr4
2831.47Stsutsui.endif
2841.47Stsutsui
2851.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \
2861.88Smbalmer    ${MACHINE_ARCH} == "x86_64" || \
2871.88Smbalmer    ${MACHINE_ARCH} == "sparc64"
2881.88SmbalmerSUBDIR+=	pwdog
2891.88Smbalmer.endif
2901.88Smbalmer
2911.23Sagc.include <bsd.own.mk>
2921.23Sagc
2931.107Sreinoud#
2941.107Sreinoud# NetBSD/usermode support
2951.107Sreinoud#
2961.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \
2971.107Sreinoud    ${MACHINE_ARCH} == "x86_64"
2981.107SreinoudSUBDIR+=	../arch/usermode/modules/syscallemu
2991.107Sreinoud.endif
3001.107Sreinoud
3011.23Sagc# we need our device mapper for LVM
3021.23Sagc.if (${MKLVM} != "no")
3031.28SyamtSUBDIR+= 	dm
3041.23Sagc.endif
3051.23Sagc
3061.39Sdarran.if (${MKDTRACE} != "no")
3071.116SchsSUBDIR+=	cyclic
3081.39SdarranSUBDIR+=	dtrace
3091.39Sdarran.endif
3101.39Sdarran
3111.39Sdarran# we need solaris for the dtrace and zfs modules
3121.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
3131.39SdarranSUBDIR+=        solaris
3141.39Sdarran.endif
3151.39Sdarran
3161.34Shaad.if (${MKZFS} != "no")
3171.34ShaadSUBDIR+=	zfs
3181.34Shaad.endif
3191.34Shaad
3201.73Smrg.if (${MKCOMPATMODULES} != "no")
3211.73SmrgSUBDIR+=	arch
3221.73Smrg.endif
3231.73Smrg
3241.84Sjmcneill#
3251.84Sjmcneill# DTV modules
3261.84Sjmcneill#
3271.84SjmcneillSUBDIR+=	dtv
3281.84SjmcneillSUBDIR+=	dtv_math
3291.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
3301.84Sjmcneill# tuners/demods
3311.84SjmcneillSUBDIR+=	au8522
3321.84SjmcneillSUBDIR+=	cx24227
3331.84SjmcneillSUBDIR+=	lg3303
3341.84SjmcneillSUBDIR+=	mt2131
3351.84SjmcneillSUBDIR+=	nxt2k
3361.84SjmcneillSUBDIR+=	tvpll
3371.84SjmcneillSUBDIR+=	xc3028
3381.84SjmcneillSUBDIR+=	xc5k
3391.91SjruohoSUBDIR+=	zl10353
3401.84Sjmcneill# hardware drivers
3411.84SjmcneillSUBDIR+=	auvitek
3421.84SjmcneillSUBDIR+=	coram
3431.84SjmcneillSUBDIR+=	cxdtv
3441.84SjmcneillSUBDIR+=	emdtv
3451.155SpgoyetteSUBDIR+=	spkr
3461.84Sjmcneill.endif
3471.84Sjmcneill
3481.98Sriz.if (${MKISCSI} != "no")
3491.98SrizSUBDIR+=	iscsi
3501.98Sriz.endif
3511.98Sriz
3521.154SpgoyetteSUBDIR+=	examples	# build these regularly to avoid bit-rot
3531.154Spgoyette
3541.1Sad.include <bsd.subdir.mk>
355