obj-$(CONFIG_EXCHND) += exchnd.o
exchnd-objs := exchnd_driver.o exchnd_modules.o exchnd_triggers.o \
	exchnd_ioctl.o exchnd_device_buffer.o exchnd_exception_queue.o \
	exchnd_filter.o exchnd_watchdog.o

exchnd-$(CONFIG_ARM) += exchnd_modules_arm.o
exchnd-$(CONFIG_X86) += exchnd_modules_x86.o

ifneq ($(CONFIG_EXCHND_USE_PROFILING), y)
	exchnd-$(CONFIG_ARM) += exchnd_triggers_arm.o
	exchnd-$(CONFIG_X86) += exchnd_triggers_x86.o
else
	exchnd-objs += exchnd_profiling.o
endif

obj-$(CONFIG_EXCHND_TEST) += exchnd_test/
