hos/Makefile
josh f58228c559 fixed sample boot.asm, changed Makefile target to $(ISO)
git-svn-id: svn://anubis/hos/trunk@6 5b3e749e-e535-0410-8002-a9bb6afbdfca
2007-07-25 03:16:59 +00:00

28 lines
513 B
Makefile

HOS = hos
MKISOFS = genisoimage
ISO = $(HOS).iso
QEMU = qemu-system-x86_64
.PHONY: kernel clean qemu
# default target: build the kernel and ISO image
all: kernel iso
# build the kernel
kernel:
make -C kernel
# build the ISO image
$(ISO): kernel
cp kernel/$(HOS) iso/boot
$(MKISOFS) -R -b boot/grub/stage2_eltorito -no-emul-boot \
-boot-load-size 4 -boot-info-table -o $(ISO) iso
clean:
make -C kernel clean
-rm -f $(ISO) iso/boot/$(HOS)
qemu: $(ISO)
$(QEMU) -cdrom $(ISO) -boot d -m 384 -localtime