diff options
author | Benji Dial <Benji3.141@gmail.com> | 2019-12-24 00:16:05 -0500 |
---|---|---|
committer | Benji Dial <Benji3.141@gmail.com> | 2019-12-24 00:16:05 -0500 |
commit | a947a7a143029ee8ef5cb4a4232d7439b8a79670 (patch) | |
tree | 69ee1c58837efee95091781b12456a09f820357c /makefile | |
parent | e520b52cd58f70af9a17f330fe1ce98ce059762c (diff) | |
download | portland-os-a947a7a143029ee8ef5cb4a4232d7439b8a79670.tar.gz |
small changes, part 2, rewriting bootloader partially, giving up on this branch
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -9,8 +9,13 @@ floppy: bootloader fs bootloader: obj nasm src/bootloader.asm -o obj/bootloader.bin -kernel: fs - gcc src/kernel/*.c -o out/fs/kernel.sys -ffreestanding -nostdlib -m32 -T src/kernel/link.ld +kernel: obj fs + gcc src/kernel/*.c -o obj/kernel.elf -ffreestanding -nostdlib -m32 -fno-asynchronous-unwind-tables + ld obj/kernel.elf -o obj/kernel-stripped.elf -T src/kernel/link.ld -s --orphan-handling=discard -m elf_i386 + objcopy obj/kernel-stripped.elf out/fs/kernel.sys -O binary + +clean: + rm -r obj out fs: out mkdir -p out/fs |