omos-tcnj2024/Makescript
Agnosto Dvonik 6c72923c9e track new
2024-02-18 07:20:14 -05:00

18 lines
334 B
Bash
Executable File

#!/usr/bin/env sh
OBJ="obj"
INCLUDE="-Isys/include"
CFLAGS="-g -m32 -ffreestanding -Wall -Wextra -pedantic -nostdlib $INCLUDE"
ASFLAGS="-felf32"
LDFLAGS="-m elf_i386"
mkdir -p $OBJ
rm -rf $OBJ/*
. boot/Makescript
. sys/Makescript
ld $LDFLAGS -T boot/link.ld -o omos $(for a in $OBJ/*; do printf "$a "; done)
echo "Build Success"