From 0fc5be1c91be5a2da53bfba58ebe690993448640 Mon Sep 17 00:00:00 2001 From: aqua Date: Sat, 29 Oct 2022 14:57:25 +0300 Subject: makefile: add src/kernel.a target --- lib/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/Makefile b/lib/Makefile index 3a5fff9..22c090c 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -3,11 +3,14 @@ include ../rules.mk CCFLAGS += -I. -I.. +all: libk.a + libk,SRCS = memcpy.c memset.c stdio/printf.c string/itoa.c libk,OBJS = $(libk,SRCS:%.c=%.o) libk.a: ${libk,OBJS} @echo ' AR $@' @${AR} ${ARFLAGS} $@ $^ + i686-elf-ranlib $@ clean: @rm -rf ${libk,OBJS} -- cgit v1.2.1