blob: 6e5be891e0e7ae950306b3d89c89f444bb56106e [file] [log] [blame]
liubin281ac462023-07-19 14:22:54 +08001ROOT = $(shell pwd)/../..
2include ../Make.defines
3
4LOCAL_PATH=$(BUILD_ROOT)/lynq_lib
5
6INC_DIR +=
7
8LIB_DIR +=
9
10LIBS += -llog -lmbtk_lib
11
12CFLAGS += -shared -Wl,-shared,-Bsymbolic
13
14DEFINE +=
15
16MY_FILES_PATH:=$(LOCAL_PATH)/src
17#ifeq ($(CONFIG_MBTK_QL_SUPPORT),y)
18#MY_FILES_PATH += $(LOCAL_PATH)/ql
19#endif
20
21#ifeq ($(CONFIG_MBTK_PLATFORM),linux)
22#MY_FILES_PATH += $(LOCAL_PATH)/platform/linux
23#endif
24
25MY_FILES_SUFFIX:=%.c %.cpp
26My_All_Files := $(foreach src_path,$(MY_FILES_PATH), $(shell find "$(src_path)" -type f))
27MY_SRC_LIST := $(filter $(MY_FILES_SUFFIX),$(My_All_Files))
28MY_SRC_LIST := $(MY_SRC_LIST:$(LOCAL_PATH)/%=%)
29LOCAL_SRC_FILES += $(MY_SRC_LIST)
30$(info LOCAL_SRC_FILES = $(LOCAL_SRC_FILES))
31
32dtarget := $(OUT_DIR)/lib/liblynq_lib.so
33
34all: $(dtarget)
35
36$(dtarget):
37 $(CC) $(CFLAGS) $(LOCAL_SRC_FILES) -o $@ $(DEFINE) $(INC_DIR) $(LIB_DIR) $(LIBS)
38
39clean:
40
41