From c4fcc92183c55db868d0d6ae53e6009fb2e53ee5 Mon Sep 17 00:00:00 2001 From: aqua Date: Sat, 29 Oct 2022 11:26:44 +0300 Subject: makefile: add i686/arch.a target --- lib/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/Makefile (limited to 'lib/Makefile') diff --git a/lib/Makefile b/lib/Makefile new file mode 100644 index 0000000..3a5fff9 --- /dev/null +++ b/lib/Makefile @@ -0,0 +1,13 @@ +include ../${ARCH}/toolchain.mk +include ../rules.mk + +CCFLAGS += -I. -I.. + +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} $@ $^ + +clean: + @rm -rf ${libk,OBJS} -- cgit v1.2.1