37 lines
738 B
Makefile
37 lines
738 B
Makefile
|
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
|