15 lines
255 B
Makefile
15 lines
255 B
Makefile
# Makefile to run a.img in QEMU
|
|
|
|
# QEMU command to run x86_64 architecture
|
|
QEMU = qemu-system-x86_64
|
|
|
|
# Name of the disk image
|
|
IMAGE = helloos.img
|
|
|
|
# Default target
|
|
all: run
|
|
|
|
# Target to run the image in QEMU
|
|
run:
|
|
$(QEMU) -drive format=raw,file=$(IMAGE)
|