2011-12-23 14:04:29 +01:00
|
|
|
TARGET = core
|
|
|
|
REQUIRES = linux
|
2013-01-03 16:23:11 +01:00
|
|
|
LIBS = cxx ipc heap core_printf child lock raw_server syscall raw_signal
|
2011-12-22 16:19:25 +01:00
|
|
|
|
2011-12-23 14:04:29 +01:00
|
|
|
GEN_CORE_DIR = $(BASE_DIR)/src/core
|
2011-12-22 16:19:25 +01:00
|
|
|
|
2011-12-23 14:04:29 +01:00
|
|
|
SRC_CC = main.cc \
|
|
|
|
platform.cc \
|
|
|
|
platform_thread.cc \
|
2012-10-02 13:11:58 +02:00
|
|
|
platform_services.cc \
|
2011-12-23 14:04:29 +01:00
|
|
|
ram_session_component.cc \
|
|
|
|
ram_session_support.cc \
|
|
|
|
rom_session_component.cc \
|
|
|
|
cpu_session_component.cc \
|
2012-08-09 16:52:47 +02:00
|
|
|
cpu_session_extension.cc \
|
2012-05-28 16:57:09 +02:00
|
|
|
cpu_session_support.cc \
|
2011-12-23 14:04:29 +01:00
|
|
|
pd_session_component.cc \
|
|
|
|
io_mem_session_component.cc \
|
|
|
|
signal_session_component.cc \
|
|
|
|
signal_source_component.cc \
|
|
|
|
thread.cc \
|
|
|
|
thread_linux.cc \
|
|
|
|
context_area.cc \
|
2012-12-04 16:51:24 +01:00
|
|
|
debug.cc \
|
|
|
|
rm_session_mmap.cc
|
2011-12-22 16:19:25 +01:00
|
|
|
|
2011-12-23 14:04:29 +01:00
|
|
|
INC_DIR += $(REP_DIR)/src/core/include \
|
|
|
|
$(GEN_CORE_DIR)/include \
|
2012-08-10 16:35:57 +02:00
|
|
|
$(REP_DIR)/src/platform \
|
|
|
|
$(REP_DIR)/src/base/ipc
|
2011-12-23 14:04:29 +01:00
|
|
|
|
|
|
|
HOST_INC_DIR += /usr/include
|
2011-12-22 16:19:25 +01:00
|
|
|
|
2013-02-03 02:43:31 +01:00
|
|
|
#
|
|
|
|
# core does not use POSIX threads when built for the 'lx_hybrid_x86' platform,
|
|
|
|
# so we need to reserve the thread-context area via a segment in the program to
|
|
|
|
# prevent clashes with vdso and shared libraries.
|
|
|
|
#
|
|
|
|
ifeq ($(findstring always_hybrid, $(SPECS)), always_hybrid)
|
|
|
|
LD_SCRIPT_STATIC = $(LD_SCRIPT_DEFAULT) \
|
|
|
|
$(call select_from_repositories,src/platform/context_area.stdlib.ld)
|
|
|
|
endif
|
|
|
|
|
2011-12-22 16:19:25 +01:00
|
|
|
vpath main.cc $(GEN_CORE_DIR)
|
|
|
|
vpath thread.cc $(BASE_DIR)/src/base/thread
|
|
|
|
vpath ram_session_component.cc $(GEN_CORE_DIR)
|
|
|
|
vpath cpu_session_component.cc $(GEN_CORE_DIR)
|
2012-10-02 13:11:58 +02:00
|
|
|
vpath platform_services.cc $(GEN_CORE_DIR)
|
2011-12-22 16:19:25 +01:00
|
|
|
vpath signal_session_component.cc $(GEN_CORE_DIR)
|
|
|
|
vpath signal_source_component.cc $(GEN_CORE_DIR)
|
|
|
|
vpath debug.cc $(REP_DIR)/src/base/env
|
2012-12-04 16:51:24 +01:00
|
|
|
vpath rm_session_mmap.cc $(REP_DIR)/src/base/env
|
2011-12-22 16:19:25 +01:00
|
|
|
vpath %.cc $(PRG_DIR)
|