From d73c5ac9891ea3a88fa6a5ec1339df1f5cdf1a49 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 3 Sep 2022 23:41:17 +0200 Subject: user/libc: generate strerror from camellia/errno.h --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 64811d7..7428842 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ endef .PHONY: all portdeps boot debug lint check clean all: portdeps out/boot.iso check -portdeps: out/libc.a out/libm.a +portdeps: out/libc.a out/libm.a src/user/lib/include/__errno.h boot: all out/hdd qemu-system-x86_64 -drive file=out/boot.iso,format=raw,media=disk $(QFLAGS) -serial stdio @@ -167,5 +167,8 @@ out/obj/kernel/arch/amd64/32/%.s.o: src/kernel/arch/amd64/32/%.s @mkdir -p $(@D) @$(CC) -m32 -c $^ -o $@ +src/user/lib/include/__errno.h: src/user/lib/include/__errno.h.awk src/shared/include/camellia/errno.h + @awk -f $^ > $@ + src/user/lib/syscall.c: src/user/lib/syscall.c.awk src/shared/include/camellia/syscalls.h @awk -f $^ > $@ -- cgit v1.2.3