summaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/multiboot
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-10-01 12:23:00 +0300
committerJoursoir <chat@joursoir.net>2022-10-07 22:29:37 +0300
commita8c336738b6810c60e16371a92c11bb4b121487e (patch)
treef25787598f488ac591b36a814b60d64de0df5d62 /arch/x86/boot/multiboot
parentf7d6f01ca277a5ee131d0f423c26a924da5f68e4 (diff)
downloadmfsos-a8c336738b6810c60e16371a92c11bb4b121487e.tar.gz
mfsos-a8c336738b6810c60e16371a92c11bb4b121487e.tar.bz2
mfsos-a8c336738b6810c60e16371a92c11bb4b121487e.zip
x86/multiboot/make: compile head.s
Diffstat (limited to 'arch/x86/boot/multiboot')
-rw-r--r--arch/x86/boot/multiboot/Makefile7
1 files changed, 5 insertions, 2 deletions
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)