TARGET       = core
LIBS         = base-common

GEN_CORE_DIR = $(BASE_DIR)/src/core

SRC_CC       = main.cc \
               ram_session_component.cc \
               ram_session_support.cc \
               rom_session_component.cc \
               cpu_session_component.cc \
               cpu_session_support.cc \
               pd_session_component.cc \
               io_mem_session_component.cc \
               io_mem_session_support.cc \
               thread_start.cc \
               platform_thread.cc \
               platform_pd.cc \
               platform.cc \
               platform_services.cc \
               core_mem_alloc.cc \
               dataspace_component.cc \
               rm_session_component.cc \
               rm_session_support.cc \
               io_port_session_component.cc \
               irq_session_component.cc \
               signal_session_component.cc \
               signal_source_component.cc \
               core_rm_session.cc \
               cap_sel_alloc.cc \
               main_thread.cc \
               context_area.cc \
               echo.cc \
               dump_alloc.cc \
               cpu_session_extension.cc \
               pd_session_extension.cc \
               core_printf.cc \
               pager.cc

INC_DIR      = $(REP_DIR)/src/core/include \
               $(REP_DIR)/src/base/console \
               $(GEN_CORE_DIR)/include

vpath main.cc                      $(GEN_CORE_DIR)
vpath ram_session_component.cc     $(GEN_CORE_DIR)
vpath rom_session_component.cc     $(GEN_CORE_DIR)
vpath cpu_session_component.cc     $(GEN_CORE_DIR)
vpath pd_session_component.cc      $(GEN_CORE_DIR)
vpath rm_session_component.cc      $(GEN_CORE_DIR)
vpath signal_session_component.cc  $(GEN_CORE_DIR)
vpath io_port_session_component.cc $(GEN_CORE_DIR)/x86
vpath io_mem_session_component.cc  $(GEN_CORE_DIR)
vpath io_mem_session_support.cc    $(GEN_CORE_DIR)
vpath dataspace_component.cc       $(GEN_CORE_DIR)
vpath core_mem_alloc.cc            $(GEN_CORE_DIR)
vpath dump_alloc.cc                $(GEN_CORE_DIR)
vpath platform_services.cc         $(GEN_CORE_DIR)/x86
vpath context_area.cc              $(GEN_CORE_DIR)
vpath core_printf.cc               $(BASE_DIR)/src/base/console
vpath %.cc                         $(REP_DIR)/src/core
vpath cap_sel_alloc.cc             $(REP_DIR)/src/base/env
vpath main_thread.cc               $(REP_DIR)/src/base/env
vpath pager.cc                     $(REP_DIR)/src/base/pager
