From edb7fc07bf93e4a1883cccf45ad7a4b2cbf390d9 Mon Sep 17 00:00:00 2001
From: dzwdz
Date: Sun, 28 Aug 2022 23:54:47 +0200
Subject: user/lua: prepare libc headers

---
 Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
index 0dd1610..37caf0d 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ endef
 
 
 .PHONY: all boot debug lint check clean
-all: out/boot.iso check
+all: out/boot.iso out/libm.a check
 
 boot: all out/hdd
 	qemu-system-x86_64 -drive file=out/boot.iso,format=raw,media=disk $(QFLAGS) -serial stdio
@@ -84,6 +84,10 @@ out/libc.a: $(call from_sources, src/user/lib/) \
 	@mkdir -p $(@D)
 	@$(AR) rcs $@ $^
 
+out/libm.a:
+	@mkdir -p $(@D)
+	@$(AR) rcs $@ $^
+
 out/bootstrap: src/user/bootstrap/linker.ld $(call from_sources, src/user/bootstrap/) out/libc.a
 	@mkdir -p $(@D)
 	@$(CC) $(LFLAGS) -Wl,-Map=% -T $^ -o $@
-- 
cgit v1.2.3