SHELL := /bin/sh DIS_BUILD_WARRING ?= FALSE EN_MAKE_MSG ?= TRUE ifeq ($(EN_MAKE_MSG), TRUE) MAKE_FLAGS := else MAKE_FLAGS := -s endif ifneq ($(OPT), clean) ifneq ($(OPT), install) MAKE_FLAGS += -j$(shell cat /proc/cpuinfo | grep processor | wc -l) endif endif ifeq ($(DIR), ) DEMO_INS_PATH := ./release else DEMO_INS_PATH := $(DIR) endif .PHONY : uvdbus example cfgserver alarm ota voice logctrl all: uvdbus example alarm ota logctrl uvdbus: ifeq ($(OPT), clean) @make $(MAKE_FLAGS) -C build -f Makefile.lib.cross cleanall MAKE_TARGET=uvdbus else ifeq ($(OPT), install) @make $(MAKE_FLAGS) -C build -f Makefile.lib.cross install DIR=$(DIR) MAKE_TARGET=uvdbus else @make all $(MAKE_FLAGS) -C build -f Makefile.lib.cross DISABLE_WARRING=$(DIS_BUILD_WARRING) MAKE_TARGET=uvdbus endif example: ifeq ($(OPT), clean) @make $(MAKE_FLAGS) -C build -f Makefile.app.cross cleanall MAKE_TARGET=example else ifeq ($(OPT), install) @make $(MAKE_FLAGS) -C build -f Makefile.app.cross install DIR=$(DIR) MAKE_TARGET=example else @make all $(MAKE_FLAGS) -C build -f Makefile.app.cross DISABLE_WARRING=$(DIS_BUILD_WARRING) MAKE_TARGET=example endif cfgserver: ifeq ($(OPT), clean) @make $(MAKE_FLAGS) -C build -f Makefile.cfgsvr.cross cleanall MAKE_TARGET=cfgserver else ifeq ($(OPT), install) @make $(MAKE_FLAGS) -C build -f Makefile.cfgsvr.cross install DIR=$(DIR) MAKE_TARGET=cfgserver else @make all $(MAKE_FLAGS) -C build -f Makefile.cfgsvr.cross DISABLE_WARRING=$(DIS_BUILD_WARRING) MAKE_TARGET=cfgserver endif alarm: ifeq ($(OPT), clean) @make $(MAKE_FLAGS) -C build -f Makefile.alarm.cross cleanall MAKE_TARGET=alarm else ifeq ($(OPT), install) @make $(MAKE_FLAGS) -C build -f Makefile.alarm.cross install DIR=$(DIR) MAKE_TARGET=alarm else @make all $(MAKE_FLAGS) -C build -f Makefile.alarm.cross DISABLE_WARRING=$(DIS_BUILD_WARRING) MAKE_TARGET=alarm endif ota: ifeq ($(OPT), clean) @make $(MAKE_FLAGS) -C build -f Makefile.ota.cross cleanall MAKE_TARGET=ota else ifeq ($(OPT), install) @make $(MAKE_FLAGS) -C build -f Makefile.ota.cross install DIR=$(DIR) MAKE_TARGET=ota else @make all $(MAKE_FLAGS) -C build -f Makefile.ota.cross DISABLE_WARRING=$(DIS_BUILD_WARRING) MAKE_TARGET=ota endif voice: ifeq ($(OPT), clean) @make $(MAKE_FLAGS) -C build -f Makefile.voice.cross cleanall MAKE_TARGET=voice else ifeq ($(OPT), install) @make $(MAKE_FLAGS) -C build -f Makefile.voice.cross install DIR=$(DIR) MAKE_TARGET=voice else @make all $(MAKE_FLAGS) -C build -f Makefile.voice.cross DISABLE_WARRING=$(DIS_BUILD_WARRING) MAKE_TARGET=voice endif logctrl: ifeq ($(OPT), clean) @make $(MAKE_FLAGS) -C build -f Makefile.logctrl.cross cleanall MAKE_TARGET=logctrl else ifeq ($(OPT), install) @make $(MAKE_FLAGS) -C build -f Makefile.logctrl.cross install DIR=$(DIR) MAKE_TARGET=logctrl else @make all $(MAKE_FLAGS) -C build -f Makefile.logctrl.cross DISABLE_WARRING=$(DIS_BUILD_WARRING) MAKE_TARGET=logctrl endif