Home | History | Annotate | Line # | Download | only in modules
Makefile revision 1.202.2.21
      1 #	$NetBSD: Makefile,v 1.202.2.21 2018/04/17 23:06:11 pgoyette Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 # For all platforms
      6 
      7 # Modules for compatability with earlier versions of NetBSD
      8 
      9 SUBDIR+=	compat      compat_util
     10 SUBDIR+=	compat_43   compat_sysctl_09_43
     11 SUBDIR+=	compat_09   compat_10   compat_12   compat_13   compat_14
     12 SUBDIR+=	compat_16   compat_20   compat_30   compat_40   compat_50
     13 SUBDIR+=	compat_60   compat_70   compat_80 
     14 
     15 SUBDIR+=	compat_sysv compat_sysv_10 compat_sysv_14 compat_sysv_50
     16 
     17 SUBDIR+=	accf_dataready
     18 SUBDIR+=	accf_httpready
     19 SUBDIR+=	adosfs
     20 SUBDIR+=	aio
     21 SUBDIR+=	audio
     22 SUBDIR+=	autofs
     23 SUBDIR+=	blowfish
     24 SUBDIR+=	bpf
     25 SUBDIR+=	bpf_filter
     26 SUBDIR+=	bufq_disksort
     27 SUBDIR+=	bufq_fcfs
     28 SUBDIR+=	bufq_priocscan
     29 SUBDIR+=	bufq_readprio
     30 SUBDIR+=	camellia
     31 SUBDIR+=	cast128
     32 SUBDIR+=	ccd
     33 SUBDIR+=	cd9660
     34 SUBDIR+=	cgd
     35 SUBDIR+=	chfs
     36 SUBDIR+=	clockctl
     37 SUBDIR+=	compat_ossaudio
     38 SUBDIR+=	crypto
     39 SUBDIR+=	coda
     40 SUBDIR+=	coda5
     41 SUBDIR+=	coredump
     42 SUBDIR+=	dbcool
     43 SUBDIR+=	des
     44 SUBDIR+=	dk_subr
     45 SUBDIR+=	drvctl
     46 SUBDIR+=	efs
     47 SUBDIR+=	ext2fs
     48 SUBDIR+=	exec_script
     49 SUBDIR+=	fdesc
     50 SUBDIR+=	ffs
     51 SUBDIR+=	filecore
     52 SUBDIR+=	filemon
     53 SUBDIR+=	flash
     54 SUBDIR+=	fss
     55 SUBDIR+=	gpio
     56 SUBDIR+=	gpioiic
     57 SUBDIR+=	gpioow
     58 SUBDIR+=	gpiosim
     59 SUBDIR+=	hfs
     60 SUBDIR+=	hythygtemp
     61 SUBDIR+=	si70xxtemp
     62 SUBDIR+=	am2315temp
     63 SUBDIR+=	i2cexec
     64 SUBDIR+=	i2c_bitbang
     65 SUBDIR+=	if_agr
     66 SUBDIR+=	if_axe
     67 SUBDIR+=	if_axen
     68 SUBDIR+=	if_faith
     69 SUBDIR+=	if_gif
     70 SUBDIR+=	if_gre
     71 SUBDIR+=	if_l2tp
     72 SUBDIR+=	if_loop
     73 SUBDIR+=	if_mpls
     74 SUBDIR+=	if_npflog
     75 SUBDIR+=	if_ppp
     76 SUBDIR+=	if_pppoe
     77 SUBDIR+=	if_sl
     78 SUBDIR+=	if_smsc
     79 SUBDIR+=	if_srt
     80 SUBDIR+=	if_stf
     81 SUBDIR+=	if_strip
     82 SUBDIR+=	if_tun tun
     83 SUBDIR+=	if_vlan
     84 SUBDIR+=	iic
     85 SUBDIR+=	ip_ecn
     86 SUBDIR+=	ipl
     87 SUBDIR+=	kernfs
     88 SUBDIR+=	layerfs
     89 SUBDIR+=	lfs
     90 SUBDIR+=	lua
     91 SUBDIR+=	luasystm
     92 SUBDIR+=	luapmf
     93 SUBDIR+=	mfs
     94 SUBDIR+=	midi
     95 SUBDIR+=	miiverbose
     96 SUBDIR+=	miniroot
     97 SUBDIR+=	mqueue
     98 SUBDIR+=	msdos
     99 SUBDIR+=	nand
    100 SUBDIR+=	nandemulator
    101 SUBDIR+=	nfs
    102 SUBDIR+=	nfsserver
    103 SUBDIR+=	nilfs
    104 SUBDIR+=	npf
    105 SUBDIR+=	npf_alg_icmp
    106 SUBDIR+=	npf_ext_log
    107 SUBDIR+=	npf_ext_normalize
    108 SUBDIR+=	npf_ext_rndblock
    109 SUBDIR+=	ntfs
    110 SUBDIR+=	null
    111 SUBDIR+=	onewire
    112 SUBDIR+=	opencrypto
    113 SUBDIR+=	overlay
    114 SUBDIR+=	pciverbose
    115 SUBDIR+=	pf
    116 SUBDIR+=	ppp_bsdcomp
    117 SUBDIR+=	ppp_deflate
    118 SUBDIR+=	procfs
    119 SUBDIR+=	ptrace
    120 SUBDIR+=	ptrace_common
    121 SUBDIR+=	ptyfs
    122 SUBDIR+=	puffs
    123 SUBDIR+=	putter
    124 SUBDIR+=	raid
    125 SUBDIR+=	scsiverbose
    126 SUBDIR+=	sdtemp
    127 SUBDIR+=	secmodel_bsd44
    128 SUBDIR+=	secmodel_extensions
    129 SUBDIR+=	secmodel_overlay
    130 SUBDIR+=	securelevel
    131 SUBDIR+=	sequencer
    132 SUBDIR+=	skipjack
    133 SUBDIR+=	slcompress
    134 SUBDIR+=	smbfs
    135 SUBDIR+=	spdmem
    136 SUBDIR+=	spkr
    137 SUBDIR+=	sppp_subr
    138 SUBDIR+=	sysmon
    139 SUBDIR+=	sysmon_envsys
    140 SUBDIR+=	sysmon_power
    141 SUBDIR+=	sysmon_taskq
    142 SUBDIR+=	sysmon_wdog
    143 SUBDIR+=	sysvbfs
    144 SUBDIR+=	sysv_ipc
    145 SUBDIR+=	suser
    146 SUBDIR+=	swcrypto
    147 SUBDIR+=	swsensor
    148 SUBDIR+=	swwdog
    149 SUBDIR+=	tmpfs
    150 SUBDIR+=	ualea
    151 SUBDIR+=	uatp
    152 SUBDIR+=	udf
    153 SUBDIR+=	umap
    154 SUBDIR+=	union
    155 SUBDIR+=	usbverbose
    156 SUBDIR+=	vcoda
    157 SUBDIR+=	v7fs
    158 SUBDIR+=	vnd
    159 SUBDIR+=	wapbl
    160 SUBDIR+=	wsbell
    161 SUBDIR+=	zlib
    162 SUBDIR+=	tprof
    163 .if (defined(NOTYET))
    164 SUBDIR+=	hifn		# Builds on architectures with PCI bus
    165 SUBDIR+=	unionfs
    166 .endif
    167 .if ${MKBINUTILS} != "no"
    168 SUBDIR+=	xldscripts
    169 .endif
    170 
    171 # Machine dependent section
    172 .if ${MACHINE_ARCH} == "i386" || \
    173     ${MACHINE_CPU} == "m68k"
    174 SUBDIR+=	exec_aout
    175 .endif
    176 
    177 .if ${MACHINE_ARCH} != "alpha" && \
    178     ${MACHINE_CPU} != "aarch64" && \
    179     ${MACHINE_ARCH} != "ia64"
    180 SUBDIR+=	exec_elf32
    181 .endif
    182 
    183 .if ${MACHINE_CPU} == "aarch64" || \
    184     ${MACHINE_ARCH} == "alpha" || \
    185     ${MACHINE_ARCH} == "ia64" || \
    186     ${MACHINE_ARCH} == "sparc64" || \
    187     ${MACHINE_ARCH} == "x86_64"
    188 SUBDIR+=	exec_elf64
    189 .endif
    190 
    191 .if ${MACHINE_ARCH} == "i386" || \
    192     ${MACHINE_ARCH} == "x86_64"
    193 SUBDIR+=	amdsmn
    194 SUBDIR+=	amdtemp
    195 SUBDIR+=	amdzentemp
    196 SUBDIR+=	coretemp
    197 SUBDIR+=	est
    198 SUBDIR+=	hdafg
    199 SUBDIR+=	hdaudio
    200 SUBDIR+=	hdaudio_pci
    201 SUBDIR+=	hdaudioverbose
    202 SUBDIR+=	hpet
    203 SUBDIR+=	ichsmb
    204 SUBDIR+=	odcm
    205 SUBDIR+=	powernow
    206 SUBDIR+=	tco
    207 SUBDIR+=	tprof_pmi
    208 SUBDIR+=	tprof_amdpmi
    209 SUBDIR+=	vmt
    210 .endif
    211 
    212 .if ${MACHINE_ARCH} == "i386" || \
    213     ${MACHINE_ARCH} == "x86_64"
    214 SUBDIR+=	ubsec		# Builds on architectures with PCI bus
    215 .endif
    216 
    217 .if ${MKSLJIT} != "no"
    218 # No modules for arm, mips and powerpc yet.
    219 .if ${MACHINE_ARCH} == "i386" || \
    220     ${MACHINE_ARCH} == "x86_64" || \
    221     ${MACHINE_ARCH} == "sparc"
    222 SUBDIR+=	bpfjit
    223 SUBDIR+=	sljit
    224 .endif
    225 .endif
    226 
    227 #
    228 # ACPI modules
    229 #
    230 .if ${MACHINE_ARCH} == "i386" || \
    231     ${MACHINE_ARCH} == "ia64" || \
    232     ${MACHINE_ARCH} == "x86_64"
    233 SUBDIR+=	acpiverbose
    234 .endif
    235 
    236 .if ${MACHINE_ARCH} == "i386" || \
    237     ${MACHINE_ARCH} == "x86_64"
    238 SUBDIR+=	acpiacad
    239 SUBDIR+=	acpibat
    240 SUBDIR+=	acpibut
    241 SUBDIR+=	acpicpu
    242 SUBDIR+=	acpidalb
    243 SUBDIR+=	acpifan
    244 SUBDIR+=	acpilid
    245 SUBDIR+=	acpipmtr
    246 SUBDIR+=	acpitz
    247 SUBDIR+=	acpivga
    248 SUBDIR+=	acpiwdrt
    249 SUBDIR+=	acpiwmi
    250 SUBDIR+=	aibs
    251 SUBDIR+=	asus
    252 SUBDIR+=	fujbp
    253 SUBDIR+=	fujhk
    254 SUBDIR+=	hpacel
    255 SUBDIR+=	hpqlb
    256 SUBDIR+=	thinkpad
    257 SUBDIR+=	wmidell
    258 SUBDIR+=	wmieeepc
    259 SUBDIR+=	wmihp
    260 SUBDIR+=	wmimsi
    261 .endif
    262 
    263 .if ${MACHINE_CPU} == "arm" \
    264     || (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
    265 SUBDIR+=	compat_netbsd32
    266 SUBDIR+=	compat_netbsd32_mqueue
    267 SUBDIR+=	compat_netbsd32_nfssrv
    268 SUBDIR+=	compat_netbsd32_ptrace
    269 SUBDIR+=	compat_netbsd32_sysvipc
    270 .endif
    271 
    272 .if ${MACHINE_ARCH} == "x86_64"
    273 SUBDIR+=	compat_linux32
    274 SUBDIR+=	compat_netbsd32
    275 SUBDIR+=	compat_netbsd32_mqueue
    276 SUBDIR+=	compat_netbsd32_nfssrv
    277 SUBDIR+=	compat_netbsd32_ptrace
    278 SUBDIR+=	compat_netbsd32_sysvipc
    279 .endif
    280 
    281 .if ${MACHINE_ARCH} == "i386"
    282 SUBDIR+=	ati_pcigart
    283 SUBDIR+=	compat_freebsd
    284 SUBDIR+=	mach64drm
    285 SUBDIR+=	mgadrm
    286 SUBDIR+=	nsclpcsio
    287 SUBDIR+=	padlock
    288 SUBDIR+=	r128drm
    289 SUBDIR+=	radeondrm
    290 SUBDIR+=	savagedrm
    291 SUBDIR+=	sisdrm
    292 SUBDIR+=	tdfxdrm
    293 SUBDIR+=	viac7temp
    294 SUBDIR+=	viadrm
    295 SUBDIR+=	viadrmums
    296 .endif
    297 
    298 .if ${MACHINE_ARCH} == "i386" || \
    299     ${MACHINE_ARCH} == "x86_64"
    300 SUBDIR+=	azalia
    301 SUBDIR+=	compat_linux
    302 SUBDIR+=	drm
    303 SUBDIR+=	drmkms
    304 SUBDIR+=	drmkms_linux
    305 SUBDIR+=	drmkms_pci
    306 SUBDIR+=	i915drm
    307 SUBDIR+=	i915drmkms
    308 SUBDIR+=	pad
    309 #
    310 # ISA modules
    311 #
    312 SUBDIR+=	aps
    313 SUBDIR+=	finsio
    314 SUBDIR+=	itesio
    315 SUBDIR+=	lm
    316 SUBDIR+=	lm_isa
    317 SUBDIR+=	lm_isa_common
    318 SUBDIR+=	lm_wbsio
    319 SUBDIR+=	wbsio
    320 .endif
    321 
    322 .if ${MACHINE_CPU} == "m68k"
    323 SUBDIR+=	compat_aoutm68k
    324 #SUBDIR+=	compat_linux
    325 #SUBDIR+=	compat_sunos
    326 #SUBDIR+=	compat_svr4
    327 .endif
    328 
    329 .if ${MACHINE_ARCH} == "i386" || \
    330     ${MACHINE_ARCH} == "x86_64" || \
    331     ${MACHINE_ARCH} == "sparc64"
    332 SUBDIR+=	pwdog
    333 .endif
    334 
    335 .include <bsd.own.mk>
    336 
    337 #
    338 # NetBSD/usermode support
    339 #
    340 .if ${MACHINE_ARCH} == "i386" || \
    341     ${MACHINE_ARCH} == "x86_64"
    342 SUBDIR+=	../arch/usermode/modules/syscallemu
    343 .endif
    344 
    345 # we need our device mapper for LVM
    346 .if (${MKLVM} != "no")
    347 SUBDIR+= 	dm
    348 .endif
    349 
    350 .if (${MKDTRACE} != "no")
    351 SUBDIR+=	cyclic
    352 SUBDIR+=	dtrace
    353 .endif
    354 
    355 # we need solaris for the dtrace and zfs modules
    356 .if (${MKDTRACE} != "no" || ${MKZFS} != "no")
    357 SUBDIR+=        solaris
    358 .endif
    359 
    360 .if (${MKZFS} != "no")
    361 SUBDIR+=	zfs
    362 .endif
    363 
    364 .if (${MKCOMPATMODULES} != "no")
    365 SUBDIR+=	arch
    366 .endif
    367 
    368 #
    369 # DTV modules
    370 #
    371 SUBDIR+=	dtv
    372 SUBDIR+=	dtv_math
    373 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
    374 # tuners/demods
    375 SUBDIR+=	au8522
    376 SUBDIR+=	cx24227
    377 SUBDIR+=	lg3303
    378 SUBDIR+=	mt2131
    379 SUBDIR+=	nxt2k
    380 SUBDIR+=	tvpll
    381 SUBDIR+=	xc3028
    382 SUBDIR+=	xc5k
    383 SUBDIR+=	zl10353
    384 # hardware drivers
    385 SUBDIR+=	auvitek
    386 SUBDIR+=	coram
    387 SUBDIR+=	cxdtv
    388 SUBDIR+=	emdtv
    389 
    390 # Intel Integrated Memory Controller and associated SMBus
    391 # (Experimental)
    392 SUBDIR+=	imc
    393 SUBDIR+=	imcsmb
    394 
    395 .endif
    396 
    397 .if (${MKISCSI} != "no")
    398 SUBDIR+=	iscsi
    399 .endif
    400 
    401 # For now, all of these are disabled, pending resolution of how to deal
    402 # with attachment-specific modules and bus-specific modules (as opposed
    403 # to machine- or architecture-specific modules)
    404 
    405 .if 0
    406 SUBDIR+=	aac
    407 SUBDIR+=	amr
    408 SUBDIR+=	ataraid
    409 SUBDIR+=	cac
    410 SUBDIR+=	cac_eisa
    411 SUBDIR+=	cac_pci
    412 SUBDIR+=	if_vioif
    413 SUBDIR+=	ld
    414 SUBDIR+=	ld_aac
    415 SUBDIR+=	ld_amr
    416 SUBDIR+=	ld_ataraid
    417 SUBDIR+=	ld_cac
    418 SUBDIR+=	ld_icp
    419 SUBDIR+=	ld_mlx
    420 SUBDIR+=	ld_sdmmc
    421 SUBDIR+=	ld_twa
    422 SUBDIR+=	ld_twe
    423 SUBDIR+=	ld_virtio
    424 SUBDIR+=	mlx
    425 SUBDIR+=	mlx_eisa
    426 SUBDIR+=	mlx_pci
    427 SUBDIR+=	ld_nvme
    428 SUBDIR+=	nvme
    429 SUBDIR+=	twa
    430 SUBDIR+=	twe
    431 SUBDIR+=	viomb
    432 SUBDIR+=	virtio
    433 SUBDIR+=	vioscsi
    434 .endif
    435 
    436 SUBDIR+=	examples	# build these regularly to avoid bit-rot
    437 
    438 .include <bsd.subdir.mk>
    439