From a1e193f571e167c3784976843a45b077324d41c4 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 17 Sep 2025 17:03:51 -0400 Subject: lib: Add initial libc stub Signed-off-by: Ian Moffett --- src/lib/libc/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/lib/libc/Makefile (limited to 'src/lib/libc/Makefile') diff --git a/src/lib/libc/Makefile b/src/lib/libc/Makefile new file mode 100644 index 0000000..3287084 --- /dev/null +++ b/src/lib/libc/Makefile @@ -0,0 +1,18 @@ +OBJ = $(shell find build/ -name "*.o") +LIBC_OUT = libc.a + +.PHONY: all +all: build target + ar rcs $(LIBC_OUT) $(OBJ) + +.PHONY: target +target: + cd $(TARGET); make CC=$(CC) LD=$(LD) AS=$(AS) + +# Create build directory +build: + mkdir -p $@ + +.PHONY: clean +clean: + rm -rf build/ -- cgit v1.2.3