aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 3a29b7b..5295576 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -47,6 +47,12 @@ OBJ = $(SRC:.c=.o)
blackmagic: $(OBJ)
$(CC) -o $@ $^ $(LDFLAGS)
+%.bin: %
+ $(OBJCOPY) -O binary $^ $@
+
+%.hex: %
+ $(OBJCOPY) -O ihex $^ $@
+
.PHONY: clean host_clean all_platforms
clean: host_clean