23 lines
377 B
Makefile
23 lines
377 B
Makefile
|
|
HOS = hos
|
|
MKISOFS = genisoimage
|
|
ISO = $(HOS).iso
|
|
|
|
.PHONY: kernel iso clean
|
|
|
|
# default target: build the kernel and ISO image
|
|
all: kernel iso
|
|
|
|
# build the kernel
|
|
kernel:
|
|
make -C kernel
|
|
|
|
# build the ISO image
|
|
iso: kernel
|
|
$(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)
|