-help:
- @echo "Run 'make' to compile."
- @echo "Run 'make clean' to delete compiled objects."
- @echo "Run 'make run' to run the compiled object. Must have qemu-system-i386 (but x86_64 should work too)."
+kernel/arch/x86/tty/tty.o: kernel/arch/x86/tty/tty.c
+ $(CC) -o $@ -ffreestanding -c kernel/arch/x86/tty/tty.c
+
+kernel/kernel.o: kernel/kernel.c
+ $(CC) -o $@ -Iinclude/arch/x86 -ffreestanding -c kernel/kernel.c
+
+clean:
+ rm boot kernel/kernel.bin ${KERNEL_OBJ} boot.img