summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2023-01-05 17:08:38 +0000
committerPeter Maydell <peter.maydell@linaro.org>2023-01-05 17:08:38 +0000
commitd5327c3730cdb3bb626b19e1c60a8ea55b1c575e (patch)
tree5ca3005aa265ea2865ca64b796f07cfa0ef8dbab
parent7bd422bcb4650adfa31dca0bbba6e74279850ed0 (diff)
Makefile: Add 'clean' targetHEADmaster
Add a 'clean' target that removes the generated binaries; and make 'all' actually build all the binaries including the usertest-a32-hlt and usertest-t32-hlt ones. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a8cae07..59fd831 100644
--- a/Makefile
+++ b/Makefile
@@ -66,12 +66,19 @@ QEMU_AARCH64 = $(QEMU_BUILDDIR)/qemu-aarch64 $(USRGDB)
QEMU_SYSTEM_ARM = $(SYSTIMEOUT) $(QEMU_BUILDDIR)/qemu-system-arm $(SYSGDB)
QEMU_SYSTEM_AARCH64 = $(SYSTIMEOUT) $(QEMU_BUILDDIR)/qemu-system-aarch64 $(SYSGDB)
-all: usertest-a32 usertest-a64 usertest-t32 \
+BINS = usertest-a32 usertest-t32 \
+ usertest-a32-hlt usertest-t32-hlt \
+ usertest-a64 \
systest-a32.axf systest-t32.axf \
systest-a32-hlt.axf systest-t32-hlt.axf \
systest-t32-bkpt.axf \
systest-a64.axf
+all: $(BINS)
+
+clean:
+ rm -rf $(BINS)
+
usertest-srcs = usertest.c semihosting.c semicall.S printf/printf.c
systest-srcs = start.S string.c $(usertest-srcs)