5 APP_NAME = beremiz_runtime |
5 APP_NAME = beremiz_runtime |
6 |
6 |
7 RUNTIME_ROOT = $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) |
7 RUNTIME_ROOT = $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) |
8 ERPC_ROOT ?= $(abspath $(RUNTIME_ROOT)/../../erpc) |
8 ERPC_ROOT ?= $(abspath $(RUNTIME_ROOT)/../../erpc) |
9 ERPC_C_ROOT = $(ERPC_ROOT)/erpc_c |
9 ERPC_C_ROOT = $(ERPC_ROOT)/erpc_c |
|
10 BEREMIZ_ROOT = $(abspath $(RUNTIME_ROOT)/..) |
|
11 MATIEC_ROOT ?= $(abspath $(RUNTIME_ROOT)/../../matiec) |
10 |
12 |
11 INCLUDES += $(ERPC_C_ROOT)/infra \ |
13 INCLUDES += $(ERPC_C_ROOT)/infra \ |
12 $(ERPC_C_ROOT)/port \ |
14 $(ERPC_C_ROOT)/port \ |
13 $(ERPC_C_ROOT)/setup \ |
15 $(ERPC_C_ROOT)/setup \ |
14 $(ERPC_C_ROOT)/transports \ |
16 $(ERPC_C_ROOT)/transports \ |
15 $(ERPC_ROOT)/test/common/config \ |
17 $(ERPC_ROOT)/test/common/config \ |
16 $(ERPC_ROOT)/erpcgen/src |
18 $(ERPC_ROOT)/erpcgen/src \ |
|
19 $(BEREMIZ_ROOT)/targets \ |
|
20 $(MATIEC_ROOT)/lib/C |
17 |
21 |
18 INCLUDES := $(foreach includes, $(INCLUDES), -I $(includes)) |
22 INCLUDES := $(foreach includes, $(INCLUDES), -I $(includes)) |
19 |
23 |
20 ERPC_SOURCES += $(ERPC_ROOT)/erpcgen/src/format_string.cpp \ |
24 ERPC_SOURCES += $(ERPC_ROOT)/erpcgen/src/format_string.cpp \ |
21 $(ERPC_ROOT)/erpcgen/src/Logging.cpp \ |
25 $(ERPC_ROOT)/erpcgen/src/Logging.cpp \ |
40 SOURCES += $(RUNTIME_ROOT)/c_erpc_PLCObject_client.cpp \ |
44 SOURCES += $(RUNTIME_ROOT)/c_erpc_PLCObject_client.cpp \ |
41 $(RUNTIME_ROOT)/c_erpc_PLCObject_server.cpp \ |
45 $(RUNTIME_ROOT)/c_erpc_PLCObject_server.cpp \ |
42 $(RUNTIME_ROOT)/erpc_PLCObject_client.cpp \ |
46 $(RUNTIME_ROOT)/erpc_PLCObject_client.cpp \ |
43 $(RUNTIME_ROOT)/erpc_PLCObject_interface.cpp \ |
47 $(RUNTIME_ROOT)/erpc_PLCObject_interface.cpp \ |
44 $(RUNTIME_ROOT)/erpc_PLCObject_server.cpp \ |
48 $(RUNTIME_ROOT)/erpc_PLCObject_server.cpp \ |
|
49 $(RUNTIME_ROOT)/md5.cpp \ |
|
50 $(RUNTIME_ROOT)/blob.cpp \ |
45 $(RUNTIME_ROOT)/posix_main.cpp \ |
51 $(RUNTIME_ROOT)/posix_main.cpp \ |
46 $(RUNTIME_ROOT)/PLCObject.cpp |
52 $(RUNTIME_ROOT)/PLCObject.cpp |
47 |
53 |
48 |
54 |
49 # get version from version.py |
55 # get version from version.py |