2017-10-20 20:58:06 +01:00
|
|
|
all: kernel
|
|
|
|
|
|
|
|
kernel: bootloader
|
2017-10-21 17:13:40 +01:00
|
|
|
nim cc --cc:clang --clang.linkerexe=clang --gc:none --deadCodeElim:on -d:StandaloneHeapSize=4096 --cpu:i386 --os:standalone --passC:"-ffreestanding -nostdlib --target=i686-pc-none-elf -march=i686" --passL:"-target i386 -nostdlib -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
|