summaryrefslogtreecommitdiff
path: root/usr.bin/elfdump/Makefile
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-23 15:08:38 -0400
committerIan Moffett <ian@osmora.org>2025-06-23 15:08:38 -0400
commit16807ff976a8cf71babf9d28bcfe3ceb7911f142 (patch)
tree03f2834d02d3ebb74950cbbe30d1b10e3ef0ae99 /usr.bin/elfdump/Makefile
parent3c84e64787322e1a1ccc0e5a375add036479860c (diff)
usr.bin: Add 'elfdump' tool
Introduce the 'elfdump' utility to dump information relating to ELF files. This is useful for debugging purposes. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/elfdump/Makefile')
-rw-r--r--usr.bin/elfdump/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/elfdump/Makefile b/usr.bin/elfdump/Makefile
new file mode 100644
index 0000000..b450635
--- /dev/null
+++ b/usr.bin/elfdump/Makefile
@@ -0,0 +1,6 @@
+include user.mk
+
+CFILES = $(shell find . -name "*.c")
+
+$(ROOT)/base/usr/bin/elfdump:
+ gcc $(CFILES) -o $@ $(INTERNAL_CFLAGS)