1 # To specify cross compiler prefix, use CROSS_PREFIX=
2 # $ make CROSS_PREFIX=x86_64-linux-gnu-
7 a-b-bootblock.h
: x86.bootsect
8 echo
"$$__note" > header.tmp
9 xxd
-i
$< | sed
-e
's/.*int.*//' >> header.tmp
12 x86.bootsect
: x86.boot
13 dd if
=$< of
=$@ bs
=256 count
=2 skip
=124
16 $(CROSS_PREFIX
)objcopy
-O binary
$< $@
18 x86.o
: a-b-bootblock.S
19 $(CROSS_PREFIX
)gcc
-m32
-march
=i486
-c
$< -o
$@
22 @
rm -rf
*.boot
*.o
*.bootsect