Makefile revision 1.156
11.156Smatt#	$NetBSD: Makefile,v 1.156 2015/07/09 14:41:30 matt 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.133SpgoyetteSUBDIR+=	camellia
141.133SpgoyetteSUBDIR+=	cast128
151.132SpgoyetteSUBDIR+=	ccd
161.7SrumbleSUBDIR+=	cd9660
171.129SpgoyetteSUBDIR+=	cgd
181.132SpgoyetteSUBDIR+=	chfs
191.134SpgoyetteSUBDIR+=	crypto
201.7SrumbleSUBDIR+=	coda
211.7SrumbleSUBDIR+=	coda5
221.15SadSUBDIR+=	compat
231.152SpgoyetteSUBDIR+=	compat_sysv
241.15SadSUBDIR+=	compat_ossaudio
251.15SadSUBDIR+=	coredump
261.104SpgoyetteSUBDIR+=	dbcool
271.133SpgoyetteSUBDIR+=	des
281.129SpgoyetteSUBDIR+=	dk_subr
291.7SrumbleSUBDIR+=	efs
301.7SrumbleSUBDIR+=	ext2fs
311.15SadSUBDIR+=	exec_script
321.7SrumbleSUBDIR+=	fdesc
331.7SrumbleSUBDIR+=	ffs
341.18SadSUBDIR+=	filecore
351.93SsjgSUBDIR+=	filemon
361.68SahokaSUBDIR+=	flash
371.15SadSUBDIR+=	fss
381.89SmbalmerSUBDIR+=	gpio
391.94SmbalmerSUBDIR+=	gpioiic
401.92SmbalmerSUBDIR+=	gpioow
411.89SmbalmerSUBDIR+=	gpiosim
421.7SrumbleSUBDIR+=	hfs
431.136SkardelSUBDIR+=	hythygtemp
441.143SjmcneillSUBDIR+=	i2cexec
451.105SpgoyetteSUBDIR+=	if_axe
461.120SnonakaSUBDIR+=	if_axen
471.118SchristosSUBDIR+=	if_npflog
481.124SskrllSUBDIR+=	if_smsc
491.94SmbalmerSUBDIR+=	iic
501.7SrumbleSUBDIR+=	kernfs
511.22SadSUBDIR+=	layerfs
521.7SrumbleSUBDIR+=	lfs
531.121SmbalmerSUBDIR+=	lua
541.128SlnetoSUBDIR+=	luasystm
551.123SmbalmerSUBDIR+=	luapmf
561.7SrumbleSUBDIR+=	mfs
571.45SpgoyetteSUBDIR+=	miiverbose
581.45SpgoyetteSUBDIR+=	miniroot
591.31SrmindSUBDIR+=	mqueue
601.18SadSUBDIR+=	msdos
611.68SahokaSUBDIR+=	nand
621.68SahokaSUBDIR+=	nandemulator
631.15SadSUBDIR+=	nfs
641.15SadSUBDIR+=	nfsserver
651.30SreinoudSUBDIR+=	nilfs
661.96StronSUBDIR+=	npf
671.97StronSUBDIR+=	npf_alg_icmp
681.111SrmindSUBDIR+=	npf_ext_log
691.119SchristosSUBDIR+=	npf_ext_normalize
701.117SrmindSUBDIR+=	npf_ext_rndblock
711.7SrumbleSUBDIR+=	ntfs
721.18SadSUBDIR+=	null
731.92SmbalmerSUBDIR+=	onewire
741.134SpgoyetteSUBDIR+=	opencrypto
751.7SrumbleSUBDIR+=	overlay
761.42SpgoyetteSUBDIR+=	pciverbose
771.41SahokaSUBDIR+=	pf
781.19ScubeSUBDIR+=	ppp_bsdcomp
791.19ScubeSUBDIR+=	ppp_deflate
801.7SrumbleSUBDIR+=	procfs
811.7SrumbleSUBDIR+=	ptyfs
821.7SrumbleSUBDIR+=	puffs
831.15SadSUBDIR+=	putter
841.44SpgoyetteSUBDIR+=	scsiverbose
851.103SpgoyetteSUBDIR+=	sdtemp
861.33SeladSUBDIR+=	secmodel_bsd44
871.100SjymSUBDIR+=	secmodel_extensions
881.33SeladSUBDIR+=	secmodel_overlay
891.33SeladSUBDIR+=	securelevel
901.133SpgoyetteSUBDIR+=	skipjack
911.7SrumbleSUBDIR+=	smbfs
921.81SpgoyetteSUBDIR+=	spdmem
931.146SpgoyetteSUBDIR+=	sysmon
941.146SpgoyetteSUBDIR+=	sysmon_envsys
951.146SpgoyetteSUBDIR+=	sysmon_power
961.146SpgoyetteSUBDIR+=	sysmon_taskq
971.146SpgoyetteSUBDIR+=	sysmon_wdog
981.24SpookaSUBDIR+=	sysvbfs
991.153SpgoyetteSUBDIR+=	sysv_ipc
1001.33SeladSUBDIR+=	suser
1011.134SpgoyetteSUBDIR+=	swcrypto
1021.48SpgoyetteSUBDIR+=	swsensor
1031.145SpgoyetteSUBDIR+=	swwdog
1041.7SrumbleSUBDIR+=	tmpfs
1051.108SriastradSUBDIR+=	uatp
1061.7SrumbleSUBDIR+=	udf
1071.18SadSUBDIR+=	umap
1081.7SrumbleSUBDIR+=	union
1091.43SpgoyetteSUBDIR+=	usbverbose
1101.106SchristosSUBDIR+=	vcoda
1111.78SenamiSUBDIR+=	v7fs
1121.25ShaadSUBDIR+=	vnd
1131.131SpgoyetteSUBDIR+=	zlib
1141.29SyamtSUBDIR+=	tprof
1151.7Srumble.if (defined(NOTYET))
1161.135SpgoyetteSUBDIR+=	hifn		# Builds on architectures with PCI bus
1171.7SrumbleSUBDIR+=	unionfs
1181.7Srumble.endif
1191.37Sdyoung.if ${MKBINUTILS} != "no"
1201.37SdyoungSUBDIR+=	xldscripts
1211.37Sdyoung.endif
1221.7Srumble
1231.15Sad# Machine dependent section
1241.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \
1251.49Stsutsui    ${MACHINE_CPU} == "m68k"
1261.47StsutsuiSUBDIR+=	exec_aout
1271.47Stsutsui.endif
1281.47Stsutsui
1291.139Smatt.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64"
1301.17SmartinSUBDIR+=	exec_elf32
1311.17Smartin.endif
1321.15Sad
1331.139Smatt.if ${MACHINE_CPU} == "aarch64" || \
1341.139Smatt    ${MACHINE_ARCH} == "alpha" || \
1351.21Stsutsui    ${MACHINE_ARCH} == "sparc64" || \
1361.21Stsutsui    ${MACHINE_ARCH} == "x86_64"
1371.20SheSUBDIR+=	exec_elf64
1381.20She.endif
1391.20She
1401.29Syamt.if ${MACHINE_ARCH} == "i386" || \
1411.29Syamt    ${MACHINE_ARCH} == "x86_64"
1421.71SjruohoSUBDIR+=	amdtemp
1431.64SjruohoSUBDIR+=	coretemp
1441.65SjruohoSUBDIR+=	est
1451.110SmartinSUBDIR+=	hdafg
1461.110SmartinSUBDIR+=	hdaudio
1471.144SjmcneillSUBDIR+=	hdaudio_pci
1481.141SchristosSUBDIR+=	hdaudioverbose
1491.72SjruohoSUBDIR+=	hpet
1501.69SjruohoSUBDIR+=	odcm
1511.66SjruohoSUBDIR+=	powernow
1521.150SpgoyetteSUBDIR+=	tco
1531.29SyamtSUBDIR+=	tprof_pmi
1541.70SyamtSUBDIR+=	tprof_amdpmi
1551.95SjmcneillSUBDIR+=	vmt
1561.29Syamt.endif
1571.29Syamt
1581.140Sbad.if ${MACHINE_ARCH} == "i386" || \
1591.137Sbad    ${MACHINE_ARCH} == "x86_64"
1601.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1611.137Sbad.endif
1621.137Sbad
1631.126Salnsn.if ${MKSLJIT} != "no"
1641.126Salnsn# No modules for arm, mips and powerpc yet.
1651.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1661.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
1671.115Salnsn    ${MACHINE_ARCH} == "sparc"
1681.113SalnsnSUBDIR+=	bpfjit
1691.112SalnsnSUBDIR+=	sljit
1701.112Salnsn.endif
1711.126Salnsn.endif
1721.112Salnsn
1731.85Sjruoho#
1741.85Sjruoho# ACPI modules
1751.85Sjruoho#
1761.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
1771.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
1781.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
1791.46SpgoyetteSUBDIR+=	acpiverbose
1801.46Spgoyette.endif
1811.46Spgoyette
1821.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
1831.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
1841.52SjruohoSUBDIR+=	acpiacad
1851.52SjruohoSUBDIR+=	acpibat
1861.52SjruohoSUBDIR+=	acpibut
1871.52SjruohoSUBDIR+=	acpicpu
1881.53SjruohoSUBDIR+=	acpidalb
1891.58SjruohoSUBDIR+=	acpifan
1901.52SjruohoSUBDIR+=	acpilid
1911.57SjruohoSUBDIR+=	acpipmtr
1921.53SjruohoSUBDIR+=	acpitz
1931.53SjruohoSUBDIR+=	acpivga
1941.86SjruohoSUBDIR+=	acpiwdrt
1951.51SjmcneillSUBDIR+=	acpiwmi
1961.53SjruohoSUBDIR+=	aibs
1971.54SjruohoSUBDIR+=	asus
1981.63SjruohoSUBDIR+=	fujbp
1991.63SjruohoSUBDIR+=	fujhk
2001.75SjruohoSUBDIR+=	hpacel
2011.54SjruohoSUBDIR+=	hpqlb
2021.52SjruohoSUBDIR+=	thinkpad
2031.50SjmcneillSUBDIR+=	wmidell
2041.83SjruohoSUBDIR+=	wmieeepc
2051.50SjmcneillSUBDIR+=	wmihp
2061.50SjmcneillSUBDIR+=	wmimsi
2071.50Sjmcneill.endif
2081.50Sjmcneill
2091.156Smatt.if ${MACHINE_CPU} == "arm" \
2101.156Smatt    || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
2111.151SmattSUBDIR+=	compat_netbsd32
2121.151Smatt.endif
2131.151Smatt
2141.27Sabs.if ${MACHINE_ARCH} == "x86_64"
2151.15SadSUBDIR+=	compat_linux32
2161.15SadSUBDIR+=	compat_netbsd32
2171.15Sad.endif
2181.15Sad
2191.27Sabs.if ${MACHINE_ARCH} == "i386"
2201.90SjmcneillSUBDIR+=	ati_pcigart
2211.15SadSUBDIR+=	compat_freebsd
2221.15SadSUBDIR+=	compat_ibcs2
2231.15SadSUBDIR+=	compat_svr4
2241.90SjmcneillSUBDIR+=	mach64drm
2251.90SjmcneillSUBDIR+=	mgadrm
2261.76SjmcneillSUBDIR+=	nsclpcsio
2271.62SjmcneillSUBDIR+=	padlock
2281.90SjmcneillSUBDIR+=	r128drm
2291.90SjmcneillSUBDIR+=	radeondrm
2301.90SjmcneillSUBDIR+=	savagedrm
2311.90SjmcneillSUBDIR+=	sisdrm
2321.90SjmcneillSUBDIR+=	tdfxdrm
2331.67SjruohoSUBDIR+=	viac7temp
2341.90SjmcneillSUBDIR+=	viadrm
2351.149SriastradSUBDIR+=	viadrmums
2361.15Sad.endif
2371.15Sad
2381.142Schristos.if ${MACHINE_ARCH} == "i386" || \
2391.142Schristos    ${MACHINE_ARCH} == "x86_64"
2401.142SchristosSUBDIR+=	azalia
2411.142SchristosSUBDIR+=	compat_linux
2421.142SchristosSUBDIR+=	drm
2431.142SchristosSUBDIR+=	drmkms
2441.142SchristosSUBDIR+=	drmkms_linux
2451.142SchristosSUBDIR+=	drmkms_pci
2461.142SchristosSUBDIR+=	i915drm
2471.142SchristosSUBDIR+=	i915drmkms
2481.142SchristosSUBDIR+=	pad
2491.85Sjruoho#
2501.85Sjruoho# ISA modules
2511.85Sjruoho#
2521.59SjmcneillSUBDIR+=	aps
2531.80SjmcneillSUBDIR+=	finsio
2541.79SjmcneillSUBDIR+=	itesio
2551.101SjakllschSUBDIR+=	lm
2561.101SjakllschSUBDIR+=	lm_isa
2571.101SjakllschSUBDIR+=	lm_isa_common
2581.101SjakllschSUBDIR+=	lm_wbsio
2591.101SjakllschSUBDIR+=	wbsio
2601.56Sjmcneill.endif
2611.56Sjmcneill
2621.49Stsutsui.if ${MACHINE_CPU} == "m68k"
2631.47StsutsuiSUBDIR+=	compat_aoutm68k
2641.47Stsutsui#SUBDIR+=	compat_linux
2651.47Stsutsui#SUBDIR+=	compat_sunos
2661.47Stsutsui#SUBDIR+=	compat_svr4
2671.47Stsutsui.endif
2681.47Stsutsui
2691.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \
2701.88Smbalmer    ${MACHINE_ARCH} == "x86_64" || \
2711.88Smbalmer    ${MACHINE_ARCH} == "sparc64"
2721.88SmbalmerSUBDIR+=	pwdog
2731.88Smbalmer.endif
2741.88Smbalmer
2751.23Sagc.include <bsd.own.mk>
2761.23Sagc
2771.107Sreinoud#
2781.107Sreinoud# NetBSD/usermode support
2791.107Sreinoud#
2801.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \
2811.107Sreinoud    ${MACHINE_ARCH} == "x86_64"
2821.107SreinoudSUBDIR+=	../arch/usermode/modules/syscallemu
2831.107Sreinoud.endif
2841.107Sreinoud
2851.23Sagc# we need our device mapper for LVM
2861.23Sagc.if (${MKLVM} != "no")
2871.28SyamtSUBDIR+= 	dm
2881.23Sagc.endif
2891.23Sagc
2901.39Sdarran.if (${MKDTRACE} != "no")
2911.116SchsSUBDIR+=	cyclic
2921.39SdarranSUBDIR+=	dtrace
2931.39Sdarran.endif
2941.39Sdarran
2951.39Sdarran# we need solaris for the dtrace and zfs modules
2961.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
2971.39SdarranSUBDIR+=        solaris
2981.39Sdarran.endif
2991.39Sdarran
3001.34Shaad.if (${MKZFS} != "no")
3011.34ShaadSUBDIR+=	zfs
3021.34Shaad.endif
3031.34Shaad
3041.73Smrg.if (${MKCOMPATMODULES} != "no")
3051.73SmrgSUBDIR+=	arch
3061.73Smrg.endif
3071.73Smrg
3081.84Sjmcneill#
3091.84Sjmcneill# DTV modules
3101.84Sjmcneill#
3111.84SjmcneillSUBDIR+=	dtv
3121.84SjmcneillSUBDIR+=	dtv_math
3131.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
3141.84Sjmcneill# tuners/demods
3151.84SjmcneillSUBDIR+=	au8522
3161.84SjmcneillSUBDIR+=	cx24227
3171.84SjmcneillSUBDIR+=	lg3303
3181.84SjmcneillSUBDIR+=	mt2131
3191.84SjmcneillSUBDIR+=	nxt2k
3201.84SjmcneillSUBDIR+=	tvpll
3211.84SjmcneillSUBDIR+=	xc3028
3221.84SjmcneillSUBDIR+=	xc5k
3231.91SjruohoSUBDIR+=	zl10353
3241.84Sjmcneill# hardware drivers
3251.84SjmcneillSUBDIR+=	auvitek
3261.84SjmcneillSUBDIR+=	coram
3271.84SjmcneillSUBDIR+=	cxdtv
3281.84SjmcneillSUBDIR+=	emdtv
3291.155SpgoyetteSUBDIR+=	spkr
3301.84Sjmcneill.endif
3311.84Sjmcneill
3321.98Sriz.if (${MKISCSI} != "no")
3331.98SrizSUBDIR+=	iscsi
3341.98Sriz.endif
3351.98Sriz
3361.154SpgoyetteSUBDIR+=	examples	# build these regularly to avoid bit-rot
3371.154Spgoyette
3381.1Sad.include <bsd.subdir.mk>
339