A poorly written OS for the x86 arch. (WIP)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eOS/Makefile

26 lines
495 B

3 years ago
all: os-image
run: all
3 years ago
qemu-system-x86_64 os-image
3 years ago
3 years ago
os-image: bootloader.bin kernel.bin
3 years ago
cat $^ > os-image
3 years ago
3 years ago
kernel.bin: kernel_entry.o kernel.o
3 years ago
ld -o kernel.bin -Ttext 0x1000 $^ --oformat binary
kernel.o : src/kernel/kernel.c
gcc -ffreestanding -c $< -o $@
kernel_entry.o : src/kernel/kernel_entry.asm
nasm $< -f elf -o $@
bootloader.bin : src/bootloader/bootloader.asm
3 years ago
nasm $< -f bin -o $@
3 years ago
clean:
3 years ago
rm -fr *.bin *.dis *.o os-image *.map
3 years ago
3 years ago
kernel.dis : kernel.bin
3 years ago
ndisasm -b 32 $< > $@