Makefile revision 1.138
11.138Sriz#	$NetBSD: Makefile,v 1.138 2014/08/09 22:10:35 riz 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.105SpgoyetteSUBDIR+=	if_axe
441.120SnonakaSUBDIR+=	if_axen
451.118SchristosSUBDIR+=	if_npflog
461.124SskrllSUBDIR+=	if_smsc
471.94SmbalmerSUBDIR+=	iic
481.7SrumbleSUBDIR+=	kernfs
491.22SadSUBDIR+=	layerfs
501.7SrumbleSUBDIR+=	lfs
511.121SmbalmerSUBDIR+=	lua
521.128SlnetoSUBDIR+=	luasystm
531.123SmbalmerSUBDIR+=	luapmf
541.7SrumbleSUBDIR+=	mfs
551.45SpgoyetteSUBDIR+=	miiverbose
561.45SpgoyetteSUBDIR+=	miniroot
571.31SrmindSUBDIR+=	mqueue
581.18SadSUBDIR+=	msdos
591.68SahokaSUBDIR+=	nand
601.68SahokaSUBDIR+=	nandemulator
611.15SadSUBDIR+=	nfs
621.15SadSUBDIR+=	nfsserver
631.30SreinoudSUBDIR+=	nilfs
641.96StronSUBDIR+=	npf
651.97StronSUBDIR+=	npf_alg_icmp
661.111SrmindSUBDIR+=	npf_ext_log
671.119SchristosSUBDIR+=	npf_ext_normalize
681.117SrmindSUBDIR+=	npf_ext_rndblock
691.7SrumbleSUBDIR+=	ntfs
701.18SadSUBDIR+=	null
711.92SmbalmerSUBDIR+=	onewire
721.134SpgoyetteSUBDIR+=	opencrypto
731.7SrumbleSUBDIR+=	overlay
741.42SpgoyetteSUBDIR+=	pciverbose
751.41SahokaSUBDIR+=	pf
761.19ScubeSUBDIR+=	ppp_bsdcomp
771.19ScubeSUBDIR+=	ppp_deflate
781.7SrumbleSUBDIR+=	procfs
791.7SrumbleSUBDIR+=	ptyfs
801.7SrumbleSUBDIR+=	puffs
811.15SadSUBDIR+=	putter
821.44SpgoyetteSUBDIR+=	scsiverbose
831.103SpgoyetteSUBDIR+=	sdtemp
841.33SeladSUBDIR+=	secmodel_bsd44
851.100SjymSUBDIR+=	secmodel_extensions
861.33SeladSUBDIR+=	secmodel_overlay
871.33SeladSUBDIR+=	securelevel
881.133SpgoyetteSUBDIR+=	skipjack
891.7SrumbleSUBDIR+=	smbfs
901.81SpgoyetteSUBDIR+=	spdmem
911.24SpookaSUBDIR+=	sysvbfs
921.33SeladSUBDIR+=	suser
931.134SpgoyetteSUBDIR+=	swcrypto
941.48SpgoyetteSUBDIR+=	swsensor
951.7SrumbleSUBDIR+=	tmpfs
961.108SriastradSUBDIR+=	uatp
971.7SrumbleSUBDIR+=	udf
981.18SadSUBDIR+=	umap
991.7SrumbleSUBDIR+=	union
1001.43SpgoyetteSUBDIR+=	usbverbose
1011.106SchristosSUBDIR+=	vcoda
1021.78SenamiSUBDIR+=	v7fs
1031.25ShaadSUBDIR+=	vnd
1041.131SpgoyetteSUBDIR+=	zlib
1051.29SyamtSUBDIR+=	tprof
1061.7Srumble.if (defined(NOTYET))
1071.135SpgoyetteSUBDIR+=	hifn		# Builds on architectures with PCI bus
1081.7SrumbleSUBDIR+=	unionfs
1091.7Srumble.endif
1101.37Sdyoung.if ${MKBINUTILS} != "no"
1111.37SdyoungSUBDIR+=	xldscripts
1121.37Sdyoung.endif
1131.7Srumble
1141.15Sad# Machine dependent section
1151.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \
1161.49Stsutsui    ${MACHINE_CPU} == "m68k"
1171.47StsutsuiSUBDIR+=	exec_aout
1181.47Stsutsui.endif
1191.47Stsutsui
1201.21Stsutsui.if ${MACHINE_ARCH} != "alpha"
1211.17SmartinSUBDIR+=	exec_elf32
1221.17Smartin.endif
1231.15Sad
1241.21Stsutsui.if ${MACHINE_ARCH} == "alpha" || \
1251.21Stsutsui    ${MACHINE_ARCH} == "sparc64" || \
1261.21Stsutsui    ${MACHINE_ARCH} == "x86_64"
1271.20SheSUBDIR+=	exec_elf64
1281.20She.endif
1291.20She
1301.29Syamt.if ${MACHINE_ARCH} == "i386" || \
1311.29Syamt    ${MACHINE_ARCH} == "x86_64"
1321.71SjruohoSUBDIR+=	amdtemp
1331.64SjruohoSUBDIR+=	coretemp
1341.65SjruohoSUBDIR+=	est
1351.110SmartinSUBDIR+=	hdafg
1361.110SmartinSUBDIR+=	hdaudio
1371.72SjruohoSUBDIR+=	hpet
1381.69SjruohoSUBDIR+=	odcm
1391.66SjruohoSUBDIR+=	powernow
1401.29SyamtSUBDIR+=	tprof_pmi
1411.70SyamtSUBDIR+=	tprof_amdpmi
1421.95SjmcneillSUBDIR+=	vmt
1431.29Syamt.endif
1441.29Syamt
1451.137Sbad.if ${MACHINE_ARCH} == "alpha" || \
1461.138Sriz    !empty(MACHINE_ARCH:Mearm*) || !empty(MACHINE_ARCH:Marm*) || \
1471.137Sbad    ${MACHINE_ARCH} == "i386" || \
1481.137Sbad    ${MACHINE_ARCH} == "ia64" || \
1491.137Sbad    ${MACHINE_ARCH} == "hppa" || \
1501.138Sriz    !empty(MACHINE_ARCH:Mmips*) || \
1511.137Sbad    ${MACHINE_ARCH} == "sparc" || \
1521.137Sbad    ${MACHINE_ARCH} == "sparc64" || \
1531.137Sbad    ${MACHINE_ARCH} == "x86_64"
1541.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1551.137Sbad.endif
1561.137Sbad
1571.126Salnsn.if ${MKSLJIT} != "no"
1581.126Salnsn# No modules for arm, mips and powerpc yet.
1591.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1601.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
1611.115Salnsn    ${MACHINE_ARCH} == "sparc"
1621.113SalnsnSUBDIR+=	bpfjit
1631.112SalnsnSUBDIR+=	sljit
1641.112Salnsn.endif
1651.126Salnsn.endif
1661.112Salnsn
1671.85Sjruoho#
1681.85Sjruoho# ACPI modules
1691.85Sjruoho#
1701.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
1711.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
1721.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
1731.46SpgoyetteSUBDIR+=	acpiverbose
1741.46Spgoyette.endif
1751.46Spgoyette
1761.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
1771.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
1781.52SjruohoSUBDIR+=	acpiacad
1791.52SjruohoSUBDIR+=	acpibat
1801.52SjruohoSUBDIR+=	acpibut
1811.52SjruohoSUBDIR+=	acpicpu
1821.53SjruohoSUBDIR+=	acpidalb
1831.58SjruohoSUBDIR+=	acpifan
1841.52SjruohoSUBDIR+=	acpilid
1851.57SjruohoSUBDIR+=	acpipmtr
1861.53SjruohoSUBDIR+=	acpitz
1871.53SjruohoSUBDIR+=	acpivga
1881.86SjruohoSUBDIR+=	acpiwdrt
1891.51SjmcneillSUBDIR+=	acpiwmi
1901.53SjruohoSUBDIR+=	aibs
1911.54SjruohoSUBDIR+=	asus
1921.63SjruohoSUBDIR+=	fujbp
1931.63SjruohoSUBDIR+=	fujhk
1941.75SjruohoSUBDIR+=	hpacel
1951.54SjruohoSUBDIR+=	hpqlb
1961.52SjruohoSUBDIR+=	thinkpad
1971.50SjmcneillSUBDIR+=	wmidell
1981.83SjruohoSUBDIR+=	wmieeepc
1991.50SjmcneillSUBDIR+=	wmihp
2001.50SjmcneillSUBDIR+=	wmimsi
2011.50Sjmcneill.endif
2021.50Sjmcneill
2031.27Sabs.if ${MACHINE_ARCH} == "x86_64"
2041.15SadSUBDIR+=	azalia
2051.15SadSUBDIR+=	compat_linux
2061.15SadSUBDIR+=	compat_linux32
2071.15SadSUBDIR+=	compat_netbsd32
2081.15SadSUBDIR+=	drm
2091.15SadSUBDIR+=	i915drm
2101.40SahokaSUBDIR+=	pad
2111.15Sad.endif
2121.15Sad
2131.27Sabs.if ${MACHINE_ARCH} == "i386"
2141.90SjmcneillSUBDIR+=	ati_pcigart
2151.15SadSUBDIR+=	azalia
2161.15SadSUBDIR+=	compat_freebsd
2171.15SadSUBDIR+=	compat_ibcs2
2181.15SadSUBDIR+=	compat_linux
2191.15SadSUBDIR+=	compat_svr4
2201.15SadSUBDIR+=	drm
2211.15SadSUBDIR+=	i915drm
2221.90SjmcneillSUBDIR+=	mach64drm
2231.90SjmcneillSUBDIR+=	mgadrm
2241.76SjmcneillSUBDIR+=	nsclpcsio
2251.40SahokaSUBDIR+=	pad
2261.62SjmcneillSUBDIR+=	padlock
2271.90SjmcneillSUBDIR+=	r128drm
2281.90SjmcneillSUBDIR+=	radeondrm
2291.90SjmcneillSUBDIR+=	savagedrm
2301.90SjmcneillSUBDIR+=	sisdrm
2311.90SjmcneillSUBDIR+=	tdfxdrm
2321.67SjruohoSUBDIR+=	viac7temp
2331.90SjmcneillSUBDIR+=	viadrm
2341.15Sad.endif
2351.15Sad
2361.85Sjruoho#
2371.85Sjruoho# ISA modules
2381.85Sjruoho#
2391.56Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
2401.56Sjmcneill    ${MACHINE_ARCH} == "x86_64"
2411.59SjmcneillSUBDIR+=	aps
2421.80SjmcneillSUBDIR+=	finsio
2431.79SjmcneillSUBDIR+=	itesio
2441.101SjakllschSUBDIR+=	lm
2451.101SjakllschSUBDIR+=	lm_isa
2461.101SjakllschSUBDIR+=	lm_isa_common
2471.101SjakllschSUBDIR+=	lm_wbsio
2481.101SjakllschSUBDIR+=	wbsio
2491.56Sjmcneill.endif
2501.56Sjmcneill
2511.49Stsutsui.if ${MACHINE_CPU} == "m68k"
2521.47StsutsuiSUBDIR+=	compat_aoutm68k
2531.47Stsutsui#SUBDIR+=	compat_linux
2541.47Stsutsui#SUBDIR+=	compat_sunos
2551.47Stsutsui#SUBDIR+=	compat_svr4
2561.47Stsutsui.endif
2571.47Stsutsui
2581.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \
2591.88Smbalmer    ${MACHINE_ARCH} == "x86_64" || \
2601.88Smbalmer    ${MACHINE_ARCH} == "sparc64"
2611.88SmbalmerSUBDIR+=	pwdog
2621.88Smbalmer.endif
2631.88Smbalmer
2641.23Sagc.include <bsd.own.mk>
2651.23Sagc
2661.107Sreinoud#
2671.107Sreinoud# NetBSD/usermode support
2681.107Sreinoud#
2691.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \
2701.107Sreinoud    ${MACHINE_ARCH} == "x86_64"
2711.107SreinoudSUBDIR+=	../arch/usermode/modules/syscallemu
2721.107Sreinoud.endif
2731.107Sreinoud
2741.23Sagc# we need our device mapper for LVM
2751.23Sagc.if (${MKLVM} != "no")
2761.28SyamtSUBDIR+= 	dm
2771.23Sagc.endif
2781.23Sagc
2791.39Sdarran.if (${MKDTRACE} != "no")
2801.116SchsSUBDIR+=	cyclic
2811.39SdarranSUBDIR+=	dtrace
2821.39Sdarran.endif
2831.39Sdarran
2841.39Sdarran# we need solaris for the dtrace and zfs modules
2851.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
2861.39SdarranSUBDIR+=        solaris
2871.39Sdarran.endif
2881.39Sdarran
2891.34Shaad.if (${MKZFS} != "no")
2901.34ShaadSUBDIR+=	zfs
2911.34Shaad.endif
2921.34Shaad
2931.73Smrg.if (${MKCOMPATMODULES} != "no")
2941.73SmrgSUBDIR+=	arch
2951.73Smrg.endif
2961.73Smrg
2971.84Sjmcneill#
2981.84Sjmcneill# DTV modules
2991.84Sjmcneill#
3001.84SjmcneillSUBDIR+=	dtv
3011.84SjmcneillSUBDIR+=	dtv_math
3021.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
3031.84Sjmcneill# tuners/demods
3041.84SjmcneillSUBDIR+=	au8522
3051.84SjmcneillSUBDIR+=	cx24227
3061.84SjmcneillSUBDIR+=	lg3303
3071.84SjmcneillSUBDIR+=	mt2131
3081.84SjmcneillSUBDIR+=	nxt2k
3091.84SjmcneillSUBDIR+=	tvpll
3101.84SjmcneillSUBDIR+=	xc3028
3111.84SjmcneillSUBDIR+=	xc5k
3121.91SjruohoSUBDIR+=	zl10353
3131.84Sjmcneill# hardware drivers
3141.84SjmcneillSUBDIR+=	auvitek
3151.84SjmcneillSUBDIR+=	coram
3161.84SjmcneillSUBDIR+=	cxdtv
3171.84SjmcneillSUBDIR+=	emdtv
3181.84Sjmcneill.endif
3191.84Sjmcneill
3201.98Sriz.if (${MKISCSI} != "no")
3211.98SrizSUBDIR+=	iscsi
3221.98Sriz.endif
3231.98Sriz
3241.1Sad.include <bsd.subdir.mk>
325