freebsd-dev/sys/modules/drm2/Makefile
Enji Cooper 193d9e768b sys/modules: normalize .CURDIR-relative paths to SRCTOP
This simplifies make output/logic

Tested with:	`cd sys/modules; make ALL_MODULES=` on amd64
MFC after:	1 month
Sponsored by:	Dell EMC Isilon
2017-03-04 10:10:17 +00:00

28 lines
489 B
Makefile

# $FreeBSD$
SYSDIR?=${SRCTOP}/sys
.include "${SYSDIR}/conf/kern.opts.mk"
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
_i915kms= i915kms
_radeonkms= radeonkms
. if ${MK_SOURCELESS_UCODE} != "no"
_radeonkmsfw= radeonkmsfw
. endif
.endif
.if ${MACHINE_CPUARCH} == "powerpc"
_radeonkms= radeonkms
. if ${MK_SOURCELESS_UCODE} != "no"
_radeonkmsfw= radeonkmsfw
. endif
.endif
SUBDIR = \
drm2 \
${_i915kms} \
${_radeonkms} \
${_radeonkmsfw}
.include <bsd.subdir.mk>