blob: cc03386870b5b26b2901ec841f072ed851736a2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
all: kernel.elf
kernel.elf: kernel.o entry.o
ld -Tlinker.ld -melf_i386 entry.o kernel.o -o kernel.elf
kernel.o: kernel.c
gcc -std=gnu99 -m32 -fno-builtin -ffreestanding -nostdlib -Wall -Wextra -c kernel.c
# entry.o: entry.S
# as -32 $< -o entry.o
entry.o: entry.asm
nasm -f elf32 $<
clean:
rm -f *.o kernel.elf
|