]> Git Repo - esp-hosted.git/blob - host/linux/host_control/python_support/Makefile
Merge branch 'pr129_vuhailongkl97' into 'master'
[esp-hosted.git] / host / linux / host_control / python_support / Makefile
1 CC = gcc
2
3 CROSS_COMPILE :=
4
5 CFLAGS = -C -Wall
6
7 PWD := $(shell pwd)
8
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
14
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
22 INCLUDE += -I.
23
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
31
32 LINKER = -lrt -lpthread
33
34 TARGET = commands.so
35
36 commands.so:
37         $(CROSS_COMPILE)$(CC) $(CFLAGS) $(INCLUDE) $(SRC) $(LINKER) -o $(TARGET) -shared -fPIC
38
39 clean:
40         rm -f $(TARGET) *.o
This page took 0.02327 seconds and 4 git commands to generate.