2024-02-18 01:16:13 +01:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2024-02-18 03:53:36 +01:00
|
|
|
mkdir -p obj/
|
|
|
|
|
2024-02-18 01:16:13 +01:00
|
|
|
INCLUDE="-Isys/drv/vga/include -Isys/include"
|
|
|
|
CFLAGS="-g -m32 -ffreestanding -Wall -Wextra -pedantic -nostdlib $INCLUDE"
|
|
|
|
ASFLAGS="-felf32"
|
|
|
|
LDFLAGS="-m elf_i386"
|
|
|
|
|
|
|
|
cc $CFLAGS -c sys/drv/vga/video.c -o obj/vga.o
|
|
|
|
cc $CFLAGS -c sys/sysinit.c -o obj/sysinit.o
|
|
|
|
nasm $ASFLAGS boot/boot.s -o obj/boot.o
|
|
|
|
ld $LDFLAGS -T boot/link.ld -o omos obj/boot.o obj/vga.o obj/sysinit.o
|