blob: 77502d592033bb6506b2e1247aedcde7f9b4591e [file] [log] [blame]
ROOT = $(shell pwd)/../..
include ../Make.defines
LOCAL_PATH=$(BUILD_ROOT)/mbtk_lib
INC_DIR += \
-I$(LOCAL_PATH)/inc
LIB_DIR +=
LIBS += -llog -lubus -lubox -lprop2uci -luci -lrilutil -lpolarssl \
-lavcodec \
-lavdevice \
-lavfilter \
-lavformat \
-lavutil \
-lpostproc \
-lswresample \
-lswscale \
-lcutils \
-laudio-apu
CFLAGS += -shared -Wl,-shared,-Bsymbolic
DEFINE += -DMBTK_NET_MONITOR_SUPPORT
MY_FILES_PATH:=$(LOCAL_PATH)/src
#ifeq ($(CONFIG_MBTK_QL_SUPPORT),y)
#MY_FILES_PATH += $(LOCAL_PATH)/ql
#endif
#ifeq ($(CONFIG_MBTK_PLATFORM),linux)
#MY_FILES_PATH += $(LOCAL_PATH)/platform/linux
#endif
MY_FILES_SUFFIX:=%.c %.cpp
My_All_Files := $(foreach src_path,$(MY_FILES_PATH), $(shell find "$(src_path)" -type f))
MY_SRC_LIST := $(filter $(MY_FILES_SUFFIX),$(My_All_Files))
MY_SRC_LIST := $(MY_SRC_LIST:$(LOCAL_PATH)/%=%)
LOCAL_SRC_FILES += $(MY_SRC_LIST)
$(info LOCAL_SRC_FILES = $(LOCAL_SRC_FILES))
dtarget := $(OUT_DIR)/lib/libmbtk_lib.so
all: $(dtarget)
$(dtarget):
$(CC) $(CFLAGS) $(LOCAL_SRC_FILES) -o $@ $(DEFINE) $(INC_DIR) $(LIB_DIR) $(LIBS)
clean: