hos/Makefile
josh 09fb19df15 little Makefile change
git-svn-id: svn://anubis/hos/trunk@11 5b3e749e-e535-0410-8002-a9bb6afbdfca
2009-06-24 18:30:57 +00:00

32 lines
557 B
Makefile

HOS = hos
MKISOFS = genisoimage
ISO = $(HOS).iso
QEMU = qemu-system-x86_64
# default target: build the kernel and ISO image
all: kernel iso
# build the kernel
.PHONY: kernel
kernel:
make -C kernel
# build the ISO image
.PHONY: iso
iso: $(ISO) kernel
$(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
.PHONY: qemu
qemu: iso
$(QEMU) -cdrom $(ISO) -boot d -m 384 -localtime
.PHONY: clean
clean:
make -C kernel clean
-rm -f $(ISO) iso/boot/$(HOS)