PiegOS/kernel/Makefile
2015-07-20 16:34:46 +04:00

15 lines
259 B
Makefile

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