summaryrefslogtreecommitdiff
path: root/src/cmd/Makefile
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-17 15:03:22 -0400
committerIan Moffett <ian@osmora.org>2025-09-17 15:03:22 -0400
commit5c40e61a6035315d4341ed508171bf68f3bc1955 (patch)
tree0988fdbc5b978fe35d2955364818c2b6088abdf4 /src/cmd/Makefile
parent61aaead7e2904a2756ed72a71e36eeeb21591733 (diff)
build: Add test program to src/cmd/
Add a testing program for ELF loading purposes. This is to be removed in later versions of Lunos Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/cmd/Makefile')
-rw-r--r--src/cmd/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmd/Makefile b/src/cmd/Makefile
new file mode 100644
index 0000000..2d1c7f8
--- /dev/null
+++ b/src/cmd/Makefile
@@ -0,0 +1,10 @@
+LDSCRIPT=../../sys/arch/$(TARGET)/conf/user.ld
+
+.PHONY: all
+all:
+ cd test/; LDSCRIPT=$(LDSCRIPT) CC=$(CC) ASM=$(ASM) \
+ LD=$(ASM) SYSROOT=$(SYSROOT) make
+
+.PHONY: clean
+clean:
+ cd test/; make clean