include ../${ARCH}/toolchain.mk include ../rules.mk CCFLAGS += -I../grub/include 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}