omos-tcnj2024/Makescript
2024-02-18 07:38:08 -05:00

18 lines
331 B
Bash
Executable File

#!/usr/bin/env sh
OBJ="obj"
INCLUDE="-Isys/include"
CFLAGS="-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"