omos-tcnj2024/Makescript

18 lines
357 B
Plaintext
Raw Normal View History

2024-02-18 01:16:13 +01:00
#!/usr/bin/env sh
2024-02-18 04:55:37 +01:00
OBJ="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"
2024-02-18 04:55:37 +01:00
mkdir -p $OBJ
. boot/Makescript
. sys/Makescript
. sys/drv/Makescript
2024-02-18 01:16:13 +01:00
ld $LDFLAGS -T boot/link.ld -o omos obj/boot.o obj/vga.o obj/sysinit.o
2024-02-18 04:55:37 +01:00
echo "Build Success"