Makefile revision 1.143
11.143Sjmcneill#	$NetBSD: Makefile,v 1.143 2015/03/07 14:16:51 jmcneill 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.24SpookaSUBDIR+=	sysvbfs
931.33SeladSUBDIR+=	suser
941.134SpgoyetteSUBDIR+=	swcrypto
951.48SpgoyetteSUBDIR+=	swsensor
961.7SrumbleSUBDIR+=	tmpfs
971.108SriastradSUBDIR+=	uatp
981.7SrumbleSUBDIR+=	udf
991.18SadSUBDIR+=	umap
1001.7SrumbleSUBDIR+=	union
1011.43SpgoyetteSUBDIR+=	usbverbose
1021.106SchristosSUBDIR+=	vcoda
1031.78SenamiSUBDIR+=	v7fs
1041.25ShaadSUBDIR+=	vnd
1051.131SpgoyetteSUBDIR+=	zlib
1061.29SyamtSUBDIR+=	tprof
1071.7Srumble.if (defined(NOTYET))
1081.135SpgoyetteSUBDIR+=	hifn		# Builds on architectures with PCI bus
1091.7SrumbleSUBDIR+=	unionfs
1101.7Srumble.endif
1111.37Sdyoung.if ${MKBINUTILS} != "no"
1121.37SdyoungSUBDIR+=	xldscripts
1131.37Sdyoung.endif
1141.7Srumble
1151.15Sad# Machine dependent section
1161.47Stsutsui.if ${MACHINE_ARCH} == "i386" || \
1171.49Stsutsui    ${MACHINE_CPU} == "m68k"
1181.47StsutsuiSUBDIR+=	exec_aout
1191.47Stsutsui.endif
1201.47Stsutsui
1211.139Smatt.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_CPU} != "aarch64"
1221.17SmartinSUBDIR+=	exec_elf32
1231.17Smartin.endif
1241.15Sad
1251.139Smatt.if ${MACHINE_CPU} == "aarch64" || \
1261.139Smatt    ${MACHINE_ARCH} == "alpha" || \
1271.21Stsutsui    ${MACHINE_ARCH} == "sparc64" || \
1281.21Stsutsui    ${MACHINE_ARCH} == "x86_64"
1291.20SheSUBDIR+=	exec_elf64
1301.20She.endif
1311.20She
1321.29Syamt.if ${MACHINE_ARCH} == "i386" || \
1331.29Syamt    ${MACHINE_ARCH} == "x86_64"
1341.71SjruohoSUBDIR+=	amdtemp
1351.64SjruohoSUBDIR+=	coretemp
1361.65SjruohoSUBDIR+=	est
1371.110SmartinSUBDIR+=	hdafg
1381.110SmartinSUBDIR+=	hdaudio
1391.141SchristosSUBDIR+=	hdaudioverbose
1401.72SjruohoSUBDIR+=	hpet
1411.69SjruohoSUBDIR+=	odcm
1421.66SjruohoSUBDIR+=	powernow
1431.29SyamtSUBDIR+=	tprof_pmi
1441.70SyamtSUBDIR+=	tprof_amdpmi
1451.95SjmcneillSUBDIR+=	vmt
1461.29Syamt.endif
1471.29Syamt
1481.140Sbad.if ${MACHINE_ARCH} == "i386" || \
1491.137Sbad    ${MACHINE_ARCH} == "x86_64"
1501.137SbadSUBDIR+=	ubsec		# Builds on architectures with PCI bus
1511.137Sbad.endif
1521.137Sbad
1531.126Salnsn.if ${MKSLJIT} != "no"
1541.126Salnsn# No modules for arm, mips and powerpc yet.
1551.114Salnsn.if ${MACHINE_ARCH} == "i386" || \
1561.115Salnsn    ${MACHINE_ARCH} == "x86_64" || \
1571.115Salnsn    ${MACHINE_ARCH} == "sparc"
1581.113SalnsnSUBDIR+=	bpfjit
1591.112SalnsnSUBDIR+=	sljit
1601.112Salnsn.endif
1611.126Salnsn.endif
1621.112Salnsn
1631.85Sjruoho#
1641.85Sjruoho# ACPI modules
1651.85Sjruoho#
1661.46Spgoyette.if ${MACHINE_ARCH} == "i386" || \
1671.46Spgoyette    ${MACHINE_ARCH} == "ia64" || \
1681.46Spgoyette    ${MACHINE_ARCH} == "x86_64"
1691.46SpgoyetteSUBDIR+=	acpiverbose
1701.46Spgoyette.endif
1711.46Spgoyette
1721.50Sjmcneill.if ${MACHINE_ARCH} == "i386" || \
1731.50Sjmcneill    ${MACHINE_ARCH} == "x86_64"
1741.52SjruohoSUBDIR+=	acpiacad
1751.52SjruohoSUBDIR+=	acpibat
1761.52SjruohoSUBDIR+=	acpibut
1771.52SjruohoSUBDIR+=	acpicpu
1781.53SjruohoSUBDIR+=	acpidalb
1791.58SjruohoSUBDIR+=	acpifan
1801.52SjruohoSUBDIR+=	acpilid
1811.57SjruohoSUBDIR+=	acpipmtr
1821.53SjruohoSUBDIR+=	acpitz
1831.53SjruohoSUBDIR+=	acpivga
1841.86SjruohoSUBDIR+=	acpiwdrt
1851.51SjmcneillSUBDIR+=	acpiwmi
1861.53SjruohoSUBDIR+=	aibs
1871.54SjruohoSUBDIR+=	asus
1881.63SjruohoSUBDIR+=	fujbp
1891.63SjruohoSUBDIR+=	fujhk
1901.75SjruohoSUBDIR+=	hpacel
1911.54SjruohoSUBDIR+=	hpqlb
1921.52SjruohoSUBDIR+=	thinkpad
1931.50SjmcneillSUBDIR+=	wmidell
1941.83SjruohoSUBDIR+=	wmieeepc
1951.50SjmcneillSUBDIR+=	wmihp
1961.50SjmcneillSUBDIR+=	wmimsi
1971.50Sjmcneill.endif
1981.50Sjmcneill
1991.27Sabs.if ${MACHINE_ARCH} == "x86_64"
2001.15SadSUBDIR+=	compat_linux32
2011.15SadSUBDIR+=	compat_netbsd32
2021.15Sad.endif
2031.15Sad
2041.27Sabs.if ${MACHINE_ARCH} == "i386"
2051.90SjmcneillSUBDIR+=	ati_pcigart
2061.15SadSUBDIR+=	compat_freebsd
2071.15SadSUBDIR+=	compat_ibcs2
2081.15SadSUBDIR+=	compat_svr4
2091.90SjmcneillSUBDIR+=	mach64drm
2101.90SjmcneillSUBDIR+=	mgadrm
2111.76SjmcneillSUBDIR+=	nsclpcsio
2121.62SjmcneillSUBDIR+=	padlock
2131.90SjmcneillSUBDIR+=	r128drm
2141.90SjmcneillSUBDIR+=	radeondrm
2151.90SjmcneillSUBDIR+=	savagedrm
2161.90SjmcneillSUBDIR+=	sisdrm
2171.90SjmcneillSUBDIR+=	tdfxdrm
2181.67SjruohoSUBDIR+=	viac7temp
2191.90SjmcneillSUBDIR+=	viadrm
2201.15Sad.endif
2211.15Sad
2221.142Schristos.if ${MACHINE_ARCH} == "i386" || \
2231.142Schristos    ${MACHINE_ARCH} == "x86_64"
2241.142SchristosSUBDIR+=	azalia
2251.142SchristosSUBDIR+=	compat_linux
2261.142SchristosSUBDIR+=	drm
2271.142SchristosSUBDIR+=	drmkms
2281.142SchristosSUBDIR+=	drmkms_linux
2291.142SchristosSUBDIR+=	drmkms_pci
2301.142SchristosSUBDIR+=	i915drm
2311.142SchristosSUBDIR+=	i915drmkms
2321.142SchristosSUBDIR+=	pad
2331.85Sjruoho#
2341.85Sjruoho# ISA modules
2351.85Sjruoho#
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