Makefile revision 1.171
11.171Schristos#	$NetBSD: Makefile,v 1.171 2016/08/06 06:06:54 christos 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.124SskrllSUBDIR+=	if_smsc
531.94SmbalmerSUBDIR+=	iic
541.167SpgoyetteSUBDIR+=	ipl
551.7SrumbleSUBDIR+=	kernfs
561.22SadSUBDIR+=	layerfs
571.7SrumbleSUBDIR+=	lfs
581.121SmbalmerSUBDIR+=	lua
591.128SlnetoSUBDIR+=	luasystm
601.123SmbalmerSUBDIR+=	luapmf
611.7SrumbleSUBDIR+=	mfs
621.45SpgoyetteSUBDIR+=	miiverbose
631.45SpgoyetteSUBDIR+=	miniroot
641.31SrmindSUBDIR+=	mqueue
651.18SadSUBDIR+=	msdos
661.68SahokaSUBDIR+=	nand
671.68SahokaSUBDIR+=	nandemulator
681.15SadSUBDIR+=	nfs
691.15SadSUBDIR+=	nfsserver
701.30SreinoudSUBDIR+=	nilfs
711.96StronSUBDIR+=	npf
721.97StronSUBDIR+=	npf_alg_icmp
731.111SrmindSUBDIR+=	npf_ext_log
741.119SchristosSUBDIR+=	npf_ext_normalize
751.117SrmindSUBDIR+=	npf_ext_rndblock
761.7SrumbleSUBDIR+=	ntfs
771.18SadSUBDIR+=	null
781.92SmbalmerSUBDIR+=	onewire
791.134SpgoyetteSUBDIR+=	opencrypto
801.7SrumbleSUBDIR+=	overlay
811.42SpgoyetteSUBDIR+=	pciverbose
821.41SahokaSUBDIR+=	pf
831.19ScubeSUBDIR+=	ppp_bsdcomp
841.19ScubeSUBDIR+=	ppp_deflate
851.7SrumbleSUBDIR+=	procfs
861.7SrumbleSUBDIR+=	ptyfs
871.7SrumbleSUBDIR+=	puffs
881.15SadSUBDIR+=	putter
891.165SpgoyetteSUBDIR+=	raid
901.44SpgoyetteSUBDIR+=	scsiverbose
911.103SpgoyetteSUBDIR+=	sdtemp
921.33SeladSUBDIR+=	secmodel_bsd44
931.100SjymSUBDIR+=	secmodel_extensions
941.33SeladSUBDIR+=	secmodel_overlay
951.33SeladSUBDIR+=	securelevel
961.133SpgoyetteSUBDIR+=	skipjack
971.168SpgoyetteSUBDIR+=	slcompress
981.7SrumbleSUBDIR+=	smbfs
991.81SpgoyetteSUBDIR+=	spdmem
1001.146SpgoyetteSUBDIR+=	sysmon
1011.146SpgoyetteSUBDIR+=	sysmon_envsys
1021.146SpgoyetteSUBDIR+=	sysmon_power
1031.146SpgoyetteSUBDIR+=	sysmon_taskq
1041.146SpgoyetteSUBDIR+=	sysmon_wdog
1051.24SpookaSUBDIR+=	sysvbfs
1061.153SpgoyetteSUBDIR+=	sysv_ipc
1071.33SeladSUBDIR+=	suser
1081.134SpgoyetteSUBDIR+=	swcrypto
1091.48SpgoyetteSUBDIR+=	swsensor
1101.145SpgoyetteSUBDIR+=	swwdog
1111.7SrumbleSUBDIR+=	tmpfs
1121.108SriastradSUBDIR+=	uatp
1131.7SrumbleSUBDIR+=	udf
1141.18SadSUBDIR+=	umap
1151.7SrumbleSUBDIR+=	union
1161.43SpgoyetteSUBDIR+=	usbverbose
1171.106SchristosSUBDIR+=	vcoda
1181.78SenamiSUBDIR+=	v7fs
1191.25ShaadSUBDIR+=	vnd
1201.157SpgoyetteSUBDIR+=	wapbl
1211.131SpgoyetteSUBDIR+=	zlib
1221.29SyamtSUBDIR+=	tprof
1231.7Srumble.if (defined(NOTYET))
1241.135SpgoyetteSUBDIR+=	hifn		# Builds on architectures with PCI bus
1251.7SrumbleSUBDIR+=	unionfs
1261.7Srumble.endif
1271.37Sdyoung.if ${MKBINUTILS} != "no"
1281.37SdyoungSUBDIR+=	xldscripts
1291.37Sdyoung.endif
1301.7Srumble
1311.15Sad# Machine dependent section
1321.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \
1331.49Stsutsui    ${MACHINE_CPU} == "m68k"
1341.47StsutsuiSUBDIR+=	exec_aout
1351.47Stsutsui.endif
1361.47Stsutsui
1371.169Sscole.if ${MACHINE_ARCH} != "alpha" && \
1381.169Sscole    ${MACHINE_CPU} != "aarch64" && \
1391.169Sscole    ${MACHINE_ARCH} != "ia64"
1401.17SmartinSUBDIR+=	exec_elf32
1411.17Smartin.endif
1421.15Sad
1431.139Smatt.if ${MACHINE_CPU} == "aarch64" || \
1441.139Smatt    ${MACHINE_ARCH} == "alpha" || \
1451.169Sscole    ${MACHINE_ARCH} == "ia64" || \
1461.21Stsutsui    ${MACHINE_ARCH} == "sparc64" || \
1471.21Stsutsui    ${MACHINE_ARCH} == "x86_64"
1481.20SheSUBDIR+=	exec_elf64
1491.20She.endif
1501.20She
1511.29Syamt.if ${MACHINE_ARCH} == "i386" || \
1521.29Syamt    ${MACHINE_ARCH} == "x86_64"
1531.71SjruohoSUBDIR+=	amdtemp
1541.64SjruohoSUBDIR+=	coretemp
1551.65SjruohoSUBDIR+=	est
1561.110SmartinSUBDIR+=	hdafg
1571.110SmartinSUBDIR+=	hdaudio
1581.144SjmcneillSUBDIR+=	hdaudio_pci
1591.141SchristosSUBDIR+=	hdaudioverbose
1601.72SjruohoSUBDIR+=	hpet
1611.69SjruohoSUBDIR+=	odcm
1621.66SjruohoSUBDIR+=	powernow
1631.150SpgoyetteSUBDIR+=	tco
1641.29SyamtSUBDIR+=	tprof_pmi
1651.70SyamtSUBDIR+=	tprof_amdpmi
1661.95SjmcneillSUBDIR+=	vmt
1671.29Syamt.endif
1681.29Syamt
1691.140Sbad.if ${MACHINE_ARCH} == "i386" || \
1701.137Sbad    ${MACHINE_ARCH} == "x86_64"
1711.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1721.137Sbad.endif
1731.137Sbad
1741.126Salnsn.if ${MKSLJIT} != "no"
1751.126Salnsn# No modules for arm, mips and powerpc yet.
1761.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1771.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
1781.115Salnsn    ${MACHINE_ARCH} == "sparc"
1791.113SalnsnSUBDIR+=	bpfjit
1801.112SalnsnSUBDIR+=	sljit
1811.112Salnsn.endif
1821.126Salnsn.endif
1831.112Salnsn
1841.85Sjruoho#
1851.85Sjruoho# ACPI modules
1861.85Sjruoho#
1871.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
1881.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
1891.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
1901.46SpgoyetteSUBDIR+=	acpiverbose
1911.46Spgoyette.endif
1921.46Spgoyette
1931.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
1941.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
1951.52SjruohoSUBDIR+=	acpiacad
1961.52SjruohoSUBDIR+=	acpibat
1971.52SjruohoSUBDIR+=	acpibut
1981.52SjruohoSUBDIR+=	acpicpu
1991.53SjruohoSUBDIR+=	acpidalb
2001.58SjruohoSUBDIR+=	acpifan
2011.52SjruohoSUBDIR+=	acpilid
2021.57SjruohoSUBDIR+=	acpipmtr
2031.53SjruohoSUBDIR+=	acpitz
2041.53SjruohoSUBDIR+=	acpivga
2051.86SjruohoSUBDIR+=	acpiwdrt
2061.51SjmcneillSUBDIR+=	acpiwmi
2071.53SjruohoSUBDIR+=	aibs
2081.54SjruohoSUBDIR+=	asus
2091.63SjruohoSUBDIR+=	fujbp
2101.63SjruohoSUBDIR+=	fujhk
2111.75SjruohoSUBDIR+=	hpacel
2121.54SjruohoSUBDIR+=	hpqlb
2131.52SjruohoSUBDIR+=	thinkpad
2141.50SjmcneillSUBDIR+=	wmidell
2151.83SjruohoSUBDIR+=	wmieeepc
2161.50SjmcneillSUBDIR+=	wmihp
2171.50SjmcneillSUBDIR+=	wmimsi
2181.50Sjmcneill.endif
2191.50Sjmcneill
2201.156Smatt.if ${MACHINE_CPU} == "arm" \
2211.156Smatt    || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
2221.151SmattSUBDIR+=	compat_netbsd32
2231.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2241.159SpgoyetteSUBDIR+=	compat_netbsd32_mqueue
2251.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2261.151Smatt.endif
2271.151Smatt
2281.27Sabs.if ${MACHINE_ARCH} == "x86_64"
2291.15SadSUBDIR+=	compat_linux32
2301.15SadSUBDIR+=	compat_netbsd32
2311.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2321.159SpgoyetteSUBDIR+=	compat_netbsd32_mqueue
2331.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2341.15Sad.endif
2351.15Sad
2361.27Sabs.if ${MACHINE_ARCH} == "i386"
2371.90SjmcneillSUBDIR+=	ati_pcigart
2381.15SadSUBDIR+=	compat_freebsd
2391.15SadSUBDIR+=	compat_ibcs2
2401.15SadSUBDIR+=	compat_svr4
2411.90SjmcneillSUBDIR+=	mach64drm
2421.90SjmcneillSUBDIR+=	mgadrm
2431.76SjmcneillSUBDIR+=	nsclpcsio
2441.62SjmcneillSUBDIR+=	padlock
2451.90SjmcneillSUBDIR+=	r128drm
2461.90SjmcneillSUBDIR+=	radeondrm
2471.90SjmcneillSUBDIR+=	savagedrm
2481.90SjmcneillSUBDIR+=	sisdrm
2491.90SjmcneillSUBDIR+=	tdfxdrm
2501.67SjruohoSUBDIR+=	viac7temp
2511.90SjmcneillSUBDIR+=	viadrm
2521.149SriastradSUBDIR+=	viadrmums
2531.15Sad.endif
2541.15Sad
2551.142Schristos.if ${MACHINE_ARCH} == "i386" || \
2561.142Schristos    ${MACHINE_ARCH} == "x86_64"
2571.142SchristosSUBDIR+=	azalia
2581.142SchristosSUBDIR+=	compat_linux
2591.142SchristosSUBDIR+=	drm
2601.142SchristosSUBDIR+=	drmkms
2611.142SchristosSUBDIR+=	drmkms_linux
2621.142SchristosSUBDIR+=	drmkms_pci
2631.142SchristosSUBDIR+=	i915drm
2641.142SchristosSUBDIR+=	i915drmkms
2651.142SchristosSUBDIR+=	pad
2661.85Sjruoho#
2671.85Sjruoho# ISA modules
2681.85Sjruoho#
2691.59SjmcneillSUBDIR+=	aps
2701.80SjmcneillSUBDIR+=	finsio
2711.79SjmcneillSUBDIR+=	itesio
2721.101SjakllschSUBDIR+=	lm
2731.101SjakllschSUBDIR+=	lm_isa
2741.101SjakllschSUBDIR+=	lm_isa_common
2751.101SjakllschSUBDIR+=	lm_wbsio
2761.101SjakllschSUBDIR+=	wbsio
2771.56Sjmcneill.endif
2781.56Sjmcneill
2791.49Stsutsui.if ${MACHINE_CPU} == "m68k"
2801.47StsutsuiSUBDIR+=	compat_aoutm68k
2811.47Stsutsui#SUBDIR+=	compat_linux
2821.47Stsutsui#SUBDIR+=	compat_sunos
2831.47Stsutsui#SUBDIR+=	compat_svr4
2841.47Stsutsui.endif
2851.47Stsutsui
2861.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \
2871.88Smbalmer    ${MACHINE_ARCH} == "x86_64" || \
2881.88Smbalmer    ${MACHINE_ARCH} == "sparc64"
2891.88SmbalmerSUBDIR+=	pwdog
2901.88Smbalmer.endif
2911.88Smbalmer
2921.23Sagc.include <bsd.own.mk>
2931.23Sagc
2941.107Sreinoud#
2951.107Sreinoud# NetBSD/usermode support
2961.107Sreinoud#
2971.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \
2981.107Sreinoud    ${MACHINE_ARCH} == "x86_64"
2991.107SreinoudSUBDIR+=	../arch/usermode/modules/syscallemu
3001.107Sreinoud.endif
3011.107Sreinoud
3021.23Sagc# we need our device mapper for LVM
3031.23Sagc.if (${MKLVM} != "no")
3041.28SyamtSUBDIR+= 	dm
3051.23Sagc.endif
3061.23Sagc
3071.39Sdarran.if (${MKDTRACE} != "no")
3081.116SchsSUBDIR+=	cyclic
3091.39SdarranSUBDIR+=	dtrace
3101.39Sdarran.endif
3111.39Sdarran
3121.39Sdarran# we need solaris for the dtrace and zfs modules
3131.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
3141.39SdarranSUBDIR+=        solaris
3151.39Sdarran.endif
3161.39Sdarran
3171.34Shaad.if (${MKZFS} != "no")
3181.34ShaadSUBDIR+=	zfs
3191.34Shaad.endif
3201.34Shaad
3211.73Smrg.if (${MKCOMPATMODULES} != "no")
3221.73SmrgSUBDIR+=	arch
3231.73Smrg.endif
3241.73Smrg
3251.84Sjmcneill#
3261.84Sjmcneill# DTV modules
3271.84Sjmcneill#
3281.84SjmcneillSUBDIR+=	dtv
3291.84SjmcneillSUBDIR+=	dtv_math
3301.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
3311.84Sjmcneill# tuners/demods
3321.84SjmcneillSUBDIR+=	au8522
3331.84SjmcneillSUBDIR+=	cx24227
3341.84SjmcneillSUBDIR+=	lg3303
3351.84SjmcneillSUBDIR+=	mt2131
3361.84SjmcneillSUBDIR+=	nxt2k
3371.84SjmcneillSUBDIR+=	tvpll
3381.84SjmcneillSUBDIR+=	xc3028
3391.84SjmcneillSUBDIR+=	xc5k
3401.91SjruohoSUBDIR+=	zl10353
3411.84Sjmcneill# hardware drivers
3421.84SjmcneillSUBDIR+=	auvitek
3431.84SjmcneillSUBDIR+=	coram
3441.84SjmcneillSUBDIR+=	cxdtv
3451.84SjmcneillSUBDIR+=	emdtv
3461.155SpgoyetteSUBDIR+=	spkr
3471.84Sjmcneill.endif
3481.84Sjmcneill
3491.98Sriz.if (${MKISCSI} != "no")
3501.98SrizSUBDIR+=	iscsi
3511.98Sriz.endif
3521.98Sriz
3531.154SpgoyetteSUBDIR+=	examples	# build these regularly to avoid bit-rot
3541.154Spgoyette
3551.1Sad.include <bsd.subdir.mk>
356