Makefile revision 1.140
11.140Sbad#	$NetBSD: Makefile,v 1.140 2014/08/10 11:50:15 bad 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.139Smatt.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64"
1211.17SmartinSUBDIR+=	exec_elf32
1221.17Smartin.endif
1231.15Sad
1241.139Smatt.if ${MACHINE_CPU} == "aarch64" || \
1251.139Smatt    ${MACHINE_ARCH} == "alpha" || \
1261.21Stsutsui    ${MACHINE_ARCH} == "sparc64" || \
1271.21Stsutsui    ${MACHINE_ARCH} == "x86_64"
1281.20SheSUBDIR+=	exec_elf64
1291.20She.endif
1301.20She
1311.29Syamt.if ${MACHINE_ARCH} == "i386" || \
1321.29Syamt    ${MACHINE_ARCH} == "x86_64"
1331.71SjruohoSUBDIR+=	amdtemp
1341.64SjruohoSUBDIR+=	coretemp
1351.65SjruohoSUBDIR+=	est
1361.110SmartinSUBDIR+=	hdafg
1371.110SmartinSUBDIR+=	hdaudio
1381.72SjruohoSUBDIR+=	hpet
1391.69SjruohoSUBDIR+=	odcm
1401.66SjruohoSUBDIR+=	powernow
1411.29SyamtSUBDIR+=	tprof_pmi
1421.70SyamtSUBDIR+=	tprof_amdpmi
1431.95SjmcneillSUBDIR+=	vmt
1441.29Syamt.endif
1451.29Syamt
1461.140Sbad.if ${MACHINE_ARCH} == "i386" || \
1471.137Sbad    ${MACHINE_ARCH} == "x86_64"
1481.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1491.137Sbad.endif
1501.137Sbad
1511.126Salnsn.if ${MKSLJIT} != "no"
1521.126Salnsn# No modules for arm, mips and powerpc yet.
1531.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1541.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
1551.115Salnsn    ${MACHINE_ARCH} == "sparc"
1561.113SalnsnSUBDIR+=	bpfjit
1571.112SalnsnSUBDIR+=	sljit
1581.112Salnsn.endif
1591.126Salnsn.endif
1601.112Salnsn
1611.85Sjruoho#
1621.85Sjruoho# ACPI modules
1631.85Sjruoho#
1641.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
1651.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
1661.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
1671.46SpgoyetteSUBDIR+=	acpiverbose
1681.46Spgoyette.endif
1691.46Spgoyette
1701.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
1711.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
1721.52SjruohoSUBDIR+=	acpiacad
1731.52SjruohoSUBDIR+=	acpibat
1741.52SjruohoSUBDIR+=	acpibut
1751.52SjruohoSUBDIR+=	acpicpu
1761.53SjruohoSUBDIR+=	acpidalb
1771.58SjruohoSUBDIR+=	acpifan
1781.52SjruohoSUBDIR+=	acpilid
1791.57SjruohoSUBDIR+=	acpipmtr
1801.53SjruohoSUBDIR+=	acpitz
1811.53SjruohoSUBDIR+=	acpivga
1821.86SjruohoSUBDIR+=	acpiwdrt
1831.51SjmcneillSUBDIR+=	acpiwmi
1841.53SjruohoSUBDIR+=	aibs
1851.54SjruohoSUBDIR+=	asus
1861.63SjruohoSUBDIR+=	fujbp
1871.63SjruohoSUBDIR+=	fujhk
1881.75SjruohoSUBDIR+=	hpacel
1891.54SjruohoSUBDIR+=	hpqlb
1901.52SjruohoSUBDIR+=	thinkpad
1911.50SjmcneillSUBDIR+=	wmidell
1921.83SjruohoSUBDIR+=	wmieeepc
1931.50SjmcneillSUBDIR+=	wmihp
1941.50SjmcneillSUBDIR+=	wmimsi
1951.50Sjmcneill.endif
1961.50Sjmcneill
1971.27Sabs.if ${MACHINE_ARCH} == "x86_64"
1981.15SadSUBDIR+=	azalia
1991.15SadSUBDIR+=	compat_linux
2001.15SadSUBDIR+=	compat_linux32
2011.15SadSUBDIR+=	compat_netbsd32
2021.15SadSUBDIR+=	drm
2031.15SadSUBDIR+=	i915drm
2041.40SahokaSUBDIR+=	pad
2051.15Sad.endif
2061.15Sad
2071.27Sabs.if ${MACHINE_ARCH} == "i386"
2081.90SjmcneillSUBDIR+=	ati_pcigart
2091.15SadSUBDIR+=	azalia
2101.15SadSUBDIR+=	compat_freebsd
2111.15SadSUBDIR+=	compat_ibcs2
2121.15SadSUBDIR+=	compat_linux
2131.15SadSUBDIR+=	compat_svr4
2141.15SadSUBDIR+=	drm
2151.15SadSUBDIR+=	i915drm
2161.90SjmcneillSUBDIR+=	mach64drm
2171.90SjmcneillSUBDIR+=	mgadrm
2181.76SjmcneillSUBDIR+=	nsclpcsio
2191.40SahokaSUBDIR+=	pad
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.15Sad.endif
2291.15Sad
2301.85Sjruoho#
2311.85Sjruoho# ISA modules
2321.85Sjruoho#
2331.56Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
2341.56Sjmcneill    ${MACHINE_ARCH} == "x86_64"
2351.59SjmcneillSUBDIR+=	aps
2361.80SjmcneillSUBDIR+=	finsio
2371.79SjmcneillSUBDIR+=	itesio
2381.101SjakllschSUBDIR+=	lm
2391.101SjakllschSUBDIR+=	lm_isa
2401.101SjakllschSUBDIR+=	lm_isa_common
2411.101SjakllschSUBDIR+=	lm_wbsio
2421.101SjakllschSUBDIR+=	wbsio
2431.56Sjmcneill.endif
2441.56Sjmcneill
2451.49Stsutsui.if ${MACHINE_CPU} == "m68k"
2461.47StsutsuiSUBDIR+=	compat_aoutm68k
2471.47Stsutsui#SUBDIR+=	compat_linux
2481.47Stsutsui#SUBDIR+=	compat_sunos
2491.47Stsutsui#SUBDIR+=	compat_svr4
2501.47Stsutsui.endif
2511.47Stsutsui
2521.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \
2531.88Smbalmer    ${MACHINE_ARCH} == "x86_64" || \
2541.88Smbalmer    ${MACHINE_ARCH} == "sparc64"
2551.88SmbalmerSUBDIR+=	pwdog
2561.88Smbalmer.endif
2571.88Smbalmer
2581.23Sagc.include <bsd.own.mk>
2591.23Sagc
2601.107Sreinoud#
2611.107Sreinoud# NetBSD/usermode support
2621.107Sreinoud#
2631.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \
2641.107Sreinoud    ${MACHINE_ARCH} == "x86_64"
2651.107SreinoudSUBDIR+=	../arch/usermode/modules/syscallemu
2661.107Sreinoud.endif
2671.107Sreinoud
2681.23Sagc# we need our device mapper for LVM
2691.23Sagc.if (${MKLVM} != "no")
2701.28SyamtSUBDIR+= 	dm
2711.23Sagc.endif
2721.23Sagc
2731.39Sdarran.if (${MKDTRACE} != "no")
2741.116SchsSUBDIR+=	cyclic
2751.39SdarranSUBDIR+=	dtrace
2761.39Sdarran.endif
2771.39Sdarran
2781.39Sdarran# we need solaris for the dtrace and zfs modules
2791.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
2801.39SdarranSUBDIR+=        solaris
2811.39Sdarran.endif
2821.39Sdarran
2831.34Shaad.if (${MKZFS} != "no")
2841.34ShaadSUBDIR+=	zfs
2851.34Shaad.endif
2861.34Shaad
2871.73Smrg.if (${MKCOMPATMODULES} != "no")
2881.73SmrgSUBDIR+=	arch
2891.73Smrg.endif
2901.73Smrg
2911.84Sjmcneill#
2921.84Sjmcneill# DTV modules
2931.84Sjmcneill#
2941.84SjmcneillSUBDIR+=	dtv
2951.84SjmcneillSUBDIR+=	dtv_math
2961.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
2971.84Sjmcneill# tuners/demods
2981.84SjmcneillSUBDIR+=	au8522
2991.84SjmcneillSUBDIR+=	cx24227
3001.84SjmcneillSUBDIR+=	lg3303
3011.84SjmcneillSUBDIR+=	mt2131
3021.84SjmcneillSUBDIR+=	nxt2k
3031.84SjmcneillSUBDIR+=	tvpll
3041.84SjmcneillSUBDIR+=	xc3028
3051.84SjmcneillSUBDIR+=	xc5k
3061.91SjruohoSUBDIR+=	zl10353
3071.84Sjmcneill# hardware drivers
3081.84SjmcneillSUBDIR+=	auvitek
3091.84SjmcneillSUBDIR+=	coram
3101.84SjmcneillSUBDIR+=	cxdtv
3111.84SjmcneillSUBDIR+=	emdtv
3121.84Sjmcneill.endif
3131.84Sjmcneill
3141.98Sriz.if (${MKISCSI} != "no")
3151.98SrizSUBDIR+=	iscsi
3161.98Sriz.endif
3171.98Sriz
3181.1Sad.include <bsd.subdir.mk>
319