summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..24f21aa
--- /dev/null
+++ b/makefile
@@ -0,0 +1,15 @@
+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:
+ cp grub/grub.cfg mini_kernel/
+ cp kernel/kernel.elf mini_kernel/
+
+clean:
+ rm mini_kernel/*.iso mini_kernel/*.cfg mini_kernel/*.elf
+ \ No newline at end of file