Adapt Makefile, modify some comments

This commit is contained in:
manzerbredes 2015-07-19 11:52:01 +04:00
parent af0fdb77e3
commit bf801b82fd
3 changed files with 16 additions and 6 deletions

View file

@ -1,5 +1,12 @@
kernel.bin:
touch kernel.bin
kernel.bin:entry.o main.o
ld -m elf_i386 --entry=_start -Ttext=0x1000 -o $@ $^
entry.o:entry.asm
nasm -f elf $^
main.o:main.c
gcc -m32 -c $^ -o $@
clean:
rm ./*.o
rm kernel.bin