Fix Makefile configuration

- Removed DEBUG enabled by default
- Removed optimization & debug levels and use ones from SDK
- Disable PRINTF formatting warnings again (for the custom %.*H format)
This commit is contained in:
Alexandre Paillier
2023-03-21 11:55:51 +01:00
parent 8881471a8e
commit 3810cbd852

View File

@@ -186,7 +186,6 @@ endif
endif
# Enabling debug PRINTF
DEBUG:=1
ifneq ($(DEBUG),0)
DEFINES += HAVE_STACK_OVERFLOW_CHECK
ifeq ($(TARGET_NAME),TARGET_NANOS)
@@ -223,13 +222,11 @@ endif
CC := $(CLANGPATH)clang
CFLAGS += -Og -g
# CFLAGS += -Oz -Wno-format-invalid-specifier -Wno-format-extra-args
CFLAGS += -Wno-format-invalid-specifier -Wno-format-extra-args
AS := $(GCCPATH)arm-none-eabi-gcc
LD := $(GCCPATH)arm-none-eabi-gcc
LDFLAGS += -O0
LDLIBS += -lm -lgcc -lc
# import rules to compile glyphs(/pone)