summaryrefslogtreecommitdiff
path: root/usr.bin/reboot/Makefile
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-08-19 17:30:00 +0000
committerIan Moffett <ian@osmora.org>2025-08-19 17:30:00 +0000
commit47cc65d2231dbd9acaedbe1ee0542ef4293aeddb (patch)
tree667704301ebf81e24c2604340337674cd1a80c78 /usr.bin/reboot/Makefile
parenta871801e1e38db8e8ca3a662e7e4ecf08c7c3297 (diff)
usr: osh: Seperate 'reboot' command from builtinsmain
Gives the reboot command its own binary in /usr/bin/reboot Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/reboot/Makefile')
-rw-r--r--usr.bin/reboot/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/reboot/Makefile b/usr.bin/reboot/Makefile
new file mode 100644
index 0000000..3700676
--- /dev/null
+++ b/usr.bin/reboot/Makefile
@@ -0,0 +1,6 @@
+include user.mk
+
+CFILES = $(shell find . -name "*.c")
+
+$(ROOT)/base/usr/bin/reboot:
+ gcc $(CFILES) -o $@ $(INTERNAL_CFLAGS)