| BUILD_ROOT = $(shell pwd)/.. |
| include $(BUILD_ROOT)/Make.defines |
| |
| LOCAL_PATH=$(BUILD_ROOT)/libql_lib_v2_rilv2 |
| |
| INC_DIR += \ |
| -I$(LOCAL_PATH) |
| |
| LIB_DIR += |
| |
| LIBS += -lmbtk_lib -llog -lubus -lubox -lblobmsg_json -lrilutil -lm |
| |
| CFLAGS += -shared -Wl,-shared,-Bsymbolic |
| |
| DEFINE += |
| |
| #MY_FILES_PATH:=$(LOCAL_PATH) |
| #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)) |
| |
| #LOCAL_SRC_FILES = $(wildcard *.c) $(wildcard *.cpp) |
| LOCAL_SRC_FILES = ql_sim.c \ |
| ql_nw.c \ |
| ql_sms.c \ |
| ql_voice.c \ |
| ql_data_call_v1.c \ |
| ql_wifi.c \ |
| ql_test_utils.c \ |
| ql_absys_api.c \ |
| ql_adc.c \ |
| ql_atc.c \ |
| ql_audio_cfg.c \ |
| ql_audio_pcm.c \ |
| ql_cell_locator.c \ |
| ql_dm.c \ |
| ql_fota.c \ |
| ql_fota_api.c \ |
| ql_fota_common.c \ |
| ql_gnss.c \ |
| ql_gpio.c \ |
| ql_gpio_internal.c \ |
| ql_lanhost.c \ |
| ql_lpm.c \ |
| ql_ms_data_call.c \ |
| ql_ms_dm.c \ |
| ql_ms_nw.c \ |
| ql_ms_sim.c \ |
| ql_ms_sms.c \ |
| ql_ms_voice.c \ |
| ql_net_usb_dev.c \ |
| ql_nf.c \ |
| ql_nslookup.c \ |
| ql_sleep_wakelock.c \ |
| ql_ecall.c \ |
| ql_tee_service.c |
| |
| |
| |
| |
| OBJS = $(patsubst %.c, %.o, $(patsubst %.cpp, %.o, $(LOCAL_SRC_FILES))) |
| $(info OBJS = $(OBJS)) |
| |
| lib_name := libql_lib.so |
| lib_version := 2 |
| |
| dtarget := $(OUT_DIR)/lib/$(lib_name).$(lib_version) |
| |
| all: $(dtarget) |
| |
| $(dtarget): $(OBJS) |
| $(CC) $(CFLAGS) $(LIB_DIR) $(LIBS) $(OBJS) -o $@ |
| cp $@ $(BUILD_ROOT)/rootfs/lib |
| ln -sf $(lib_name).$(lib_version) $(BUILD_ROOT)/rootfs/lib/$(lib_name) |
| |
| %.o:%.c |
| $(CC) $(CFLAGS) $(INC_DIR) $(DEFINE) -c $< -o $@ |
| |
| %.o:%.cpp |
| $(CC) $(CFLAGS) $(INC_DIR) $(DEFINE) -c $< -o $@ |
| |
| clean: |
| rm -f $(OBJS) $(dtarget) |
| |