all: kernel.elf .c.o : gcc -std=gnu99 -m32 -fno-builtin -ffreestanding -nostdlib -Wall -Wextra -c $< -o $@ kernel.elf: kernel.o tty.o tty.h entry.o ld -Tlinker.ld -melf_i386 entry.o tty.o kernel.o -o kernel.elf # entry.o: entry.S # as -32 $< -o entry.o entry.o: entry.asm nasm -f elf32 $< clean: rm -f *.o kernel.elf