summaryrefslogtreecommitdiffstats
path: root/radiator-plc/stm32/app/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'radiator-plc/stm32/app/Makefile')
-rw-r--r--radiator-plc/stm32/app/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/radiator-plc/stm32/app/Makefile b/radiator-plc/stm32/app/Makefile
index 8ef06f7..2ff2f51 100644
--- a/radiator-plc/stm32/app/Makefile
+++ b/radiator-plc/stm32/app/Makefile
@@ -20,7 +20,8 @@
CPROTO=cproto
PROG=radiator-plc
-D=radiator-plc0
+D=radiator-plc0 radiator-plc1
+#D=10.32.94.238
V=1
default: ${PROG}.elf
@@ -34,17 +35,19 @@ OBJS = ${CSRCS:%.c=%.o}
${OBJS}:
+
include ../Makefile.include
INCLUDES += -I..
+flash: ${PROG}.hex
+ for d in ${D}; do ssh $$d flash_stm32 < ${PROG}.hex; done
+
protos: ${CSRCS}
echo -n > prototypes.h
${CPROTO} $(INCLUDES) $(DEFINES) -e -v ${CSRCS} > prototypes.h.tmp
mv -f prototypes.h.tmp prototypes.h
-flash: ${PROG}.hex
- ssh ${D} flash_stm32 < ${PROG}.hex
local_flash: ${PROG}.hex
$(Q)$(OOCD) -f $(OOCD_INTERFACE) \