aboutsummaryrefslogtreecommitdiff
path: root/hexedit/Makefile
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-01-19 16:41:29 -0600
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-01-19 16:41:29 -0600
commit261c210c9c4c1e55103a7af31dfcc539c0e0e5cc (patch)
tree71840ab97b84dd3f995ea8900b08c98149feac36 /hexedit/Makefile
parent473e52cbe7cbee0333b7d97d91c4bbf95c1b3225 (diff)
Add subroutine for printing hexadecimal word
Diffstat (limited to 'hexedit/Makefile')
-rw-r--r--hexedit/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/hexedit/Makefile b/hexedit/Makefile
new file mode 100644
index 0000000..95f49ae
--- /dev/null
+++ b/hexedit/Makefile
@@ -0,0 +1,17 @@
+all: build
+
+build: echo.uf2
+
+echo.uf2: echo.elf
+ ../elf/elf2uf2 echo.elf echo.uf2
+
+objects = main.o xosc.o clocks.o gpio.o uart.o
+
+echo.elf: $(objects)
+ arm-none-eabi-ld -T pico_ram_only.ld -o echo.elf $(objects)
+
+$(objects): %.o: %.s
+ arm-none-eabi-as -o $@ $<
+
+clean:
+ rm echo.elf echo.uf2 *.o