X-Git-Url: https://git.sommitrealweird.co.uk/barbilliards.git/blobdiff_plain/a2707754a28862d91ba00981753b40bfd832fa78..1cf308c7a4fbd55e5e94c1c12fb6719f29394cb5:/src/Makefile?ds=inline diff --git a/src/Makefile b/src/Makefile index 8cc6471..0f5e574 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,7 +3,7 @@ MAKEFLAGS += --no-print-dir Q := @ endif -OPT_FLAGS ?= -O2 +OPT_FLAGS ?= -Os CFLAGS += -Wall -Wextra -Werror -Wno-char-subscripts\ $(OPT_FLAGS) -std=gnu99 -g3 -MD \ @@ -20,7 +20,8 @@ OBJCOPY = $(CROSS_COMPILE)objcopy OPT_FLAGS = -Os CFLAGS += -mcpu=cortex-m3 -mthumb \ - -DSTM32F1 -DDISCOVERY_STLINK -I../libopencm3/include \ + -DSTM32F1 -DDISCOVERY_STLINK \ + -I../libopencm3/include \ -I . LDFLAGS_BOOT := $(LDFLAGS) --specs=nano.specs \ -lopencm3_stm32f1 -Wl,--defsym,_stack=0x20005000 \