diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-03 00:15:58 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-03 00:15:58 +0100 |
commit | a71fe5ed5d709ef0a3caefb744a99c575fb9dd29 (patch) | |
tree | 9a33e76614e7f51a4c255d8b59068e1dd289b35c /kernel/Makefile | |
download | jeyzuos-a71fe5ed5d709ef0a3caefb744a99c575fb9dd29.zip jeyzuos-a71fe5ed5d709ef0a3caefb744a99c575fb9dd29.tar.gz |
initial commit
Diffstat (limited to 'kernel/Makefile')
-rw-r--r-- | kernel/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/Makefile b/kernel/Makefile new file mode 100644 index 0000000..cc03386 --- /dev/null +++ b/kernel/Makefile @@ -0,0 +1,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 |