omos-tcnj2024/Makescript

18 lines
331 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 13:20:14 +01:00
INCLUDE="-Isys/include"
2024-02-18 13:38:08 +01:00
CFLAGS="-m32 -ffreestanding -Wall -Wextra -pedantic -nostdlib $INCLUDE"
2024-02-18 01:16:13 +01:00
ASFLAGS="-felf32"
LDFLAGS="-m elf_i386"
2024-02-18 04:55:37 +01:00
mkdir -p $OBJ
2024-02-18 13:20:14 +01:00
rm -rf $OBJ/*
2024-02-18 04:55:37 +01:00
. boot/Makescript
. sys/Makescript
2024-02-18 13:20:14 +01:00
ld $LDFLAGS -T boot/link.ld -o omos $(for a in $OBJ/*; do printf "$a "; done)
2024-02-18 04:55:37 +01:00
echo "Build Success"