Makefile revision 1.150
11.150Spgoyette#	$NetBSD: Makefile,v 1.150 2015/05/03 02:54:07 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.134SpgoyetteSUBDIR+=	crypto
201.7SrumbleSUBDIR+=	coda
211.7SrumbleSUBDIR+=	coda5
221.15SadSUBDIR+=	compat
231.15SadSUBDIR+=	compat_ossaudio
241.15SadSUBDIR+=	coredump
251.104SpgoyetteSUBDIR+=	dbcool
261.133SpgoyetteSUBDIR+=	des
271.129SpgoyetteSUBDIR+=	dk_subr
281.7SrumbleSUBDIR+=	efs
291.7SrumbleSUBDIR+=	ext2fs
301.15SadSUBDIR+=	exec_script
311.7SrumbleSUBDIR+=	fdesc
321.7SrumbleSUBDIR+=	ffs
331.18SadSUBDIR+=	filecore
341.93SsjgSUBDIR+=	filemon
351.68SahokaSUBDIR+=	flash
361.15SadSUBDIR+=	fss
371.89SmbalmerSUBDIR+=	gpio
381.94SmbalmerSUBDIR+=	gpioiic
391.92SmbalmerSUBDIR+=	gpioow
401.89SmbalmerSUBDIR+=	gpiosim
411.7SrumbleSUBDIR+=	hfs
421.136SkardelSUBDIR+=	hythygtemp
431.143SjmcneillSUBDIR+=	i2cexec
441.105SpgoyetteSUBDIR+=	if_axe
451.120SnonakaSUBDIR+=	if_axen
461.118SchristosSUBDIR+=	if_npflog
471.124SskrllSUBDIR+=	if_smsc
481.94SmbalmerSUBDIR+=	iic
491.7SrumbleSUBDIR+=	kernfs
501.22SadSUBDIR+=	layerfs
511.7SrumbleSUBDIR+=	lfs
521.121SmbalmerSUBDIR+=	lua
531.128SlnetoSUBDIR+=	luasystm
541.123SmbalmerSUBDIR+=	luapmf
551.7SrumbleSUBDIR+=	mfs
561.45SpgoyetteSUBDIR+=	miiverbose
571.45SpgoyetteSUBDIR+=	miniroot
581.31SrmindSUBDIR+=	mqueue
591.18SadSUBDIR+=	msdos
601.68SahokaSUBDIR+=	nand
611.68SahokaSUBDIR+=	nandemulator
621.15SadSUBDIR+=	nfs
631.15SadSUBDIR+=	nfsserver
641.30SreinoudSUBDIR+=	nilfs
651.96StronSUBDIR+=	npf
661.97StronSUBDIR+=	npf_alg_icmp
671.111SrmindSUBDIR+=	npf_ext_log
681.119SchristosSUBDIR+=	npf_ext_normalize
691.117SrmindSUBDIR+=	npf_ext_rndblock
701.7SrumbleSUBDIR+=	ntfs
711.18SadSUBDIR+=	null
721.92SmbalmerSUBDIR+=	onewire
731.134SpgoyetteSUBDIR+=	opencrypto
741.7SrumbleSUBDIR+=	overlay
751.42SpgoyetteSUBDIR+=	pciverbose
761.41SahokaSUBDIR+=	pf
771.19ScubeSUBDIR+=	ppp_bsdcomp
781.19ScubeSUBDIR+=	ppp_deflate
791.7SrumbleSUBDIR+=	procfs
801.7SrumbleSUBDIR+=	ptyfs
811.7SrumbleSUBDIR+=	puffs
821.15SadSUBDIR+=	putter
831.44SpgoyetteSUBDIR+=	scsiverbose
841.103SpgoyetteSUBDIR+=	sdtemp
851.33SeladSUBDIR+=	secmodel_bsd44
861.100SjymSUBDIR+=	secmodel_extensions
871.33SeladSUBDIR+=	secmodel_overlay
881.33SeladSUBDIR+=	securelevel
891.133SpgoyetteSUBDIR+=	skipjack
901.7SrumbleSUBDIR+=	smbfs
911.81SpgoyetteSUBDIR+=	spdmem
921.146SpgoyetteSUBDIR+=	sysmon
931.146SpgoyetteSUBDIR+=	sysmon_envsys
941.146SpgoyetteSUBDIR+=	sysmon_power
951.146SpgoyetteSUBDIR+=	sysmon_taskq
961.146SpgoyetteSUBDIR+=	sysmon_wdog
971.24SpookaSUBDIR+=	sysvbfs
981.33SeladSUBDIR+=	suser
991.134SpgoyetteSUBDIR+=	swcrypto
1001.48SpgoyetteSUBDIR+=	swsensor
1011.145SpgoyetteSUBDIR+=	swwdog
1021.7SrumbleSUBDIR+=	tmpfs
1031.108SriastradSUBDIR+=	uatp
1041.7SrumbleSUBDIR+=	udf
1051.18SadSUBDIR+=	umap
1061.7SrumbleSUBDIR+=	union
1071.43SpgoyetteSUBDIR+=	usbverbose
1081.106SchristosSUBDIR+=	vcoda
1091.78SenamiSUBDIR+=	v7fs
1101.25ShaadSUBDIR+=	vnd
1111.131SpgoyetteSUBDIR+=	zlib
1121.29SyamtSUBDIR+=	tprof
1131.7Srumble.if (defined(NOTYET))
1141.135SpgoyetteSUBDIR+=	hifn		# Builds on architectures with PCI bus
1151.7SrumbleSUBDIR+=	unionfs
1161.7Srumble.endif
1171.37Sdyoung.if ${MKBINUTILS} != "no"
1181.37SdyoungSUBDIR+=	xldscripts
1191.37Sdyoung.endif
1201.7Srumble
1211.15Sad# Machine dependent section
1221.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \
1231.49Stsutsui    ${MACHINE_CPU} == "m68k"
1241.47StsutsuiSUBDIR+=	exec_aout
1251.47Stsutsui.endif
1261.47Stsutsui
1271.139Smatt.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64"
1281.17SmartinSUBDIR+=	exec_elf32
1291.17Smartin.endif
1301.15Sad
1311.139Smatt.if ${MACHINE_CPU} == "aarch64" || \
1321.139Smatt    ${MACHINE_ARCH} == "alpha" || \
1331.21Stsutsui    ${MACHINE_ARCH} == "sparc64" || \
1341.21Stsutsui    ${MACHINE_ARCH} == "x86_64"
1351.20SheSUBDIR+=	exec_elf64
1361.20She.endif
1371.20She
1381.29Syamt.if ${MACHINE_ARCH} == "i386" || \
1391.29Syamt    ${MACHINE_ARCH} == "x86_64"
1401.71SjruohoSUBDIR+=	amdtemp
1411.64SjruohoSUBDIR+=	coretemp
1421.65SjruohoSUBDIR+=	est
1431.110SmartinSUBDIR+=	hdafg
1441.110SmartinSUBDIR+=	hdaudio
1451.144SjmcneillSUBDIR+=	hdaudio_pci
1461.141SchristosSUBDIR+=	hdaudioverbose
1471.72SjruohoSUBDIR+=	hpet
1481.69SjruohoSUBDIR+=	odcm
1491.66SjruohoSUBDIR+=	powernow
1501.150SpgoyetteSUBDIR+=	tco
1511.29SyamtSUBDIR+=	tprof_pmi
1521.70SyamtSUBDIR+=	tprof_amdpmi
1531.95SjmcneillSUBDIR+=	vmt
1541.29Syamt.endif
1551.29Syamt
1561.140Sbad.if ${MACHINE_ARCH} == "i386" || \
1571.137Sbad    ${MACHINE_ARCH} == "x86_64"
1581.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1591.137Sbad.endif
1601.137Sbad
1611.126Salnsn.if ${MKSLJIT} != "no"
1621.126Salnsn# No modules for arm, mips and powerpc yet.
1631.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1641.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
1651.115Salnsn    ${MACHINE_ARCH} == "sparc"
1661.113SalnsnSUBDIR+=	bpfjit
1671.112SalnsnSUBDIR+=	sljit
1681.112Salnsn.endif
1691.126Salnsn.endif
1701.112Salnsn
1711.85Sjruoho#
1721.85Sjruoho# ACPI modules
1731.85Sjruoho#
1741.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
1751.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
1761.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
1771.46SpgoyetteSUBDIR+=	acpiverbose
1781.46Spgoyette.endif
1791.46Spgoyette
1801.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
1811.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
1821.52SjruohoSUBDIR+=	acpiacad
1831.52SjruohoSUBDIR+=	acpibat
1841.52SjruohoSUBDIR+=	acpibut
1851.52SjruohoSUBDIR+=	acpicpu
1861.53SjruohoSUBDIR+=	acpidalb
1871.58SjruohoSUBDIR+=	acpifan
1881.52SjruohoSUBDIR+=	acpilid
1891.57SjruohoSUBDIR+=	acpipmtr
1901.53SjruohoSUBDIR+=	acpitz
1911.53SjruohoSUBDIR+=	acpivga
1921.86SjruohoSUBDIR+=	acpiwdrt
1931.51SjmcneillSUBDIR+=	acpiwmi
1941.53SjruohoSUBDIR+=	aibs
1951.54SjruohoSUBDIR+=	asus
1961.63SjruohoSUBDIR+=	fujbp
1971.63SjruohoSUBDIR+=	fujhk
1981.75SjruohoSUBDIR+=	hpacel
1991.54SjruohoSUBDIR+=	hpqlb
2001.52SjruohoSUBDIR+=	thinkpad
2011.50SjmcneillSUBDIR+=	wmidell
2021.83SjruohoSUBDIR+=	wmieeepc
2031.50SjmcneillSUBDIR+=	wmihp
2041.50SjmcneillSUBDIR+=	wmimsi
2051.50Sjmcneill.endif
2061.50Sjmcneill
2071.27Sabs.if ${MACHINE_ARCH} == "x86_64"
2081.15SadSUBDIR+=	compat_linux32
2091.15SadSUBDIR+=	compat_netbsd32
2101.15Sad.endif
2111.15Sad
2121.27Sabs.if ${MACHINE_ARCH} == "i386"
2131.90SjmcneillSUBDIR+=	ati_pcigart
2141.15SadSUBDIR+=	compat_freebsd
2151.15SadSUBDIR+=	compat_ibcs2
2161.15SadSUBDIR+=	compat_svr4
2171.90SjmcneillSUBDIR+=	mach64drm
2181.90SjmcneillSUBDIR+=	mgadrm
2191.76SjmcneillSUBDIR+=	nsclpcsio
2201.62SjmcneillSUBDIR+=	padlock
2211.90SjmcneillSUBDIR+=	r128drm
2221.90SjmcneillSUBDIR+=	radeondrm
2231.90SjmcneillSUBDIR+=	savagedrm
2241.90SjmcneillSUBDIR+=	sisdrm
2251.90SjmcneillSUBDIR+=	tdfxdrm
2261.67SjruohoSUBDIR+=	viac7temp
2271.90SjmcneillSUBDIR+=	viadrm
2281.149SriastradSUBDIR+=	viadrmums
2291.15Sad.endif
2301.15Sad
2311.142Schristos.if ${MACHINE_ARCH} == "i386" || \
2321.142Schristos    ${MACHINE_ARCH} == "x86_64"
2331.142SchristosSUBDIR+=	azalia
2341.142SchristosSUBDIR+=	compat_linux
2351.142SchristosSUBDIR+=	drm
2361.142SchristosSUBDIR+=	drmkms
2371.142SchristosSUBDIR+=	drmkms_linux
2381.142SchristosSUBDIR+=	drmkms_pci
2391.142SchristosSUBDIR+=	i915drm
2401.142SchristosSUBDIR+=	i915drmkms
2411.142SchristosSUBDIR+=	pad
2421.85Sjruoho#
2431.85Sjruoho# ISA modules
2441.85Sjruoho#
2451.59SjmcneillSUBDIR+=	aps
2461.80SjmcneillSUBDIR+=	finsio
2471.79SjmcneillSUBDIR+=	itesio
2481.101SjakllschSUBDIR+=	lm
2491.101SjakllschSUBDIR+=	lm_isa
2501.101SjakllschSUBDIR+=	lm_isa_common
2511.101SjakllschSUBDIR+=	lm_wbsio
2521.101SjakllschSUBDIR+=	wbsio
2531.56Sjmcneill.endif
2541.56Sjmcneill
2551.49Stsutsui.if ${MACHINE_CPU} == "m68k"
2561.47StsutsuiSUBDIR+=	compat_aoutm68k
2571.47Stsutsui#SUBDIR+=	compat_linux
2581.47Stsutsui#SUBDIR+=	compat_sunos
2591.47Stsutsui#SUBDIR+=	compat_svr4
2601.47Stsutsui.endif
2611.47Stsutsui
2621.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \
2631.88Smbalmer    ${MACHINE_ARCH} == "x86_64" || \
2641.88Smbalmer    ${MACHINE_ARCH} == "sparc64"
2651.88SmbalmerSUBDIR+=	pwdog
2661.88Smbalmer.endif
2671.88Smbalmer
2681.23Sagc.include <bsd.own.mk>
2691.23Sagc
2701.107Sreinoud#
2711.107Sreinoud# NetBSD/usermode support
2721.107Sreinoud#
2731.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \
2741.107Sreinoud    ${MACHINE_ARCH} == "x86_64"
2751.107SreinoudSUBDIR+=	../arch/usermode/modules/syscallemu
2761.107Sreinoud.endif
2771.107Sreinoud
2781.23Sagc# we need our device mapper for LVM
2791.23Sagc.if (${MKLVM} != "no")
2801.28SyamtSUBDIR+= 	dm
2811.23Sagc.endif
2821.23Sagc
2831.39Sdarran.if (${MKDTRACE} != "no")
2841.116SchsSUBDIR+=	cyclic
2851.39SdarranSUBDIR+=	dtrace
2861.39Sdarran.endif
2871.39Sdarran
2881.39Sdarran# we need solaris for the dtrace and zfs modules
2891.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
2901.39SdarranSUBDIR+=        solaris
2911.39Sdarran.endif
2921.39Sdarran
2931.34Shaad.if (${MKZFS} != "no")
2941.34ShaadSUBDIR+=	zfs
2951.34Shaad.endif
2961.34Shaad
2971.73Smrg.if (${MKCOMPATMODULES} != "no")
2981.73SmrgSUBDIR+=	arch
2991.73Smrg.endif
3001.73Smrg
3011.84Sjmcneill#
3021.84Sjmcneill# DTV modules
3031.84Sjmcneill#
3041.84SjmcneillSUBDIR+=	dtv
3051.84SjmcneillSUBDIR+=	dtv_math
3061.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
3071.84Sjmcneill# tuners/demods
3081.84SjmcneillSUBDIR+=	au8522
3091.84SjmcneillSUBDIR+=	cx24227
3101.84SjmcneillSUBDIR+=	lg3303
3111.84SjmcneillSUBDIR+=	mt2131
3121.84SjmcneillSUBDIR+=	nxt2k
3131.84SjmcneillSUBDIR+=	tvpll
3141.84SjmcneillSUBDIR+=	xc3028
3151.84SjmcneillSUBDIR+=	xc5k
3161.91SjruohoSUBDIR+=	zl10353
3171.84Sjmcneill# hardware drivers
3181.84SjmcneillSUBDIR+=	auvitek
3191.84SjmcneillSUBDIR+=	coram
3201.84SjmcneillSUBDIR+=	cxdtv
3211.84SjmcneillSUBDIR+=	emdtv
3221.84Sjmcneill.endif
3231.84Sjmcneill
3241.98Sriz.if (${MKISCSI} != "no")
3251.98SrizSUBDIR+=	iscsi
3261.98Sriz.endif
3271.98Sriz
3281.1Sad.include <bsd.subdir.mk>
329