Edit GDT class

This commit is contained in:
manzerbredes 2015-07-20 16:58:34 +04:00
parent 9b856ae4d7
commit 3b171151bd
3 changed files with 60 additions and 9 deletions

View file

@ -1,14 +1,26 @@
#----- Kernel -----
kernel.bin:entry.o main.o GDT/gdt.o
ld -m elf_i386 --entry=_start -Ttext=0x100000 -o $@ $^
#-----------------
#----- Entry & Main-----
entry.o:entry.asm
nasm -f elf $^
main.o:main.cpp
g++ -Wall -m32 -c $^ -o $@
GDT/gdt.o:
cd GDT && make
#-----------------------
#----- GDT -----
GDT/gdt.o:
cd ./GDT && make
#---------------
#----- Other -----
clean:
cd ./GDT/ && make clean
rm ./*.o