[posix-app] enhance build switches (#3404)

This commit is contained in:
Jiacheng Guo
2018-12-27 15:59:55 -08:00
committed by Jonathan Hui
parent 99c753a6ad
commit 0fbb0e6310
+15
View File
@@ -32,6 +32,9 @@
COVERAGE ?= 0
DEBUG ?= 0
DISABLE_BUILTIN_MBEDTLS ?= 0
DISABLE_EXECUTABLE ?= 0
SNTP_CLIENT ?= 0
ECHO := @echo
MAKE := make
@@ -73,6 +76,18 @@ ifeq ($(COVERAGE),1)
configure_OPTIONS += --enable-coverage
endif
ifeq ($(DISABLE_BUILTIN_MBEDTLS), 1)
configure_OPTIONS += --disable-builtin-mbedtls
endif
ifeq ($(DISABLE_EXECUTABLE), 1)
configure_OPTIONS += --enable-executable=no
endif
ifeq (${SNTP_CLIENT}, 1)
configure_OPTIONS += --enable-sntp-client
endif
TopSourceDir := $(dir $(shell readlink $(firstword $(MAKEFILE_LIST))))../..
AbsTopSourceDir := $(dir $(realpath $(firstword $(MAKEFILE_LIST))))../..