diff options
| author | Chloe M. <chloe@aptel.org> | 2026-08-20 05:53:55 +0000 |
|---|---|---|
| committer | Chloe M. <chloe@aptel.org> | 2026-08-20 05:56:44 +0000 |
| commit | ae526fa3375b708d4380d0227e27d32e06b40b92 (patch) | |
| tree | 3d8d9a448d4a9530aa4e45a75b292c1bd0b5bc0d /boot/arch/amd64/mbr/Makefile | |
initial commit
Signed-off-by: Chloe M. <chloe@aptel.org>
Diffstat (limited to 'boot/arch/amd64/mbr/Makefile')
| -rw-r--r-- | boot/arch/amd64/mbr/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/boot/arch/amd64/mbr/Makefile b/boot/arch/amd64/mbr/Makefile new file mode 100644 index 0000000..f41e5cc --- /dev/null +++ b/boot/arch/amd64/mbr/Makefile @@ -0,0 +1,16 @@ +CC = clang +CFLAGS = \ + -ffreestanding \ + -nostdlib \ + -nostdinc \ + -mno-red-zone \ + -mno-sse \ + -mno-sse2 \ + -target i386-unknown-elf + +.PHONY: all +all: mbr + +.PHONY: mbr +mbr: + clang -Tlink.ld $(CFLAGS) mbr.S -o $(GLOBAL_PROJECT_ROOT)/artifacts/mbr.bin |
