os_kernel_lab/related_info/lab1/toybootloader/Makefile

10 lines
169 B
Makefile
Raw Permalink Normal View History

all:toy
toy.o: toy.S
as -o toy.o toy.S
toy: toy.o
ld --oformat binary -N -e start -Ttext 0x7c00 -o toy toy.o
run: toy
qemu-system-i386 -fda toy
clean:
rm toy.o toy