From a8c336738b6810c60e16371a92c11bb4b121487e Mon Sep 17 00:00:00 2001 From: Joursoir Date: Sat, 1 Oct 2022 12:23:00 +0300 Subject: x86/multiboot/make: compile head.s --- arch/x86/boot/multiboot/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'arch/x86/boot') diff --git a/arch/x86/boot/multiboot/Makefile b/arch/x86/boot/multiboot/Makefile index 995237d..58be4e0 100644 --- a/arch/x86/boot/multiboot/Makefile +++ b/arch/x86/boot/multiboot/Makefile @@ -10,7 +10,10 @@ BARE_MULTIBOOT_HEADER = bare_multiboot.h .PHONY: all clean -all: $(BARE_MULTIBOOT_HEADER) +all: $(BARE_MULTIBOOT_HEADER) head.o + +head.o: head.s + $(AS) $< -o $@ $(BARE_MULTIBOOT_HEADER): $(MULTIBOOT_HEADER) $(CC) -E -dM -undef -fsyntax-only $(MULTIBOOT_HEADER) > $(BARE_MULTIBOOT_HEADER) @@ -22,4 +25,4 @@ $(BARE_MULTIBOOT_HEADER): $(MULTIBOOT_HEADER) sed -i 's/\>/,/2' $(BARE_MULTIBOOT_HEADER) clean: - rm $(BARE_MULTIBOOT_HEADER) + rm -f head.o $(BARE_MULTIBOOT_HEADER) -- cgit v1.2.3-18-g5258