]> git.sommitrealweird.co.uk Git - barbilliards.git/blobdiff - src/Makefile
Fixes to usb stack so that it works
[barbilliards.git] / src / Makefile
index 8cc64711cf4cf20a501441fcff30edee6095c413..0f5e574dcfeb4989d7d7cd3e4abe884b7514e1f1 100644 (file)
@@ -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 \