blob: 792474417aab2f652facc539034db7439ca293e2 [file] [log] [blame]
BUILD_ROOT = $(shell pwd)
include Make.defines
# Build so file.
DIRS = libmbtk_lib libmbtk_net libmbtk_coap libmbtk_tcpip libmbtk_http libmbtk_ftp libmbtk_mqtt \
libmbtk_audio libmbtk_fota libmbtk_factory libmbtk_gnss
# Build libmbtk_ril libql_lib and liblynq_lib.
ifeq ($(MBTK_SOURCE_VERSION), 2)
DIRS += libmbtk_ril_v2 libql_lib_v2 liblynq_lib_v2
else
DIRS += libmbtk_ril libql_lib liblynq_lib
endif
# Build bin file.
ifeq ($(MBTK_SOURCE_VERSION), 2)
DIRS += mbtk_rild_v2 mbtk_servicesd_v2
else
DIRS += mbtk_rild mbtk_servicesd
endif
DIRS += mbtk_sdk_ready aboot-tiny mbtk_adbd mbtk_logd mbtk_utils mbtk_utils_linux mbtk_gnssd
# Build test file.
DIRS += test
#exclude_dirs := include bin
#test_dirs := $(shell find test/ -maxdepth 1 -type d)
#test_dirs := $(basename $(patsubst ./%,%,$(test_dirs)))
#test_dirs := $(filter-out $(exclude_dirs),$(test_dirs))
all:
@echo $(ROOT)
@echo $(CC)
@echo $(OUT_DIR)
@for i in $(DIRS); do \
(cd $$i && echo "making $$i" && $(MAKE) ) || exit 1; \
done
@echo "Build libs success."
clean:
@for i in $(DIRS); do \
(cd $$i && echo "Cleaning $$i" && $(MAKE) clean) || exit 1; \
done
rm -rf $(OUT_DIR)