9 DIR_COMMON = $(PWD)/../../../../common
10 DIR_CTRL_LIB = $(PWD)/../../../control_lib
11 DIR_SERIAL = $(PWD)/../../../virtual_serial_if
12 DIR_COMPONENTS = $(PWD)/../../../components
13 DIR_LINUX_PORT = $(PWD)/../../port
15 INCLUDE += -I$(DIR_COMMON)/protobuf-c
16 INCLUDE += -I$(DIR_COMMON)/include
17 INCLUDE += -I$(DIR_CTRL_LIB)/include
18 INCLUDE += -I$(DIR_CTRL_LIB)/src/include
19 INCLUDE += -I$(DIR_SERIAL)/include
20 INCLUDE += -I$(DIR_COMPONENTS)/include
21 INCLUDE += -I$(DIR_LINUX_PORT)/include
24 SRC += $(DIR_COMMON)/protobuf-c/protobuf-c/protobuf-c.c
25 SRC += $(DIR_COMMON)/esp_hosted_config.pb-c.c
26 SRC += $(DIR_CTRL_LIB)/src/ctrl_core.c
27 SRC += $(DIR_CTRL_LIB)/src/ctrl_api.c
28 SRC += $(DIR_SERIAL)/src/serial_if.c
29 SRC += $(DIR_COMPONENTS)/src/esp_queue.c
30 SRC += $(DIR_LINUX_PORT)/src/platform_wrapper.c
32 LINKER = -lrt -lpthread
37 $(CROSS_COMPILE)$(CC) $(CFLAGS) $(INCLUDE) $(SRC) $(LINKER) -o $(TARGET) -shared -fPIC