PV1_Comm/Makefile

37 lines
738 B
Makefile
Raw Permalink Normal View History

2018-09-11 06:56:00 +00:00
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
all: uvdbus
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