summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordzwdz2022-05-02 21:47:11 +0200
committerdzwdz2022-05-02 21:47:11 +0200
commit8e276c64c9394d0964506bd6eaa7d4e0547d1ead (patch)
tree4ebefd7507061a04128764f84b56a60b76b7c521 /Makefile
parent577ed9e01a83c13bf151b5137e6fe1eace1c4f7c (diff)
meta: write a script to generate `src/init/syscalls.c`
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 44bcfc0..9ab6898 100644
--- a/Makefile
+++ b/Makefile
@@ -85,3 +85,6 @@ out/obj/%.s.o: src/%.s
out/obj/%.c.o: src/%.c
@mkdir -p $(@D)
@$(CC) $(CFLAGS) -c $^ -o $@
+
+src/init/syscalls.c: tools/syscall_wrappers.awk src/shared/syscalls.h
+ awk -f $^ > $@