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