Makefile revision 1.141
11.141Schristos#	$NetBSD: Makefile,v 1.141 2014/09/19 17:25:47 christos 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.141SchristosSUBDIR+=	hdaudioverbose
1391.72SjruohoSUBDIR+=	hpet
1401.69SjruohoSUBDIR+=	odcm
1411.66SjruohoSUBDIR+=	powernow
1421.29SyamtSUBDIR+=	tprof_pmi
1431.70SyamtSUBDIR+=	tprof_amdpmi
1441.95SjmcneillSUBDIR+=	vmt
1451.29Syamt.endif
1461.29Syamt
1471.140Sbad.if ${MACHINE_ARCH} == "i386" || \
1481.137Sbad    ${MACHINE_ARCH} == "x86_64"
1491.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1501.137Sbad.endif
1511.137Sbad
1521.126Salnsn.if ${MKSLJIT} != "no"
1531.126Salnsn# No modules for arm, mips and powerpc yet.
1541.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1551.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
1561.115Salnsn    ${MACHINE_ARCH} == "sparc"
1571.113SalnsnSUBDIR+=	bpfjit
1581.112SalnsnSUBDIR+=	sljit
1591.112Salnsn.endif
1601.126Salnsn.endif
1611.112Salnsn
1621.85Sjruoho#
1631.85Sjruoho# ACPI modules
1641.85Sjruoho#
1651.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
1661.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
1671.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
1681.46SpgoyetteSUBDIR+=	acpiverbose
1691.46Spgoyette.endif
1701.46Spgoyette
1711.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
1721.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
1731.52SjruohoSUBDIR+=	acpiacad
1741.52SjruohoSUBDIR+=	acpibat
1751.52SjruohoSUBDIR+=	acpibut
1761.52SjruohoSUBDIR+=	acpicpu
1771.53SjruohoSUBDIR+=	acpidalb
1781.58SjruohoSUBDIR+=	acpifan
1791.52SjruohoSUBDIR+=	acpilid
1801.57SjruohoSUBDIR+=	acpipmtr
1811.53SjruohoSUBDIR+=	acpitz
1821.53SjruohoSUBDIR+=	acpivga
1831.86SjruohoSUBDIR+=	acpiwdrt
1841.51SjmcneillSUBDIR+=	acpiwmi
1851.53SjruohoSUBDIR+=	aibs
1861.54SjruohoSUBDIR+=	asus
1871.63SjruohoSUBDIR+=	fujbp
1881.63SjruohoSUBDIR+=	fujhk
1891.75SjruohoSUBDIR+=	hpacel
1901.54SjruohoSUBDIR+=	hpqlb
1911.52SjruohoSUBDIR+=	thinkpad
1921.50SjmcneillSUBDIR+=	wmidell
1931.83SjruohoSUBDIR+=	wmieeepc
1941.50SjmcneillSUBDIR+=	wmihp
1951.50SjmcneillSUBDIR+=	wmimsi
1961.50Sjmcneill.endif
1971.50Sjmcneill
1981.27Sabs.if ${MACHINE_ARCH} == "x86_64"
1991.15SadSUBDIR+=	azalia
2001.15SadSUBDIR+=	compat_linux
2011.15SadSUBDIR+=	compat_linux32
2021.15SadSUBDIR+=	compat_netbsd32
2031.15SadSUBDIR+=	drm
2041.15SadSUBDIR+=	i915drm
2051.40SahokaSUBDIR+=	pad
2061.15Sad.endif
2071.15Sad
2081.27Sabs.if ${MACHINE_ARCH} == "i386"
2091.90SjmcneillSUBDIR+=	ati_pcigart
2101.15SadSUBDIR+=	azalia
2111.15SadSUBDIR+=	compat_freebsd
2121.15SadSUBDIR+=	compat_ibcs2
2131.15SadSUBDIR+=	compat_linux
2141.15SadSUBDIR+=	compat_svr4
2151.15SadSUBDIR+=	drm
2161.15SadSUBDIR+=	i915drm
2171.90SjmcneillSUBDIR+=	mach64drm
2181.90SjmcneillSUBDIR+=	mgadrm
2191.76SjmcneillSUBDIR+=	nsclpcsio
2201.40SahokaSUBDIR+=	pad
2211.62SjmcneillSUBDIR+=	padlock
2221.90SjmcneillSUBDIR+=	r128drm
2231.90SjmcneillSUBDIR+=	radeondrm
2241.90SjmcneillSUBDIR+=	savagedrm
2251.90SjmcneillSUBDIR+=	sisdrm
2261.90SjmcneillSUBDIR+=	tdfxdrm
2271.67SjruohoSUBDIR+=	viac7temp
2281.90SjmcneillSUBDIR+=	viadrm
2291.15Sad.endif
2301.15Sad
2311.85Sjruoho#
2321.85Sjruoho# ISA modules
2331.85Sjruoho#
2341.56Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
2351.56Sjmcneill    ${MACHINE_ARCH} == "x86_64"
2361.59SjmcneillSUBDIR+=	aps
2371.80SjmcneillSUBDIR+=	finsio
2381.79SjmcneillSUBDIR+=	itesio
2391.101SjakllschSUBDIR+=	lm
2401.101SjakllschSUBDIR+=	lm_isa
2411.101SjakllschSUBDIR+=	lm_isa_common
2421.101SjakllschSUBDIR+=	lm_wbsio
2431.101SjakllschSUBDIR+=	wbsio
2441.56Sjmcneill.endif
2451.56Sjmcneill
2461.49Stsutsui.if ${MACHINE_CPU} == "m68k"
2471.47StsutsuiSUBDIR+=	compat_aoutm68k
2481.47Stsutsui#SUBDIR+=	compat_linux
2491.47Stsutsui#SUBDIR+=	compat_sunos
2501.47Stsutsui#SUBDIR+=	compat_svr4
2511.47Stsutsui.endif
2521.47Stsutsui
2531.88Smbalmer.if ${MACHINE_ARCH} == "i386" || \
2541.88Smbalmer    ${MACHINE_ARCH} == "x86_64" || \
2551.88Smbalmer    ${MACHINE_ARCH} == "sparc64"
2561.88SmbalmerSUBDIR+=	pwdog
2571.88Smbalmer.endif
2581.88Smbalmer
2591.23Sagc.include <bsd.own.mk>
2601.23Sagc
2611.107Sreinoud#
2621.107Sreinoud# NetBSD/usermode support
2631.107Sreinoud#
2641.107Sreinoud.if ${MACHINE_ARCH} == "i386" || \
2651.107Sreinoud    ${MACHINE_ARCH} == "x86_64"
2661.107SreinoudSUBDIR+=	../arch/usermode/modules/syscallemu
2671.107Sreinoud.endif
2681.107Sreinoud
2691.23Sagc# we need our device mapper for LVM
2701.23Sagc.if (${MKLVM} != "no")
2711.28SyamtSUBDIR+= 	dm
2721.23Sagc.endif
2731.23Sagc
2741.39Sdarran.if (${MKDTRACE} != "no")
2751.116SchsSUBDIR+=	cyclic
2761.39SdarranSUBDIR+=	dtrace
2771.39Sdarran.endif
2781.39Sdarran
2791.39Sdarran# we need solaris for the dtrace and zfs modules
2801.39Sdarran.if (${MKDTRACE} != "no" || ${MKZFS} != "no")
2811.39SdarranSUBDIR+=        solaris
2821.39Sdarran.endif
2831.39Sdarran
2841.34Shaad.if (${MKZFS} != "no")
2851.34ShaadSUBDIR+=	zfs
2861.34Shaad.endif
2871.34Shaad
2881.73Smrg.if (${MKCOMPATMODULES} != "no")
2891.73SmrgSUBDIR+=	arch
2901.73Smrg.endif
2911.73Smrg
2921.84Sjmcneill#
2931.84Sjmcneill# DTV modules
2941.84Sjmcneill#
2951.84SjmcneillSUBDIR+=	dtv
2961.84SjmcneillSUBDIR+=	dtv_math
2971.84Sjmcneill.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
2981.84Sjmcneill# tuners/demods
2991.84SjmcneillSUBDIR+=	au8522
3001.84SjmcneillSUBDIR+=	cx24227
3011.84SjmcneillSUBDIR+=	lg3303
3021.84SjmcneillSUBDIR+=	mt2131
3031.84SjmcneillSUBDIR+=	nxt2k
3041.84SjmcneillSUBDIR+=	tvpll
3051.84SjmcneillSUBDIR+=	xc3028
3061.84SjmcneillSUBDIR+=	xc5k
3071.91SjruohoSUBDIR+=	zl10353
3081.84Sjmcneill# hardware drivers
3091.84SjmcneillSUBDIR+=	auvitek
3101.84SjmcneillSUBDIR+=	coram
3111.84SjmcneillSUBDIR+=	cxdtv
3121.84SjmcneillSUBDIR+=	emdtv
3131.84Sjmcneill.endif
3141.84Sjmcneill
3151.98Sriz.if (${MKISCSI} != "no")
3161.98SrizSUBDIR+=	iscsi
3171.98Sriz.endif
3181.98Sriz
3191.1Sad.include <bsd.subdir.mk>
320