.PHONY: all all: kernel-1989 qemu-system-i386 -kernel kernel-1989 -d guest_errors kernel-1989: boot.s kmain.c gcc -m32 -c boot.s -o boot.o gcc -m32 -std=c99 -c kmain.c -o kmain.o ld -m elf_i386 -T link.ld -o kernel-1989 boot.o kmain.o .PHONY: clean clean: rm -f *.o kernel-1989