commit 66020afe4e4e2e38c08840c0f453eb224869e7ea
parent cf3ed178cc619acb15655126248db38ea83ed7e3
Author: Drew DeVault <sir@cmpwn.com>
Date: Sat, 2 Jan 2021 16:24:35 -0500
make clean: remove rt objects
This rehomes the clean logic for rt to rt/Makefile as well.
Diffstat:
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -26,8 +26,8 @@ include tests/Makefile
docs:
-clean: clean-tests
- @rm -f harec $(harec_objects) $(libhart_objs) libhart.a
+clean: clean-tests clean-rt
+ @rm -f harec $(harec_objects)
distclean: clean
@rm -rf "$(OUTDIR)"
diff --git a/rt/Makefile b/rt/Makefile
@@ -10,3 +10,6 @@ libhart.a: harec $(libhart_srcs) $(libhart_objs)
@$(AS) -o $@.o $@.s
@$(AR) -csr $@ $@.o $(libhart_objs)
@rm $@.o $@.s $@.ssa
+
+clean-rt:
+ @rm -f libhart.a $(libhart_objs) $(rtstart)
diff --git a/rt/configure b/rt/configure
@@ -6,6 +6,8 @@ rt() {
Linux)
rtstart=rt/+linux/start.o
cat <<-EOF
+ rtstart=rt/+linux/start.o
+
libhart_srcs=\
rt/+linux/syscallno+x86_64.ha \
rt/+linux/syscalls.ha