summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-25 17:49:53 -0400
committerIan Moffett <ian@osmora.org>2025-09-25 17:51:59 -0400
commitad95fb49009d860c8da92fd6b3ddcabb2529bcdd (patch)
treea9c6a434c464230a60b51c73f4f725632710dba6 /src/lib
parent0d2c8a069ac2fddf44c7f1746095114fc2626df2 (diff)
libc: Ensure system includes are synced
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libc/Makefile b/src/lib/libc/Makefile
index 3287084..792c38f 100644
--- a/src/lib/libc/Makefile
+++ b/src/lib/libc/Makefile
@@ -2,13 +2,18 @@ OBJ = $(shell find build/ -name "*.o")
LIBC_OUT = libc.a
.PHONY: all
-all: build target
+all: build sys target
ar rcs $(LIBC_OUT) $(OBJ)
.PHONY: target
target:
cd $(TARGET); make CC=$(CC) LD=$(LD) AS=$(AS)
+.PHONY: sys
+sys:
+ mkdir -p sys/
+ rsync -av ../../sys/include/sys/* include/sys/
+
# Create build directory
build:
mkdir -p $@