Makefile revision 1.166
11.166Spgoyette#	$NetBSD: Makefile,v 1.166 2016/06/07 01:06:27 pgoyette 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.7SrumbleSUBDIR+=	kernfs
541.22SadSUBDIR+=	layerfs
551.7SrumbleSUBDIR+=	lfs
561.121SmbalmerSUBDIR+=	lua
571.128SlnetoSUBDIR+=	luasystm
581.123SmbalmerSUBDIR+=	luapmf
591.7SrumbleSUBDIR+=	mfs
601.45SpgoyetteSUBDIR+=	miiverbose
611.45SpgoyetteSUBDIR+=	miniroot
621.31SrmindSUBDIR+=	mqueue
631.18SadSUBDIR+=	msdos
641.68SahokaSUBDIR+=	nand
651.68SahokaSUBDIR+=	nandemulator
661.15SadSUBDIR+=	nfs
671.15SadSUBDIR+=	nfsserver
681.30SreinoudSUBDIR+=	nilfs
691.96StronSUBDIR+=	npf
701.97StronSUBDIR+=	npf_alg_icmp
711.111SrmindSUBDIR+=	npf_ext_log
721.119SchristosSUBDIR+=	npf_ext_normalize
731.117SrmindSUBDIR+=	npf_ext_rndblock
741.7SrumbleSUBDIR+=	ntfs
751.18SadSUBDIR+=	null
761.92SmbalmerSUBDIR+=	onewire
771.134SpgoyetteSUBDIR+=	opencrypto
781.7SrumbleSUBDIR+=	overlay
791.42SpgoyetteSUBDIR+=	pciverbose
801.41SahokaSUBDIR+=	pf
811.19ScubeSUBDIR+=	ppp_bsdcomp
821.19ScubeSUBDIR+=	ppp_deflate
831.7SrumbleSUBDIR+=	procfs
841.7SrumbleSUBDIR+=	ptyfs
851.7SrumbleSUBDIR+=	puffs
861.15SadSUBDIR+=	putter
871.165SpgoyetteSUBDIR+=	raid
881.44SpgoyetteSUBDIR+=	scsiverbose
891.103SpgoyetteSUBDIR+=	sdtemp
901.33SeladSUBDIR+=	secmodel_bsd44
911.100SjymSUBDIR+=	secmodel_extensions
921.33SeladSUBDIR+=	secmodel_overlay
931.33SeladSUBDIR+=	securelevel
941.133SpgoyetteSUBDIR+=	skipjack
951.7SrumbleSUBDIR+=	smbfs
961.81SpgoyetteSUBDIR+=	spdmem
971.146SpgoyetteSUBDIR+=	sysmon
981.146SpgoyetteSUBDIR+=	sysmon_envsys
991.146SpgoyetteSUBDIR+=	sysmon_power
1001.146SpgoyetteSUBDIR+=	sysmon_taskq
1011.146SpgoyetteSUBDIR+=	sysmon_wdog
1021.24SpookaSUBDIR+=	sysvbfs
1031.153SpgoyetteSUBDIR+=	sysv_ipc
1041.33SeladSUBDIR+=	suser
1051.134SpgoyetteSUBDIR+=	swcrypto
1061.48SpgoyetteSUBDIR+=	swsensor
1071.145SpgoyetteSUBDIR+=	swwdog
1081.7SrumbleSUBDIR+=	tmpfs
1091.108SriastradSUBDIR+=	uatp
1101.7SrumbleSUBDIR+=	udf
1111.18SadSUBDIR+=	umap
1121.7SrumbleSUBDIR+=	union
1131.43SpgoyetteSUBDIR+=	usbverbose
1141.106SchristosSUBDIR+=	vcoda
1151.78SenamiSUBDIR+=	v7fs
1161.25ShaadSUBDIR+=	vnd
1171.157SpgoyetteSUBDIR+=	wapbl
1181.131SpgoyetteSUBDIR+=	zlib
1191.29SyamtSUBDIR+=	tprof
1201.7Srumble.if (defined(NOTYET))
1211.135SpgoyetteSUBDIR+=	hifn		# Builds on architectures with PCI bus
1221.7SrumbleSUBDIR+=	unionfs
1231.7Srumble.endif
1241.37Sdyoung.if ${MKBINUTILS} != "no"
1251.37SdyoungSUBDIR+=	xldscripts
1261.37Sdyoung.endif
1271.7Srumble
1281.15Sad# Machine dependent section
1291.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \
1301.49Stsutsui    ${MACHINE_CPU} == "m68k"
1311.47StsutsuiSUBDIR+=	exec_aout
1321.47Stsutsui.endif
1331.47Stsutsui
1341.139Smatt.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64"
1351.17SmartinSUBDIR+=	exec_elf32
1361.17Smartin.endif
1371.15Sad
1381.139Smatt.if ${MACHINE_CPU} == "aarch64" || \
1391.139Smatt    ${MACHINE_ARCH} == "alpha" || \
1401.21Stsutsui    ${MACHINE_ARCH} == "sparc64" || \
1411.21Stsutsui    ${MACHINE_ARCH} == "x86_64"
1421.20SheSUBDIR+=	exec_elf64
1431.20She.endif
1441.20She
1451.29Syamt.if ${MACHINE_ARCH} == "i386" || \
1461.29Syamt    ${MACHINE_ARCH} == "x86_64"
1471.71SjruohoSUBDIR+=	amdtemp
1481.64SjruohoSUBDIR+=	coretemp
1491.65SjruohoSUBDIR+=	est
1501.110SmartinSUBDIR+=	hdafg
1511.110SmartinSUBDIR+=	hdaudio
1521.144SjmcneillSUBDIR+=	hdaudio_pci
1531.141SchristosSUBDIR+=	hdaudioverbose
1541.72SjruohoSUBDIR+=	hpet
1551.69SjruohoSUBDIR+=	odcm
1561.66SjruohoSUBDIR+=	powernow
1571.150SpgoyetteSUBDIR+=	tco
1581.29SyamtSUBDIR+=	tprof_pmi
1591.70SyamtSUBDIR+=	tprof_amdpmi
1601.95SjmcneillSUBDIR+=	vmt
1611.29Syamt.endif
1621.29Syamt
1631.140Sbad.if ${MACHINE_ARCH} == "i386" || \
1641.137Sbad    ${MACHINE_ARCH} == "x86_64"
1651.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1661.137Sbad.endif
1671.137Sbad
1681.126Salnsn.if ${MKSLJIT} != "no"
1691.126Salnsn# No modules for arm, mips and powerpc yet.
1701.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1711.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
1721.115Salnsn    ${MACHINE_ARCH} == "sparc"
1731.113SalnsnSUBDIR+=	bpfjit
1741.112SalnsnSUBDIR+=	sljit
1751.112Salnsn.endif
1761.126Salnsn.endif
1771.112Salnsn
1781.85Sjruoho#
1791.85Sjruoho# ACPI modules
1801.85Sjruoho#
1811.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
1821.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
1831.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
1841.46SpgoyetteSUBDIR+=	acpiverbose
1851.46Spgoyette.endif
1861.46Spgoyette
1871.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
1881.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
1891.52SjruohoSUBDIR+=	acpiacad
1901.52SjruohoSUBDIR+=	acpibat
1911.52SjruohoSUBDIR+=	acpibut
1921.52SjruohoSUBDIR+=	acpicpu
1931.53SjruohoSUBDIR+=	acpidalb
1941.58SjruohoSUBDIR+=	acpifan
1951.52SjruohoSUBDIR+=	acpilid
1961.57SjruohoSUBDIR+=	acpipmtr
1971.53SjruohoSUBDIR+=	acpitz
1981.53SjruohoSUBDIR+=	acpivga
1991.86SjruohoSUBDIR+=	acpiwdrt
2001.51SjmcneillSUBDIR+=	acpiwmi
2011.53SjruohoSUBDIR+=	aibs
2021.54SjruohoSUBDIR+=	asus
2031.63SjruohoSUBDIR+=	fujbp
2041.63SjruohoSUBDIR+=	fujhk
2051.75SjruohoSUBDIR+=	hpacel
2061.54SjruohoSUBDIR+=	hpqlb
2071.52SjruohoSUBDIR+=	thinkpad
2081.50SjmcneillSUBDIR+=	wmidell
2091.83SjruohoSUBDIR+=	wmieeepc
2101.50SjmcneillSUBDIR+=	wmihp
2111.50SjmcneillSUBDIR+=	wmimsi
2121.50Sjmcneill.endif
2131.50Sjmcneill
2141.156Smatt.if ${MACHINE_CPU} == "arm" \
2151.156Smatt    || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
2161.151SmattSUBDIR+=	compat_netbsd32
2171.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2181.159SpgoyetteSUBDIR+=	compat_netbsd32_mqueue
2191.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2201.151Smatt.endif
2211.151Smatt
2221.27Sabs.if ${MACHINE_ARCH} == "x86_64"
2231.15SadSUBDIR+=	compat_linux32
2241.15SadSUBDIR+=	compat_netbsd32
2251.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2261.159SpgoyetteSUBDIR+=	compat_netbsd32_mqueue
2271.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2281.15Sad.endif
2291.15Sad
2301.27Sabs.if ${MACHINE_ARCH} == "i386"
2311.90SjmcneillSUBDIR+=	ati_pcigart
2321.15SadSUBDIR+=	compat_freebsd
2331.15SadSUBDIR+=	compat_ibcs2
2341.15SadSUBDIR+=	compat_svr4
2351.90SjmcneillSUBDIR+=	mach64drm
2361.90SjmcneillSUBDIR+=	mgadrm
2371.76SjmcneillSUBDIR+=	nsclpcsio
2381.62SjmcneillSUBDIR+=	padlock
2391.90SjmcneillSUBDIR+=	r128drm
2401.90SjmcneillSUBDIR+=	radeondrm
2411.90SjmcneillSUBDIR+=	savagedrm
2421.90SjmcneillSUBDIR+=	sisdrm
2431.90SjmcneillSUBDIR+=	tdfxdrm
2441.67SjruohoSUBDIR+=	viac7temp
2451.90SjmcneillSUBDIR+=	viadrm
2461.149SriastradSUBDIR+=	viadrmums
2471.15Sad.endif
2481.15Sad
2491.142Schristos.if ${MACHINE_ARCH} == "i386" || \
2501.142Schristos    ${MACHINE_ARCH} == "x86_64"
2511.142SchristosSUBDIR+=	azalia
2521.142SchristosSUBDIR+=	compat_linux
2531.142SchristosSUBDIR+=	drm
2541.142SchristosSUBDIR+=	drmkms
2551.142SchristosSUBDIR+=	drmkms_linux
2561.142SchristosSUBDIR+=	drmkms_pci
2571.142SchristosSUBDIR+=	i915drm
2581.142SchristosSUBDIR+=	i915drmkms
2591.142SchristosSUBDIR+=	pad
2601.85Sjruoho#
2611.85Sjruoho# ISA modules
2621.85Sjruoho#
2631.59SjmcneillSUBDIR+=	aps
2641.80SjmcneillSUBDIR+=	finsio
2651.79SjmcneillSUBDIR+=	itesio
2661.101SjakllschSUBDIR+=	lm
2671.101SjakllschSUBDIR+=	lm_isa
2681.101SjakllschSUBDIR+=	lm_isa_common
2691.101SjakllschSUBDIR+=	lm_wbsio
2701.101SjakllschSUBDIR+=	wbsio
2711.56Sjmcneill.endif
2721.56Sjmcneill
2731.49Stsutsui.if ${MACHINE_CPU} == "m68k"
2741.47StsutsuiSUBDIR+=	compat_aoutm68k
2751.47Stsutsui#SUBDIR+=	compat_linux
2761.47Stsutsui#SUBDIR+=	compat_sunos
2771.47Stsutsui#SUBDIR+=	compat_svr4
2781.47Stsutsui.endif
2791.47Stsutsui
2801.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \
2811.88Smbalmer    ${MACHINE_ARCH} == "x86_64" || \
2821.88Smbalmer    ${MACHINE_ARCH} == "sparc64"
2831.88SmbalmerSUBDIR+=	pwdog
2841.88Smbalmer.endif
2851.88Smbalmer
2861.23Sagc.include <bsd.own.mk>
2871.23Sagc
2881.107Sreinoud#
2891.107Sreinoud# NetBSD/usermode support
2901.107Sreinoud#
2911.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \
2921.107Sreinoud    ${MACHINE_ARCH} == "x86_64"
2931.107SreinoudSUBDIR+=	../arch/usermode/modules/syscallemu
2941.107Sreinoud.endif
2951.107Sreinoud
2961.23Sagc# we need our device mapper for LVM
2971.23Sagc.if (${MKLVM} != "no")
2981.28SyamtSUBDIR+= 	dm
2991.23Sagc.endif
3001.23Sagc
3011.39Sdarran.if (${MKDTRACE} != "no")
3021.116SchsSUBDIR+=	cyclic
3031.39SdarranSUBDIR+=	dtrace
3041.39Sdarran.endif
3051.39Sdarran
3061.39Sdarran# we need solaris for the dtrace and zfs modules
3071.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
3081.39SdarranSUBDIR+=        solaris
3091.39Sdarran.endif
3101.39Sdarran
3111.34Shaad.if (${MKZFS} != "no")
3121.34ShaadSUBDIR+=	zfs
3131.34Shaad.endif
3141.34Shaad
3151.73Smrg.if (${MKCOMPATMODULES} != "no")
3161.73SmrgSUBDIR+=	arch
3171.73Smrg.endif
3181.73Smrg
3191.84Sjmcneill#
3201.84Sjmcneill# DTV modules
3211.84Sjmcneill#
3221.84SjmcneillSUBDIR+=	dtv
3231.84SjmcneillSUBDIR+=	dtv_math
3241.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
3251.84Sjmcneill# tuners/demods
3261.84SjmcneillSUBDIR+=	au8522
3271.84SjmcneillSUBDIR+=	cx24227
3281.84SjmcneillSUBDIR+=	lg3303
3291.84SjmcneillSUBDIR+=	mt2131
3301.84SjmcneillSUBDIR+=	nxt2k
3311.84SjmcneillSUBDIR+=	tvpll
3321.84SjmcneillSUBDIR+=	xc3028
3331.84SjmcneillSUBDIR+=	xc5k
3341.91SjruohoSUBDIR+=	zl10353
3351.84Sjmcneill# hardware drivers
3361.84SjmcneillSUBDIR+=	auvitek
3371.84SjmcneillSUBDIR+=	coram
3381.84SjmcneillSUBDIR+=	cxdtv
3391.84SjmcneillSUBDIR+=	emdtv
3401.155SpgoyetteSUBDIR+=	spkr
3411.84Sjmcneill.endif
3421.84Sjmcneill
3431.98Sriz.if (${MKISCSI} != "no")
3441.98SrizSUBDIR+=	iscsi
3451.98Sriz.endif
3461.98Sriz
3471.154SpgoyetteSUBDIR+=	examples	# build these regularly to avoid bit-rot
3481.154Spgoyette
3491.1Sad.include <bsd.subdir.mk>
350