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