Makefile revision 1.165
11.165Spgoyette#	$NetBSD: Makefile,v 1.165 2015/12/26 01:00:01 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.133SpgoyetteSUBDIR+=	camellia
141.133SpgoyetteSUBDIR+=	cast128
151.132SpgoyetteSUBDIR+=	ccd
161.7SrumbleSUBDIR+=	cd9660
171.129SpgoyetteSUBDIR+=	cgd
181.132SpgoyetteSUBDIR+=	chfs
191.163SpgoyetteSUBDIR+=	clockctl
201.134SpgoyetteSUBDIR+=	crypto
211.7SrumbleSUBDIR+=	coda
221.7SrumbleSUBDIR+=	coda5
231.15SadSUBDIR+=	compat
241.15SadSUBDIR+=	compat_ossaudio
251.15SadSUBDIR+=	coredump
261.104SpgoyetteSUBDIR+=	dbcool
271.133SpgoyetteSUBDIR+=	des
281.129SpgoyetteSUBDIR+=	dk_subr
291.164SpgoyetteSUBDIR+=	drvctl
301.7SrumbleSUBDIR+=	efs
311.7SrumbleSUBDIR+=	ext2fs
321.15SadSUBDIR+=	exec_script
331.7SrumbleSUBDIR+=	fdesc
341.7SrumbleSUBDIR+=	ffs
351.18SadSUBDIR+=	filecore
361.93SsjgSUBDIR+=	filemon
371.68SahokaSUBDIR+=	flash
381.15SadSUBDIR+=	fss
391.89SmbalmerSUBDIR+=	gpio
401.94SmbalmerSUBDIR+=	gpioiic
411.92SmbalmerSUBDIR+=	gpioow
421.89SmbalmerSUBDIR+=	gpiosim
431.7SrumbleSUBDIR+=	hfs
441.136SkardelSUBDIR+=	hythygtemp
451.143SjmcneillSUBDIR+=	i2cexec
461.105SpgoyetteSUBDIR+=	if_axe
471.120SnonakaSUBDIR+=	if_axen
481.118SchristosSUBDIR+=	if_npflog
491.124SskrllSUBDIR+=	if_smsc
501.94SmbalmerSUBDIR+=	iic
511.7SrumbleSUBDIR+=	kernfs
521.22SadSUBDIR+=	layerfs
531.7SrumbleSUBDIR+=	lfs
541.121SmbalmerSUBDIR+=	lua
551.128SlnetoSUBDIR+=	luasystm
561.123SmbalmerSUBDIR+=	luapmf
571.7SrumbleSUBDIR+=	mfs
581.45SpgoyetteSUBDIR+=	miiverbose
591.45SpgoyetteSUBDIR+=	miniroot
601.31SrmindSUBDIR+=	mqueue
611.18SadSUBDIR+=	msdos
621.68SahokaSUBDIR+=	nand
631.68SahokaSUBDIR+=	nandemulator
641.15SadSUBDIR+=	nfs
651.15SadSUBDIR+=	nfsserver
661.30SreinoudSUBDIR+=	nilfs
671.96StronSUBDIR+=	npf
681.97StronSUBDIR+=	npf_alg_icmp
691.111SrmindSUBDIR+=	npf_ext_log
701.119SchristosSUBDIR+=	npf_ext_normalize
711.117SrmindSUBDIR+=	npf_ext_rndblock
721.7SrumbleSUBDIR+=	ntfs
731.18SadSUBDIR+=	null
741.92SmbalmerSUBDIR+=	onewire
751.134SpgoyetteSUBDIR+=	opencrypto
761.7SrumbleSUBDIR+=	overlay
771.42SpgoyetteSUBDIR+=	pciverbose
781.41SahokaSUBDIR+=	pf
791.19ScubeSUBDIR+=	ppp_bsdcomp
801.19ScubeSUBDIR+=	ppp_deflate
811.7SrumbleSUBDIR+=	procfs
821.7SrumbleSUBDIR+=	ptyfs
831.7SrumbleSUBDIR+=	puffs
841.15SadSUBDIR+=	putter
851.165SpgoyetteSUBDIR+=	raid
861.44SpgoyetteSUBDIR+=	scsiverbose
871.103SpgoyetteSUBDIR+=	sdtemp
881.33SeladSUBDIR+=	secmodel_bsd44
891.100SjymSUBDIR+=	secmodel_extensions
901.33SeladSUBDIR+=	secmodel_overlay
911.33SeladSUBDIR+=	securelevel
921.133SpgoyetteSUBDIR+=	skipjack
931.7SrumbleSUBDIR+=	smbfs
941.81SpgoyetteSUBDIR+=	spdmem
951.146SpgoyetteSUBDIR+=	sysmon
961.146SpgoyetteSUBDIR+=	sysmon_envsys
971.146SpgoyetteSUBDIR+=	sysmon_power
981.146SpgoyetteSUBDIR+=	sysmon_taskq
991.146SpgoyetteSUBDIR+=	sysmon_wdog
1001.24SpookaSUBDIR+=	sysvbfs
1011.153SpgoyetteSUBDIR+=	sysv_ipc
1021.33SeladSUBDIR+=	suser
1031.134SpgoyetteSUBDIR+=	swcrypto
1041.48SpgoyetteSUBDIR+=	swsensor
1051.145SpgoyetteSUBDIR+=	swwdog
1061.7SrumbleSUBDIR+=	tmpfs
1071.108SriastradSUBDIR+=	uatp
1081.7SrumbleSUBDIR+=	udf
1091.18SadSUBDIR+=	umap
1101.7SrumbleSUBDIR+=	union
1111.43SpgoyetteSUBDIR+=	usbverbose
1121.106SchristosSUBDIR+=	vcoda
1131.78SenamiSUBDIR+=	v7fs
1141.25ShaadSUBDIR+=	vnd
1151.157SpgoyetteSUBDIR+=	wapbl
1161.131SpgoyetteSUBDIR+=	zlib
1171.29SyamtSUBDIR+=	tprof
1181.7Srumble.if (defined(NOTYET))
1191.135SpgoyetteSUBDIR+=	hifn		# Builds on architectures with PCI bus
1201.7SrumbleSUBDIR+=	unionfs
1211.7Srumble.endif
1221.37Sdyoung.if ${MKBINUTILS} != "no"
1231.37SdyoungSUBDIR+=	xldscripts
1241.37Sdyoung.endif
1251.7Srumble
1261.15Sad# Machine dependent section
1271.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \
1281.49Stsutsui    ${MACHINE_CPU} == "m68k"
1291.47StsutsuiSUBDIR+=	exec_aout
1301.47Stsutsui.endif
1311.47Stsutsui
1321.139Smatt.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64"
1331.17SmartinSUBDIR+=	exec_elf32
1341.17Smartin.endif
1351.15Sad
1361.139Smatt.if ${MACHINE_CPU} == "aarch64" || \
1371.139Smatt    ${MACHINE_ARCH} == "alpha" || \
1381.21Stsutsui    ${MACHINE_ARCH} == "sparc64" || \
1391.21Stsutsui    ${MACHINE_ARCH} == "x86_64"
1401.20SheSUBDIR+=	exec_elf64
1411.20She.endif
1421.20She
1431.29Syamt.if ${MACHINE_ARCH} == "i386" || \
1441.29Syamt    ${MACHINE_ARCH} == "x86_64"
1451.71SjruohoSUBDIR+=	amdtemp
1461.64SjruohoSUBDIR+=	coretemp
1471.65SjruohoSUBDIR+=	est
1481.110SmartinSUBDIR+=	hdafg
1491.110SmartinSUBDIR+=	hdaudio
1501.144SjmcneillSUBDIR+=	hdaudio_pci
1511.141SchristosSUBDIR+=	hdaudioverbose
1521.72SjruohoSUBDIR+=	hpet
1531.69SjruohoSUBDIR+=	odcm
1541.66SjruohoSUBDIR+=	powernow
1551.150SpgoyetteSUBDIR+=	tco
1561.29SyamtSUBDIR+=	tprof_pmi
1571.70SyamtSUBDIR+=	tprof_amdpmi
1581.95SjmcneillSUBDIR+=	vmt
1591.29Syamt.endif
1601.29Syamt
1611.140Sbad.if ${MACHINE_ARCH} == "i386" || \
1621.137Sbad    ${MACHINE_ARCH} == "x86_64"
1631.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1641.137Sbad.endif
1651.137Sbad
1661.126Salnsn.if ${MKSLJIT} != "no"
1671.126Salnsn# No modules for arm, mips and powerpc yet.
1681.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1691.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
1701.115Salnsn    ${MACHINE_ARCH} == "sparc"
1711.113SalnsnSUBDIR+=	bpfjit
1721.112SalnsnSUBDIR+=	sljit
1731.112Salnsn.endif
1741.126Salnsn.endif
1751.112Salnsn
1761.85Sjruoho#
1771.85Sjruoho# ACPI modules
1781.85Sjruoho#
1791.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
1801.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
1811.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
1821.46SpgoyetteSUBDIR+=	acpiverbose
1831.46Spgoyette.endif
1841.46Spgoyette
1851.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
1861.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
1871.52SjruohoSUBDIR+=	acpiacad
1881.52SjruohoSUBDIR+=	acpibat
1891.52SjruohoSUBDIR+=	acpibut
1901.52SjruohoSUBDIR+=	acpicpu
1911.53SjruohoSUBDIR+=	acpidalb
1921.58SjruohoSUBDIR+=	acpifan
1931.52SjruohoSUBDIR+=	acpilid
1941.57SjruohoSUBDIR+=	acpipmtr
1951.53SjruohoSUBDIR+=	acpitz
1961.53SjruohoSUBDIR+=	acpivga
1971.86SjruohoSUBDIR+=	acpiwdrt
1981.51SjmcneillSUBDIR+=	acpiwmi
1991.53SjruohoSUBDIR+=	aibs
2001.54SjruohoSUBDIR+=	asus
2011.63SjruohoSUBDIR+=	fujbp
2021.63SjruohoSUBDIR+=	fujhk
2031.75SjruohoSUBDIR+=	hpacel
2041.54SjruohoSUBDIR+=	hpqlb
2051.52SjruohoSUBDIR+=	thinkpad
2061.50SjmcneillSUBDIR+=	wmidell
2071.83SjruohoSUBDIR+=	wmieeepc
2081.50SjmcneillSUBDIR+=	wmihp
2091.50SjmcneillSUBDIR+=	wmimsi
2101.50Sjmcneill.endif
2111.50Sjmcneill
2121.156Smatt.if ${MACHINE_CPU} == "arm" \
2131.156Smatt    || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
2141.151SmattSUBDIR+=	compat_netbsd32
2151.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2161.159SpgoyetteSUBDIR+=	compat_netbsd32_mqueue
2171.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2181.151Smatt.endif
2191.151Smatt
2201.27Sabs.if ${MACHINE_ARCH} == "x86_64"
2211.15SadSUBDIR+=	compat_linux32
2221.15SadSUBDIR+=	compat_netbsd32
2231.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2241.159SpgoyetteSUBDIR+=	compat_netbsd32_mqueue
2251.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2261.15Sad.endif
2271.15Sad
2281.27Sabs.if ${MACHINE_ARCH} == "i386"
2291.90SjmcneillSUBDIR+=	ati_pcigart
2301.15SadSUBDIR+=	compat_freebsd
2311.15SadSUBDIR+=	compat_ibcs2
2321.15SadSUBDIR+=	compat_svr4
2331.90SjmcneillSUBDIR+=	mach64drm
2341.90SjmcneillSUBDIR+=	mgadrm
2351.76SjmcneillSUBDIR+=	nsclpcsio
2361.62SjmcneillSUBDIR+=	padlock
2371.90SjmcneillSUBDIR+=	r128drm
2381.90SjmcneillSUBDIR+=	radeondrm
2391.90SjmcneillSUBDIR+=	savagedrm
2401.90SjmcneillSUBDIR+=	sisdrm
2411.90SjmcneillSUBDIR+=	tdfxdrm
2421.67SjruohoSUBDIR+=	viac7temp
2431.90SjmcneillSUBDIR+=	viadrm
2441.149SriastradSUBDIR+=	viadrmums
2451.15Sad.endif
2461.15Sad
2471.142Schristos.if ${MACHINE_ARCH} == "i386" || \
2481.142Schristos    ${MACHINE_ARCH} == "x86_64"
2491.142SchristosSUBDIR+=	azalia
2501.142SchristosSUBDIR+=	compat_linux
2511.142SchristosSUBDIR+=	drm
2521.142SchristosSUBDIR+=	drmkms
2531.142SchristosSUBDIR+=	drmkms_linux
2541.142SchristosSUBDIR+=	drmkms_pci
2551.142SchristosSUBDIR+=	i915drm
2561.142SchristosSUBDIR+=	i915drmkms
2571.142SchristosSUBDIR+=	pad
2581.85Sjruoho#
2591.85Sjruoho# ISA modules
2601.85Sjruoho#
2611.59SjmcneillSUBDIR+=	aps
2621.80SjmcneillSUBDIR+=	finsio
2631.79SjmcneillSUBDIR+=	itesio
2641.101SjakllschSUBDIR+=	lm
2651.101SjakllschSUBDIR+=	lm_isa
2661.101SjakllschSUBDIR+=	lm_isa_common
2671.101SjakllschSUBDIR+=	lm_wbsio
2681.101SjakllschSUBDIR+=	wbsio
2691.56Sjmcneill.endif
2701.56Sjmcneill
2711.49Stsutsui.if ${MACHINE_CPU} == "m68k"
2721.47StsutsuiSUBDIR+=	compat_aoutm68k
2731.47Stsutsui#SUBDIR+=	compat_linux
2741.47Stsutsui#SUBDIR+=	compat_sunos
2751.47Stsutsui#SUBDIR+=	compat_svr4
2761.47Stsutsui.endif
2771.47Stsutsui
2781.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \
2791.88Smbalmer    ${MACHINE_ARCH} == "x86_64" || \
2801.88Smbalmer    ${MACHINE_ARCH} == "sparc64"
2811.88SmbalmerSUBDIR+=	pwdog
2821.88Smbalmer.endif
2831.88Smbalmer
2841.23Sagc.include <bsd.own.mk>
2851.23Sagc
2861.107Sreinoud#
2871.107Sreinoud# NetBSD/usermode support
2881.107Sreinoud#
2891.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \
2901.107Sreinoud    ${MACHINE_ARCH} == "x86_64"
2911.107SreinoudSUBDIR+=	../arch/usermode/modules/syscallemu
2921.107Sreinoud.endif
2931.107Sreinoud
2941.23Sagc# we need our device mapper for LVM
2951.23Sagc.if (${MKLVM} != "no")
2961.28SyamtSUBDIR+= 	dm
2971.23Sagc.endif
2981.23Sagc
2991.39Sdarran.if (${MKDTRACE} != "no")
3001.116SchsSUBDIR+=	cyclic
3011.39SdarranSUBDIR+=	dtrace
3021.39Sdarran.endif
3031.39Sdarran
3041.39Sdarran# we need solaris for the dtrace and zfs modules
3051.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
3061.39SdarranSUBDIR+=        solaris
3071.39Sdarran.endif
3081.39Sdarran
3091.34Shaad.if (${MKZFS} != "no")
3101.34ShaadSUBDIR+=	zfs
3111.34Shaad.endif
3121.34Shaad
3131.73Smrg.if (${MKCOMPATMODULES} != "no")
3141.73SmrgSUBDIR+=	arch
3151.73Smrg.endif
3161.73Smrg
3171.84Sjmcneill#
3181.84Sjmcneill# DTV modules
3191.84Sjmcneill#
3201.84SjmcneillSUBDIR+=	dtv
3211.84SjmcneillSUBDIR+=	dtv_math
3221.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
3231.84Sjmcneill# tuners/demods
3241.84SjmcneillSUBDIR+=	au8522
3251.84SjmcneillSUBDIR+=	cx24227
3261.84SjmcneillSUBDIR+=	lg3303
3271.84SjmcneillSUBDIR+=	mt2131
3281.84SjmcneillSUBDIR+=	nxt2k
3291.84SjmcneillSUBDIR+=	tvpll
3301.84SjmcneillSUBDIR+=	xc3028
3311.84SjmcneillSUBDIR+=	xc5k
3321.91SjruohoSUBDIR+=	zl10353
3331.84Sjmcneill# hardware drivers
3341.84SjmcneillSUBDIR+=	auvitek
3351.84SjmcneillSUBDIR+=	coram
3361.84SjmcneillSUBDIR+=	cxdtv
3371.84SjmcneillSUBDIR+=	emdtv
3381.155SpgoyetteSUBDIR+=	spkr
3391.84Sjmcneill.endif
3401.84Sjmcneill
3411.98Sriz.if (${MKISCSI} != "no")
3421.98SrizSUBDIR+=	iscsi
3431.98Sriz.endif
3441.98Sriz
3451.154SpgoyetteSUBDIR+=	examples	# build these regularly to avoid bit-rot
3461.154Spgoyette
3471.1Sad.include <bsd.subdir.mk>
348