# SPDX-License-Identifier: GPL-2.0

obj-y += debug_shrinker.o

obj-y += shm_trans.o
CFLAGS_shm_trans.o += ${CFLAGS_PAC}

obj-$(CONFIG_LIBLINUX_DEBUGFS_XPM) += debugfs_xpm.o hmxpm.o
CFLAGS_hmxpm.o += ${CFLAGS_PAC}

obj-$(CONFIG_LIBLINUX_DEBUGFS_BINDER) += debugfs_binder.o hmbinder_info.o
CFLAGS_hmbinder_info.o += ${CFLAGS_PAC}
obj-$(CONFIG_LIBLINUX_DEBUGFS_COMPACTION) += debugfs_extfrag.o hmextfrag.o
CFLAGS_hmextfrag.o += ${CFLAGS_PAC}

obj-$(CONFIG_LIBLINUX_DEBUGFS_EXT) += debugfs_ext.o debugfs_ext_if.o
CFLAGS_debugfs_ext_if.o += ${CFLAGS_PAC}

ifeq ($(CONFIG_LIBLINUX_DEBUGFS_BINDER), y)
CFLAGS_debugfs_ext_if.o += -DCONFIG_LIBLINUX_DEBUGFS_BINDER
endif

obj-$(CONFIG_LIBLINUX_DEBUGFS_HMV) += debugfs_hmv.o hmv_info.o
ifeq ($(CONFIG_LIBLINUX_DEBUGFS_HMV), y)
CFLAGS_debugfs_ext_if.o += -DCONFIG_LIBLINUX_DEBUGFS_HMV
endif

USER_OBJS := hmbinder_info.o shm_trans.o hmxpm.o hmextfrag.o debugfs_ext_if.o hmv_info.o
