Files
30_day_os/day_02/Makefile
2024-01-16 23:43:01 +08:00

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)