Makefile revision 1.173
11.173Spgoyette#	$NetBSD: Makefile,v 1.173 2016/08/06 22:03:45 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.171SchristosSUBDIR+=	if_ppp
521.172SchristosSUBDIR+=	if_sl
531.124SskrllSUBDIR+=	if_smsc
541.172SchristosSUBDIR+=	if_strip
551.94SmbalmerSUBDIR+=	iic
561.167SpgoyetteSUBDIR+=	ipl
571.7SrumbleSUBDIR+=	kernfs
581.22SadSUBDIR+=	layerfs
591.7SrumbleSUBDIR+=	lfs
601.121SmbalmerSUBDIR+=	lua
611.128SlnetoSUBDIR+=	luasystm
621.123SmbalmerSUBDIR+=	luapmf
631.7SrumbleSUBDIR+=	mfs
641.45SpgoyetteSUBDIR+=	miiverbose
651.45SpgoyetteSUBDIR+=	miniroot
661.31SrmindSUBDIR+=	mqueue
671.18SadSUBDIR+=	msdos
681.68SahokaSUBDIR+=	nand
691.68SahokaSUBDIR+=	nandemulator
701.15SadSUBDIR+=	nfs
711.15SadSUBDIR+=	nfsserver
721.30SreinoudSUBDIR+=	nilfs
731.96StronSUBDIR+=	npf
741.97StronSUBDIR+=	npf_alg_icmp
751.111SrmindSUBDIR+=	npf_ext_log
761.119SchristosSUBDIR+=	npf_ext_normalize
771.117SrmindSUBDIR+=	npf_ext_rndblock
781.7SrumbleSUBDIR+=	ntfs
791.18SadSUBDIR+=	null
801.92SmbalmerSUBDIR+=	onewire
811.134SpgoyetteSUBDIR+=	opencrypto
821.7SrumbleSUBDIR+=	overlay
831.42SpgoyetteSUBDIR+=	pciverbose
841.41SahokaSUBDIR+=	pf
851.19ScubeSUBDIR+=	ppp_bsdcomp
861.19ScubeSUBDIR+=	ppp_deflate
871.7SrumbleSUBDIR+=	procfs
881.7SrumbleSUBDIR+=	ptyfs
891.7SrumbleSUBDIR+=	puffs
901.15SadSUBDIR+=	putter
911.165SpgoyetteSUBDIR+=	raid
921.44SpgoyetteSUBDIR+=	scsiverbose
931.103SpgoyetteSUBDIR+=	sdtemp
941.33SeladSUBDIR+=	secmodel_bsd44
951.100SjymSUBDIR+=	secmodel_extensions
961.33SeladSUBDIR+=	secmodel_overlay
971.33SeladSUBDIR+=	securelevel
981.133SpgoyetteSUBDIR+=	skipjack
991.168SpgoyetteSUBDIR+=	slcompress
1001.7SrumbleSUBDIR+=	smbfs
1011.81SpgoyetteSUBDIR+=	spdmem
1021.173SpgoyetteSUBDIR+=	sppp_subr
1031.146SpgoyetteSUBDIR+=	sysmon
1041.146SpgoyetteSUBDIR+=	sysmon_envsys
1051.146SpgoyetteSUBDIR+=	sysmon_power
1061.146SpgoyetteSUBDIR+=	sysmon_taskq
1071.146SpgoyetteSUBDIR+=	sysmon_wdog
1081.24SpookaSUBDIR+=	sysvbfs
1091.153SpgoyetteSUBDIR+=	sysv_ipc
1101.33SeladSUBDIR+=	suser
1111.134SpgoyetteSUBDIR+=	swcrypto
1121.48SpgoyetteSUBDIR+=	swsensor
1131.145SpgoyetteSUBDIR+=	swwdog
1141.7SrumbleSUBDIR+=	tmpfs
1151.108SriastradSUBDIR+=	uatp
1161.7SrumbleSUBDIR+=	udf
1171.18SadSUBDIR+=	umap
1181.7SrumbleSUBDIR+=	union
1191.43SpgoyetteSUBDIR+=	usbverbose
1201.106SchristosSUBDIR+=	vcoda
1211.78SenamiSUBDIR+=	v7fs
1221.25ShaadSUBDIR+=	vnd
1231.157SpgoyetteSUBDIR+=	wapbl
1241.131SpgoyetteSUBDIR+=	zlib
1251.29SyamtSUBDIR+=	tprof
1261.7Srumble.if (defined(NOTYET))
1271.135SpgoyetteSUBDIR+=	hifn		# Builds on architectures with PCI bus
1281.7SrumbleSUBDIR+=	unionfs
1291.7Srumble.endif
1301.37Sdyoung.if ${MKBINUTILS} != "no"
1311.37SdyoungSUBDIR+=	xldscripts
1321.37Sdyoung.endif
1331.7Srumble
1341.15Sad# Machine dependent section
1351.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \
1361.49Stsutsui    ${MACHINE_CPU} == "m68k"
1371.47StsutsuiSUBDIR+=	exec_aout
1381.47Stsutsui.endif
1391.47Stsutsui
1401.169Sscole.if ${MACHINE_ARCH} != "alpha" && \
1411.169Sscole    ${MACHINE_CPU} != "aarch64" && \
1421.169Sscole    ${MACHINE_ARCH} != "ia64"
1431.17SmartinSUBDIR+=	exec_elf32
1441.17Smartin.endif
1451.15Sad
1461.139Smatt.if ${MACHINE_CPU} == "aarch64" || \
1471.139Smatt    ${MACHINE_ARCH} == "alpha" || \
1481.169Sscole    ${MACHINE_ARCH} == "ia64" || \
1491.21Stsutsui    ${MACHINE_ARCH} == "sparc64" || \
1501.21Stsutsui    ${MACHINE_ARCH} == "x86_64"
1511.20SheSUBDIR+=	exec_elf64
1521.20She.endif
1531.20She
1541.29Syamt.if ${MACHINE_ARCH} == "i386" || \
1551.29Syamt    ${MACHINE_ARCH} == "x86_64"
1561.71SjruohoSUBDIR+=	amdtemp
1571.64SjruohoSUBDIR+=	coretemp
1581.65SjruohoSUBDIR+=	est
1591.110SmartinSUBDIR+=	hdafg
1601.110SmartinSUBDIR+=	hdaudio
1611.144SjmcneillSUBDIR+=	hdaudio_pci
1621.141SchristosSUBDIR+=	hdaudioverbose
1631.72SjruohoSUBDIR+=	hpet
1641.69SjruohoSUBDIR+=	odcm
1651.66SjruohoSUBDIR+=	powernow
1661.150SpgoyetteSUBDIR+=	tco
1671.29SyamtSUBDIR+=	tprof_pmi
1681.70SyamtSUBDIR+=	tprof_amdpmi
1691.95SjmcneillSUBDIR+=	vmt
1701.29Syamt.endif
1711.29Syamt
1721.140Sbad.if ${MACHINE_ARCH} == "i386" || \
1731.137Sbad    ${MACHINE_ARCH} == "x86_64"
1741.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1751.137Sbad.endif
1761.137Sbad
1771.126Salnsn.if ${MKSLJIT} != "no"
1781.126Salnsn# No modules for arm, mips and powerpc yet.
1791.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1801.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
1811.115Salnsn    ${MACHINE_ARCH} == "sparc"
1821.113SalnsnSUBDIR+=	bpfjit
1831.112SalnsnSUBDIR+=	sljit
1841.112Salnsn.endif
1851.126Salnsn.endif
1861.112Salnsn
1871.85Sjruoho#
1881.85Sjruoho# ACPI modules
1891.85Sjruoho#
1901.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
1911.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
1921.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
1931.46SpgoyetteSUBDIR+=	acpiverbose
1941.46Spgoyette.endif
1951.46Spgoyette
1961.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
1971.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
1981.52SjruohoSUBDIR+=	acpiacad
1991.52SjruohoSUBDIR+=	acpibat
2001.52SjruohoSUBDIR+=	acpibut
2011.52SjruohoSUBDIR+=	acpicpu
2021.53SjruohoSUBDIR+=	acpidalb
2031.58SjruohoSUBDIR+=	acpifan
2041.52SjruohoSUBDIR+=	acpilid
2051.57SjruohoSUBDIR+=	acpipmtr
2061.53SjruohoSUBDIR+=	acpitz
2071.53SjruohoSUBDIR+=	acpivga
2081.86SjruohoSUBDIR+=	acpiwdrt
2091.51SjmcneillSUBDIR+=	acpiwmi
2101.53SjruohoSUBDIR+=	aibs
2111.54SjruohoSUBDIR+=	asus
2121.63SjruohoSUBDIR+=	fujbp
2131.63SjruohoSUBDIR+=	fujhk
2141.75SjruohoSUBDIR+=	hpacel
2151.54SjruohoSUBDIR+=	hpqlb
2161.52SjruohoSUBDIR+=	thinkpad
2171.50SjmcneillSUBDIR+=	wmidell
2181.83SjruohoSUBDIR+=	wmieeepc
2191.50SjmcneillSUBDIR+=	wmihp
2201.50SjmcneillSUBDIR+=	wmimsi
2211.50Sjmcneill.endif
2221.50Sjmcneill
2231.156Smatt.if ${MACHINE_CPU} == "arm" \
2241.156Smatt    || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
2251.151SmattSUBDIR+=	compat_netbsd32
2261.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2271.159SpgoyetteSUBDIR+=	compat_netbsd32_mqueue
2281.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2291.151Smatt.endif
2301.151Smatt
2311.27Sabs.if ${MACHINE_ARCH} == "x86_64"
2321.15SadSUBDIR+=	compat_linux32
2331.15SadSUBDIR+=	compat_netbsd32
2341.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2351.159SpgoyetteSUBDIR+=	compat_netbsd32_mqueue
2361.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2371.15Sad.endif
2381.15Sad
2391.27Sabs.if ${MACHINE_ARCH} == "i386"
2401.90SjmcneillSUBDIR+=	ati_pcigart
2411.15SadSUBDIR+=	compat_freebsd
2421.15SadSUBDIR+=	compat_ibcs2
2431.15SadSUBDIR+=	compat_svr4
2441.90SjmcneillSUBDIR+=	mach64drm
2451.90SjmcneillSUBDIR+=	mgadrm
2461.76SjmcneillSUBDIR+=	nsclpcsio
2471.62SjmcneillSUBDIR+=	padlock
2481.90SjmcneillSUBDIR+=	r128drm
2491.90SjmcneillSUBDIR+=	radeondrm
2501.90SjmcneillSUBDIR+=	savagedrm
2511.90SjmcneillSUBDIR+=	sisdrm
2521.90SjmcneillSUBDIR+=	tdfxdrm
2531.67SjruohoSUBDIR+=	viac7temp
2541.90SjmcneillSUBDIR+=	viadrm
2551.149SriastradSUBDIR+=	viadrmums
2561.15Sad.endif
2571.15Sad
2581.142Schristos.if ${MACHINE_ARCH} == "i386" || \
2591.142Schristos    ${MACHINE_ARCH} == "x86_64"
2601.142SchristosSUBDIR+=	azalia
2611.142SchristosSUBDIR+=	compat_linux
2621.142SchristosSUBDIR+=	drm
2631.142SchristosSUBDIR+=	drmkms
2641.142SchristosSUBDIR+=	drmkms_linux
2651.142SchristosSUBDIR+=	drmkms_pci
2661.142SchristosSUBDIR+=	i915drm
2671.142SchristosSUBDIR+=	i915drmkms
2681.142SchristosSUBDIR+=	pad
2691.85Sjruoho#
2701.85Sjruoho# ISA modules
2711.85Sjruoho#
2721.59SjmcneillSUBDIR+=	aps
2731.80SjmcneillSUBDIR+=	finsio
2741.79SjmcneillSUBDIR+=	itesio
2751.101SjakllschSUBDIR+=	lm
2761.101SjakllschSUBDIR+=	lm_isa
2771.101SjakllschSUBDIR+=	lm_isa_common
2781.101SjakllschSUBDIR+=	lm_wbsio
2791.101SjakllschSUBDIR+=	wbsio
2801.56Sjmcneill.endif
2811.56Sjmcneill
2821.49Stsutsui.if ${MACHINE_CPU} == "m68k"
2831.47StsutsuiSUBDIR+=	compat_aoutm68k
2841.47Stsutsui#SUBDIR+=	compat_linux
2851.47Stsutsui#SUBDIR+=	compat_sunos
2861.47Stsutsui#SUBDIR+=	compat_svr4
2871.47Stsutsui.endif
2881.47Stsutsui
2891.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \
2901.88Smbalmer    ${MACHINE_ARCH} == "x86_64" || \
2911.88Smbalmer    ${MACHINE_ARCH} == "sparc64"
2921.88SmbalmerSUBDIR+=	pwdog
2931.88Smbalmer.endif
2941.88Smbalmer
2951.23Sagc.include <bsd.own.mk>
2961.23Sagc
2971.107Sreinoud#
2981.107Sreinoud# NetBSD/usermode support
2991.107Sreinoud#
3001.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \
3011.107Sreinoud    ${MACHINE_ARCH} == "x86_64"
3021.107SreinoudSUBDIR+=	../arch/usermode/modules/syscallemu
3031.107Sreinoud.endif
3041.107Sreinoud
3051.23Sagc# we need our device mapper for LVM
3061.23Sagc.if (${MKLVM} != "no")
3071.28SyamtSUBDIR+= 	dm
3081.23Sagc.endif
3091.23Sagc
3101.39Sdarran.if (${MKDTRACE} != "no")
3111.116SchsSUBDIR+=	cyclic
3121.39SdarranSUBDIR+=	dtrace
3131.39Sdarran.endif
3141.39Sdarran
3151.39Sdarran# we need solaris for the dtrace and zfs modules
3161.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
3171.39SdarranSUBDIR+=        solaris
3181.39Sdarran.endif
3191.39Sdarran
3201.34Shaad.if (${MKZFS} != "no")
3211.34ShaadSUBDIR+=	zfs
3221.34Shaad.endif
3231.34Shaad
3241.73Smrg.if (${MKCOMPATMODULES} != "no")
3251.73SmrgSUBDIR+=	arch
3261.73Smrg.endif
3271.73Smrg
3281.84Sjmcneill#
3291.84Sjmcneill# DTV modules
3301.84Sjmcneill#
3311.84SjmcneillSUBDIR+=	dtv
3321.84SjmcneillSUBDIR+=	dtv_math
3331.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
3341.84Sjmcneill# tuners/demods
3351.84SjmcneillSUBDIR+=	au8522
3361.84SjmcneillSUBDIR+=	cx24227
3371.84SjmcneillSUBDIR+=	lg3303
3381.84SjmcneillSUBDIR+=	mt2131
3391.84SjmcneillSUBDIR+=	nxt2k
3401.84SjmcneillSUBDIR+=	tvpll
3411.84SjmcneillSUBDIR+=	xc3028
3421.84SjmcneillSUBDIR+=	xc5k
3431.91SjruohoSUBDIR+=	zl10353
3441.84Sjmcneill# hardware drivers
3451.84SjmcneillSUBDIR+=	auvitek
3461.84SjmcneillSUBDIR+=	coram
3471.84SjmcneillSUBDIR+=	cxdtv
3481.84SjmcneillSUBDIR+=	emdtv
3491.155SpgoyetteSUBDIR+=	spkr
3501.84Sjmcneill.endif
3511.84Sjmcneill
3521.98Sriz.if (${MKISCSI} != "no")
3531.98SrizSUBDIR+=	iscsi
3541.98Sriz.endif
3551.98Sriz
3561.154SpgoyetteSUBDIR+=	examples	# build these regularly to avoid bit-rot
3571.154Spgoyette
3581.1Sad.include <bsd.subdir.mk>
359