2017-10-20 20:58:06 +01:00
|
|
|
all: kernel
|
|
|
|
|
|
|
|
kernel: bootloader
|
2017-10-20 22:04:09 +01:00
|
|
|
nim cc --cc:clang --clang.linkerexe=ld.lld --gc:none --deadCodeElim:on --cpu:i386 --os:standalone --passC:"-ffreestanding -nostdlib --target=i686-pc-none-elf -march=i686" --passL:"-m elf_i386 -T linker.ld boot.o" kernel.nim
|
2017-10-20 20:58:06 +01:00
|
|
|
|
|
|
|
bootloader:
|
|
|
|
nasm -felf32 boot.s -o boot.o
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -r kernel nimcache/ boot.o
|