blob: ca1421fb96ed8c8318489745381e476afab0023e [file]
#
# Copyright (C) 2015 MediaTek Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
mtk_irrx-y := mtk_ir_core.o mtk_ir_mouse.o
ifneq ($(filter y m, $(CONFIG_MTK_IRRX_NEC)),)
mtk_irrx-y += nec/mtk_ir_nec.o
obj-$(CONFIG_MTK_IRRX_NEC) += mtk_irrx.o
else ifneq ($(filter y m, $(CONFIG_MTK_IRRX_RC5)),)
mtk_irrx-y += rc5/mtk_ir_rc5.o
obj-$(CONFIG_MTK_IRRX_RC5) += mtk_irrx.o
else ifneq ($(filter y m, $(CONFIG_MTK_IRRX_RC6)),)
mtk_irrx-y += rc6/mtk_ir_rc6.o
obj-$(CONFIG_MTK_IRRX_RC6) += mtk_irrx.o
else ifneq ($(filter y m, $(CONFIG_MTK_IRRX_SIRC)),)
mtk_irrx-y += sirc/mtk_ir_sirc.o
obj-$(CONFIG_MTK_IRRX_SIRC) += mtk_irrx.o
else ifneq ($(filter y m, $(CONFIG_MTK_IRRX_RCMM)),)
mtk_irrx-y += rcmm/mtk_ir_rcmm.o
obj-$(CONFIG_MTK_IRRX_RCMM) += mtk_irrx.o
endif