summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorBenji Dial <Benji3.141@gmail.com>2019-12-26 13:06:21 -0500
committerBenji Dial <Benji3.141@gmail.com>2019-12-26 13:06:21 -0500
commit336cfa313d0ebd435690610e8006b90dc8bd0e56 (patch)
treea2c3038462b6edcd13339fd741b34525f50c880e /makefile
parent2c542b87ff3dc2eacc036dc296a81f8fc215e6d9 (diff)
downloadportland-os-336cfa313d0ebd435690610e8006b90dc8bd0e56.tar.gz
got multiboot info parsed!
Diffstat (limited to 'makefile')
-rw-r--r--makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/makefile b/makefile
index b330fc3..8ff2c69 100644
--- a/makefile
+++ b/makefile
@@ -5,13 +5,14 @@ cd: kernel fs
grub2-mkrescue out/fs -o out/cd.iso --product-name=portland --product-version=0.0.9
kernel: obj out
- nasm src/kernel/stub.asm -o obj/kstub.o -f elf32
- gcc -c src/kernel/files.c -o obj/kfiles.o -ffreestanding -nostdlib -m32
- gcc -c src/kernel/main.c -o obj/kmain.o -ffreestanding -nostdlib -m32
- gcc -c src/kernel/mem.c -o obj/kmem.o -ffreestanding -nostdlib -m32
- gcc -c src/kernel/proc.c -o obj/kproc.o -ffreestanding -nostdlib -m32
- gcc -c src/kernel/vga.c -o obj/kvga.o -ffreestanding -nostdlib -m32
- ld obj/kstub.o obj/kfiles.o obj/kmain.o obj/kmem.o obj/kproc.o obj/kvga.o \
+ nasm src/kernel/serial.asm -o obj/kserial.o -f elf32
+ nasm src/kernel/stub.asm -o obj/kstub.o -f elf32
+ gcc -c src/kernel/files.c -o obj/kfiles.o -ffreestanding -nostdlib -m32
+ gcc -c src/kernel/main.c -o obj/kmain.o -ffreestanding -nostdlib -m32
+ gcc -c src/kernel/mem.c -o obj/kmem.o -ffreestanding -nostdlib -m32
+ gcc -c src/kernel/proc.c -o obj/kproc.o -ffreestanding -nostdlib -m32
+ gcc -c src/kernel/vga.c -o obj/kvga.o -ffreestanding -nostdlib -m32
+ ld obj/kstub.o obj/kfiles.o obj/kmain.o obj/kmem.o obj/kproc.o obj/kserial.o obj/kvga.o \
-o out/kernel.elf -T src/kernel/link.ld -s --orphan-handling=discard -melf_i386