From 9494848392bddb94b3572f0d63c0d9ba04e4f913 Mon Sep 17 00:00:00 2001 From: Wesley Moore <wes@wezm.net> Date: Thu, 13 Feb 2025 20:32:51 +1000 Subject: [PATCH] Add clean target to Makefile --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index a41a7dc..94f754b 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,9 @@ all: calc.elf check: tests @tests/unittest +clean: + rm -f *.o tests/*.o *.elf tests/*.elf + hello.elf: hello.o $(LD) -m elf32lriscv $^ -o $@