From 841b0527a69a76ab9dd9a376cc2a2d37049c6b54 Mon Sep 17 00:00:00 2001 From: aqua Date: Sat, 29 Oct 2022 20:49:03 +0300 Subject: makefile: auto-generate OBJS from SRCS --- lib/Makefile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/Makefile b/lib/Makefile index c34790d..85d1f34 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,15 +1,10 @@ include ../${ARCH}/toolchain.mk -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} $@ $^ -clean: - @rm -rf ${libk,OBJS} +include ../rules.mk + -- cgit v1.2.1