ifeq ($(EPSILON_KERNEL),15)
include ion/src/device/shared/boot/Makefile
endif

ifneq ($(filter bootloader, ${MAKECMDGOALS}), bootloader)
ifeq ($(EPSILON_KERNEL),15)
include ion/src/device/shared/usb/Makefile
else
include ion/src/device/shared/usb/Makefile_kernel
endif
else
include ion/src/device/bootloader/usb/Makefile
endif
ifeq ($(EPSILON_KERNEL),15)
include ion/src/device/shared/drivers/Makefile
endif

ion_device_src += $(addprefix ion/src/device/shared/, \
  events.cpp \
  stack.cpp \
)
