omos-tcnj2024/Makescript
Agnosto Dvonik 8f96a347b1 remove cruft
2024-02-17 19:19:36 -05:00

12 lines
385 B
Bash
Executable File

#!/usr/bin/env sh
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