From 261c210c9c4c1e55103a7af31dfcc539c0e0e5cc Mon Sep 17 00:00:00 2001 From: Jacques Comeaux Date: Fri, 19 Jan 2024 16:41:29 -0600 Subject: Add subroutine for printing hexadecimal word --- hexedit/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 hexedit/Makefile (limited to 'hexedit/Makefile') 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 -- cgit v1.2.3