| 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_ril libmbtk_audio libmbtk_fota libmbtk_factory libmbtk_gnss |
| |
| # Build libql_lib and liblynq_lib. |
| DIRS += libql_lib liblynq_lib |
| |
| # Build bin file. |
| DIRS += aboot-tiny mbtk_adbd mbtk_rild mbtk_logd mbtk_utils mbtk_utils_linux mbtk_sdk_ready mbtk_gnssd mbtk_servicesd |
| |
| # 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) |