summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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 $^ > $@