From a7dccfd0e8e31698dea7f4808e4776d2a4e6da72 Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Thu, 28 Jun 2018 13:01:01 +0200 Subject: [PATCH] Add initial Release mode support --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 4c01c7d..3baae7b 100644 --- a/Makefile +++ b/Makefile @@ -2,4 +2,9 @@ PROJECT_NAME := mkrwifi1010-fw EXTRA_COMPONENT_DIRS := $(PWD)/arduino +ifeq ($(RELEASE),1) +CFLAGS += -DNDEBUG -DCONFIG_FREERTOS_ASSERT_DISABLE -Os -DLOG_LOCAL_LEVEL=0 +CPPFLAGS += -DNDEBUG -Os +endif + include $(IDF_PATH)/make/project.mk