Makefile revision 1.164
11.164Spgoyette#	$NetBSD: Makefile,v 1.164 2015/12/07 11:38:46 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.44SpgoyetteSUBDIR+=	scsiverbose
861.103SpgoyetteSUBDIR+=	sdtemp
871.33SeladSUBDIR+=	secmodel_bsd44
881.100SjymSUBDIR+=	secmodel_extensions
891.33SeladSUBDIR+=	secmodel_overlay
901.33SeladSUBDIR+=	securelevel
911.133SpgoyetteSUBDIR+=	skipjack
921.7SrumbleSUBDIR+=	smbfs
931.81SpgoyetteSUBDIR+=	spdmem
941.146SpgoyetteSUBDIR+=	sysmon
951.146SpgoyetteSUBDIR+=	sysmon_envsys
961.146SpgoyetteSUBDIR+=	sysmon_power
971.146SpgoyetteSUBDIR+=	sysmon_taskq
981.146SpgoyetteSUBDIR+=	sysmon_wdog
991.24SpookaSUBDIR+=	sysvbfs
1001.153SpgoyetteSUBDIR+=	sysv_ipc
1011.33SeladSUBDIR+=	suser
1021.134SpgoyetteSUBDIR+=	swcrypto
1031.48SpgoyetteSUBDIR+=	swsensor
1041.145SpgoyetteSUBDIR+=	swwdog
1051.7SrumbleSUBDIR+=	tmpfs
1061.108SriastradSUBDIR+=	uatp
1071.7SrumbleSUBDIR+=	udf
1081.18SadSUBDIR+=	umap
1091.7SrumbleSUBDIR+=	union
1101.43SpgoyetteSUBDIR+=	usbverbose
1111.106SchristosSUBDIR+=	vcoda
1121.78SenamiSUBDIR+=	v7fs
1131.25ShaadSUBDIR+=	vnd
1141.157SpgoyetteSUBDIR+=	wapbl
1151.131SpgoyetteSUBDIR+=	zlib
1161.29SyamtSUBDIR+=	tprof
1171.7Srumble.if (defined(NOTYET))
1181.135SpgoyetteSUBDIR+=	hifn		# Builds on architectures with PCI bus
1191.7SrumbleSUBDIR+=	unionfs
1201.7Srumble.endif
1211.37Sdyoung.if ${MKBINUTILS} != "no"
1221.37SdyoungSUBDIR+=	xldscripts
1231.37Sdyoung.endif
1241.7Srumble
1251.15Sad# Machine dependent section
1261.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \
1271.49Stsutsui    ${MACHINE_CPU} == "m68k"
1281.47StsutsuiSUBDIR+=	exec_aout
1291.47Stsutsui.endif
1301.47Stsutsui
1311.139Smatt.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64"
1321.17SmartinSUBDIR+=	exec_elf32
1331.17Smartin.endif
1341.15Sad
1351.139Smatt.if ${MACHINE_CPU} == "aarch64" || \
1361.139Smatt    ${MACHINE_ARCH} == "alpha" || \
1371.21Stsutsui    ${MACHINE_ARCH} == "sparc64" || \
1381.21Stsutsui    ${MACHINE_ARCH} == "x86_64"
1391.20SheSUBDIR+=	exec_elf64
1401.20She.endif
1411.20She
1421.29Syamt.if ${MACHINE_ARCH} == "i386" || \
1431.29Syamt    ${MACHINE_ARCH} == "x86_64"
1441.71SjruohoSUBDIR+=	amdtemp
1451.64SjruohoSUBDIR+=	coretemp
1461.65SjruohoSUBDIR+=	est
1471.110SmartinSUBDIR+=	hdafg
1481.110SmartinSUBDIR+=	hdaudio
1491.144SjmcneillSUBDIR+=	hdaudio_pci
1501.141SchristosSUBDIR+=	hdaudioverbose
1511.72SjruohoSUBDIR+=	hpet
1521.69SjruohoSUBDIR+=	odcm
1531.66SjruohoSUBDIR+=	powernow
1541.150SpgoyetteSUBDIR+=	tco
1551.29SyamtSUBDIR+=	tprof_pmi
1561.70SyamtSUBDIR+=	tprof_amdpmi
1571.95SjmcneillSUBDIR+=	vmt
1581.29Syamt.endif
1591.29Syamt
1601.140Sbad.if ${MACHINE_ARCH} == "i386" || \
1611.137Sbad    ${MACHINE_ARCH} == "x86_64"
1621.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1631.137Sbad.endif
1641.137Sbad
1651.126Salnsn.if ${MKSLJIT} != "no"
1661.126Salnsn# No modules for arm, mips and powerpc yet.
1671.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1681.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
1691.115Salnsn    ${MACHINE_ARCH} == "sparc"
1701.113SalnsnSUBDIR+=	bpfjit
1711.112SalnsnSUBDIR+=	sljit
1721.112Salnsn.endif
1731.126Salnsn.endif
1741.112Salnsn
1751.85Sjruoho#
1761.85Sjruoho# ACPI modules
1771.85Sjruoho#
1781.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
1791.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
1801.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
1811.46SpgoyetteSUBDIR+=	acpiverbose
1821.46Spgoyette.endif
1831.46Spgoyette
1841.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
1851.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
1861.52SjruohoSUBDIR+=	acpiacad
1871.52SjruohoSUBDIR+=	acpibat
1881.52SjruohoSUBDIR+=	acpibut
1891.52SjruohoSUBDIR+=	acpicpu
1901.53SjruohoSUBDIR+=	acpidalb
1911.58SjruohoSUBDIR+=	acpifan
1921.52SjruohoSUBDIR+=	acpilid
1931.57SjruohoSUBDIR+=	acpipmtr
1941.53SjruohoSUBDIR+=	acpitz
1951.53SjruohoSUBDIR+=	acpivga
1961.86SjruohoSUBDIR+=	acpiwdrt
1971.51SjmcneillSUBDIR+=	acpiwmi
1981.53SjruohoSUBDIR+=	aibs
1991.54SjruohoSUBDIR+=	asus
2001.63SjruohoSUBDIR+=	fujbp
2011.63SjruohoSUBDIR+=	fujhk
2021.75SjruohoSUBDIR+=	hpacel
2031.54SjruohoSUBDIR+=	hpqlb
2041.52SjruohoSUBDIR+=	thinkpad
2051.50SjmcneillSUBDIR+=	wmidell
2061.83SjruohoSUBDIR+=	wmieeepc
2071.50SjmcneillSUBDIR+=	wmihp
2081.50SjmcneillSUBDIR+=	wmimsi
2091.50Sjmcneill.endif
2101.50Sjmcneill
2111.156Smatt.if ${MACHINE_CPU} == "arm" \
2121.156Smatt    || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
2131.151SmattSUBDIR+=	compat_netbsd32
2141.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2151.159SpgoyetteSUBDIR+=	compat_netbsd32_mqueue
2161.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2171.151Smatt.endif
2181.151Smatt
2191.27Sabs.if ${MACHINE_ARCH} == "x86_64"
2201.15SadSUBDIR+=	compat_linux32
2211.15SadSUBDIR+=	compat_netbsd32
2221.158SpgoyetteSUBDIR+=	compat_netbsd32_nfssrv
2231.159SpgoyetteSUBDIR+=	compat_netbsd32_mqueue
2241.162SpgoyetteSUBDIR+=	compat_netbsd32_sysvipc
2251.15Sad.endif
2261.15Sad
2271.27Sabs.if ${MACHINE_ARCH} == "i386"
2281.90SjmcneillSUBDIR+=	ati_pcigart
2291.15SadSUBDIR+=	compat_freebsd
2301.15SadSUBDIR+=	compat_ibcs2
2311.15SadSUBDIR+=	compat_svr4
2321.90SjmcneillSUBDIR+=	mach64drm
2331.90SjmcneillSUBDIR+=	mgadrm
2341.76SjmcneillSUBDIR+=	nsclpcsio
2351.62SjmcneillSUBDIR+=	padlock
2361.90SjmcneillSUBDIR+=	r128drm
2371.90SjmcneillSUBDIR+=	radeondrm
2381.90SjmcneillSUBDIR+=	savagedrm
2391.90SjmcneillSUBDIR+=	sisdrm
2401.90SjmcneillSUBDIR+=	tdfxdrm
2411.67SjruohoSUBDIR+=	viac7temp
2421.90SjmcneillSUBDIR+=	viadrm
2431.149SriastradSUBDIR+=	viadrmums
2441.15Sad.endif
2451.15Sad
2461.142Schristos.if ${MACHINE_ARCH} == "i386" || \
2471.142Schristos    ${MACHINE_ARCH} == "x86_64"
2481.142SchristosSUBDIR+=	azalia
2491.142SchristosSUBDIR+=	compat_linux
2501.142SchristosSUBDIR+=	drm
2511.142SchristosSUBDIR+=	drmkms
2521.142SchristosSUBDIR+=	drmkms_linux
2531.142SchristosSUBDIR+=	drmkms_pci
2541.142SchristosSUBDIR+=	i915drm
2551.142SchristosSUBDIR+=	i915drmkms
2561.142SchristosSUBDIR+=	pad
2571.85Sjruoho#
2581.85Sjruoho# ISA modules
2591.85Sjruoho#
2601.59SjmcneillSUBDIR+=	aps
2611.80SjmcneillSUBDIR+=	finsio
2621.79SjmcneillSUBDIR+=	itesio
2631.101SjakllschSUBDIR+=	lm
2641.101SjakllschSUBDIR+=	lm_isa
2651.101SjakllschSUBDIR+=	lm_isa_common
2661.101SjakllschSUBDIR+=	lm_wbsio
2671.101SjakllschSUBDIR+=	wbsio
2681.56Sjmcneill.endif
2691.56Sjmcneill
2701.49Stsutsui.if ${MACHINE_CPU} == "m68k"
2711.47StsutsuiSUBDIR+=	compat_aoutm68k
2721.47Stsutsui#SUBDIR+=	compat_linux
2731.47Stsutsui#SUBDIR+=	compat_sunos
2741.47Stsutsui#SUBDIR+=	compat_svr4
2751.47Stsutsui.endif
2761.47Stsutsui
2771.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \
2781.88Smbalmer    ${MACHINE_ARCH} == "x86_64" || \
2791.88Smbalmer    ${MACHINE_ARCH} == "sparc64"
2801.88SmbalmerSUBDIR+=	pwdog
2811.88Smbalmer.endif
2821.88Smbalmer
2831.23Sagc.include <bsd.own.mk>
2841.23Sagc
2851.107Sreinoud#
2861.107Sreinoud# NetBSD/usermode support
2871.107Sreinoud#
2881.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \
2891.107Sreinoud    ${MACHINE_ARCH} == "x86_64"
2901.107SreinoudSUBDIR+=	../arch/usermode/modules/syscallemu
2911.107Sreinoud.endif
2921.107Sreinoud
2931.23Sagc# we need our device mapper for LVM
2941.23Sagc.if (${MKLVM} != "no")
2951.28SyamtSUBDIR+= 	dm
2961.23Sagc.endif
2971.23Sagc
2981.39Sdarran.if (${MKDTRACE} != "no")
2991.116SchsSUBDIR+=	cyclic
3001.39SdarranSUBDIR+=	dtrace
3011.39Sdarran.endif
3021.39Sdarran
3031.39Sdarran# we need solaris for the dtrace and zfs modules
3041.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
3051.39SdarranSUBDIR+=        solaris
3061.39Sdarran.endif
3071.39Sdarran
3081.34Shaad.if (${MKZFS} != "no")
3091.34ShaadSUBDIR+=	zfs
3101.34Shaad.endif
3111.34Shaad
3121.73Smrg.if (${MKCOMPATMODULES} != "no")
3131.73SmrgSUBDIR+=	arch
3141.73Smrg.endif
3151.73Smrg
3161.84Sjmcneill#
3171.84Sjmcneill# DTV modules
3181.84Sjmcneill#
3191.84SjmcneillSUBDIR+=	dtv
3201.84SjmcneillSUBDIR+=	dtv_math
3211.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
3221.84Sjmcneill# tuners/demods
3231.84SjmcneillSUBDIR+=	au8522
3241.84SjmcneillSUBDIR+=	cx24227
3251.84SjmcneillSUBDIR+=	lg3303
3261.84SjmcneillSUBDIR+=	mt2131
3271.84SjmcneillSUBDIR+=	nxt2k
3281.84SjmcneillSUBDIR+=	tvpll
3291.84SjmcneillSUBDIR+=	xc3028
3301.84SjmcneillSUBDIR+=	xc5k
3311.91SjruohoSUBDIR+=	zl10353
3321.84Sjmcneill# hardware drivers
3331.84SjmcneillSUBDIR+=	auvitek
3341.84SjmcneillSUBDIR+=	coram
3351.84SjmcneillSUBDIR+=	cxdtv
3361.84SjmcneillSUBDIR+=	emdtv
3371.155SpgoyetteSUBDIR+=	spkr
3381.84Sjmcneill.endif
3391.84Sjmcneill
3401.98Sriz.if (${MKISCSI} != "no")
3411.98SrizSUBDIR+=	iscsi
3421.98Sriz.endif
3431.98Sriz
3441.154SpgoyetteSUBDIR+=	examples	# build these regularly to avoid bit-rot
3451.154Spgoyette
3461.1Sad.include <bsd.subdir.mk>
347