summaryrefslogtreecommitdiffstats
path: root/makefile
blob: fd06b87c5ef0738cb7aeffef8b2e16ec73c2c28c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SUBDIR=kernel

all: run

run: create_iso
	qemu-system-i386 -hda mini_kernel/mini_kernel.iso

create_iso: cpy
	grub-mkrescue -o mini_kernel/mini_kernel.iso mini_kernel

cpy:
	cd $(SUBDIR); $(MAKE) run
	cp grub/grub.cfg mini_kernel/
	cp kernel/kernel.elf mini_kernel/


clean:
	cd $(SUBDIR); $(MAKE) clean
	-rm mini_kernel/*.iso mini_kernel/*.cfg mini_kernel/*.elf 2>/dev/null