TARGET       = core
REQUIRES     = foc
LIBS         = cxx ipc heap core_printf process pager lock raw_signal raw_server

LD_TEXT_ADDR = 0x140000

GEN_CORE_DIR = $(BASE_DIR)/src/core

SRC_CC       = main.cc \
               multiboot_info.cc \
               ram_session_component.cc \
               ram_session_support.cc \
               rom_session_component.cc \
               cpu_session_component.cc \
               pd_session_component.cc \
               io_mem_session_component.cc \
               io_mem_session_support.cc \
               thread.cc \
               thread_bootstrap.cc \
               thread_start.cc \
               platform_thread.cc \
               platform_pd.cc \
               platform.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 \
               dump_alloc.cc \
               context_area.cc \
               cap_session_component.cc \
               cpu_session_extension.cc \
               pd_session_extension.cc \
               spin_lock.cc

INC_DIR     += $(REP_DIR)/src/core/include \
               $(GEN_CORE_DIR)/include \
               $(REP_DIR)/src/base/lock \
               $(BASE_DIR)/src/base/lock

vpath main.cc                     $(GEN_CORE_DIR)
vpath multiboot_info.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_mem_session_component.cc $(GEN_CORE_DIR)
vpath io_mem_session_support.cc   $(GEN_CORE_DIR)
vpath dataspace_component.cc      $(GEN_CORE_DIR)
vpath dump_alloc.cc               $(GEN_CORE_DIR)
vpath context_area.cc             $(GEN_CORE_DIR)
vpath thread.cc                   $(REP_DIR)/src/base/thread
vpath thread_bootstrap.cc         $(REP_DIR)/src/base/thread
vpath spin_lock.cc                $(REP_DIR)/src/base/env
vpath %.cc                        $(REP_DIR)/src/core
