summaryrefslogtreecommitdiffstats
path: root/kernel/Makefile
blob: 6c1b3ae655129ca90fa39fa1605cbca1e79d00a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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