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 --- i686/Makefile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'i686/Makefile') diff --git a/i686/Makefile b/i686/Makefile index 52295a8..e77f1c6 100644 --- a/i686/Makefile +++ b/i686/Makefile @@ -1,5 +1,4 @@ include ../${ARCH}/toolchain.mk -include ../rules.mk CCFLAGS += -I../grub/include @@ -8,10 +7,6 @@ all: arch.a arch,SRCS = boot.S init.s \ gdt.c lgdt.c \ lidt.c -arch,OBJS = $(filter %.o,$(arch,SRCS:%.S=%.o) $(arch,SRCS:%.s=%.o) $(arch,SRCS:%.c=%.o)) -arch.a: ${arch,OBJS} - @echo ' AR $@' - @${AR} ${ARFLAGS} $@ $^ -clean: - @rm -rf ${arch,OBJS} +include ../rules.mk + -- cgit v1.2.1