summaryrefslogtreecommitdiff
path: root/usr.bin/readcore/Makefile
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-05 04:18:16 +0000
committerIan Moffett <ian@osmora.org>2025-07-05 04:18:16 +0000
commitd527cf1b1d8ddbfa79d9b912fe9a7943e19f6555 (patch)
tree670c788812e32d9e46b57772152d1ee76bb08d05 /usr.bin/readcore/Makefile
parent88285ca7d9ac11c99b01a44d3525acb82d35e1de (diff)
usr.bin: Add 'readcore' program
This commit introduces a new program called 'readcore'. This program allows a user to debug crashed programs by passing in the path of a coredump file. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/readcore/Makefile')
-rw-r--r--usr.bin/readcore/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/readcore/Makefile b/usr.bin/readcore/Makefile
new file mode 100644
index 0000000..0c18475
--- /dev/null
+++ b/usr.bin/readcore/Makefile
@@ -0,0 +1,6 @@
+include user.mk
+
+CFILES = $(shell find . -name "*.c")
+
+$(ROOT)/base/usr/bin/readcore:
+ gcc -Iinclude/ $(CFILES) -o $@ $(INTERNAL_CFLAGS)