From ad95fb49009d860c8da92fd6b3ddcabb2529bcdd Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 25 Sep 2025 17:49:53 -0400 Subject: libc: Ensure system includes are synced Signed-off-by: Ian Moffett --- .gitignore | 1 + src/lib/libc/Makefile | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 844ddb4..22ecedb 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ /src/sys/target /src/sys/os/amd64 /src/iso_root +/src/lib/libc/include/sys/ *.o *.d *.iso 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 $@ -- cgit v1.2.3