19 lines
240 B
Makefile
19 lines
240 B
Makefile
CC = gcc
|
|
ASM = nasm
|
|
QEMU = qemu
|
|
IMG = boot.bin
|
|
|
|
boot.bin: boot.asm
|
|
$(ASM) $< -o $@
|
|
|
|
compile: boot.bin
|
|
|
|
.DEFAULT_GOAL=compile
|
|
|
|
run: compile
|
|
$(QEMU) -boot order=c -drive file=$(IMG),format=raw
|
|
|
|
clean:
|
|
rm boot.bin
|
|
|
|
.PHONY: compile clean run |