little Makefile change
git-svn-id: svn://anubis/hos/trunk@11 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
parent
af529606e9
commit
09fb19df15
14
Makefile
14
Makefile
@ -4,26 +4,28 @@ MKISOFS = genisoimage
|
|||||||
ISO = $(HOS).iso
|
ISO = $(HOS).iso
|
||||||
QEMU = qemu-system-x86_64
|
QEMU = qemu-system-x86_64
|
||||||
|
|
||||||
.PHONY: kernel clean qemu iso
|
|
||||||
|
|
||||||
# default target: build the kernel and ISO image
|
# default target: build the kernel and ISO image
|
||||||
all: kernel iso
|
all: kernel iso
|
||||||
|
|
||||||
# build the kernel
|
# build the kernel
|
||||||
|
.PHONY: kernel
|
||||||
kernel:
|
kernel:
|
||||||
make -C kernel
|
make -C kernel
|
||||||
|
|
||||||
# build the ISO image
|
# build the ISO image
|
||||||
iso: $(ISO)
|
.PHONY: iso
|
||||||
|
iso: $(ISO) kernel
|
||||||
|
|
||||||
$(ISO): kernel
|
$(ISO): kernel
|
||||||
cp kernel/$(HOS) iso/boot
|
cp kernel/$(HOS) iso/boot
|
||||||
$(MKISOFS) -R -b boot/grub/stage2_eltorito -no-emul-boot \
|
$(MKISOFS) -R -b boot/grub/stage2_eltorito -no-emul-boot \
|
||||||
-boot-load-size 4 -boot-info-table -o $(ISO) iso
|
-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:
|
clean:
|
||||||
make -C kernel clean
|
make -C kernel clean
|
||||||
-rm -f $(ISO) iso/boot/$(HOS)
|
-rm -f $(ISO) iso/boot/$(HOS)
|
||||||
|
|
||||||
qemu: $(ISO)
|
|
||||||
$(QEMU) -cdrom $(ISO) -boot d -m 384 -localtime
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user