From 3b8405a023a559c3a265a6646a3eaf411332b20a Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 14 Oct 2024 23:14:18 +0200 Subject: [PATCH] Mon 14 Oct 23:14:00 CEST 2024 --- library/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 library/Makefile diff --git a/library/Makefile b/library/Makefile new file mode 100644 index 0000000..5d42b4e --- /dev/null +++ b/library/Makefile @@ -0,0 +1,14 @@ +include ../Makefile.config + +LIBRARY_OBJECTS=errno.o syscall.o syscalls.o string.o stdio.o stdlib.o malloc.o kernel_object_string.o nwindow.o + +all: user-start.o baselib.a + +%.o: %.c + ${CC} ${KERNEL_CCFLAGS} -I ../include $< -o $@ + +baselib.a: ${LIBRARY_OBJECTS} + ${AR} rv $@ ${LIBRARY_OBJECTS} + +clean: + rm -rf *.a *.o