aboutsummaryrefslogtreecommitdiff
path: root/flashstub/Makefile
diff options
context:
space:
mode:
authorGareth McMullin2015-03-08 22:43:12 -0700
committerGareth McMullin2015-03-19 21:49:09 -0700
commitacfd258aa7b02ea23a6d26c29c3432bf3e857039 (patch)
treed4d23b80985c1fe9ddbe05eefaab1f5ba724c883 /flashstub/Makefile
parent8ddb186b35267e90832deb2db4b0c58f77de4b87 (diff)
Rewrite STM32F4 stub in C and use new interface.
Diffstat (limited to 'flashstub/Makefile')
-rw-r--r--flashstub/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/flashstub/Makefile b/flashstub/Makefile
index eeb1803..c955ca8 100644
--- a/flashstub/Makefile
+++ b/flashstub/Makefile
@@ -8,7 +8,7 @@ ifneq ($(V), 1)
Q = @
endif
-CFLAGS=-mcpu=cortex-m3 -mthumb -I../libopencm3/include
+CFLAGS=-Os -std=gnu99 -mcpu=cortex-m3 -mthumb -I../libopencm3/include
ASFLAGS=-mcpu=cortex-m3 -mthumb
all: lmi.stub stm32f4.stub nrf51.stub stm32f1.stub
@@ -17,6 +17,10 @@ stm32f1.o: stm32f1.c
$(Q)echo " CC $<"
$(Q)$(CC) $(CFLAGS) -DSTM32F1 -o $@ -c $<
+stm32f4.o: stm32f4.c
+ $(Q)echo " CC $<"
+ $(Q)$(CC) $(CFLAGS) -DSTM32F4 -o $@ -c $<
+
%.o: %.s
$(Q)echo " AS $<"
$(Q)$(AS) $(ASFLAGS) -o $@ $<