2015-07-19 11:52:01 +04:00
|
|
|
|
|
|
|
kernel.bin:entry.o main.o
|
2015-07-20 12:37:21 +04:00
|
|
|
ld -m elf_i386 --entry=_start -Ttext=0x100000 -o $@ $^
|
2015-07-19 11:52:01 +04:00
|
|
|
|
|
|
|
entry.o:entry.asm
|
|
|
|
nasm -f elf $^
|
|
|
|
main.o:main.c
|
|
|
|
gcc -m32 -c $^ -o $@
|
2015-07-18 20:23:49 +04:00
|
|
|
|
|
|
|
clean:
|
2015-07-19 11:52:01 +04:00
|
|
|
rm ./*.o
|
2015-07-18 20:23:49 +04:00
|
|
|
rm kernel.bin
|