sj4/watcom.sh
2026-06-19 17:05:44 +09:00

30 lines
548 B
Bash
Executable file

#!/bin/sh
for i in lib/sj3core/*.c; do
if [ -f $i.obj ]; then
continue
fi
echo $i
owcc -Iinclude/sj3common -Iinclude/sj3core -bnt -c -o $i.obj $i || exit 1
done
find lib/sj3core -name "*.obj" | while read a; do
echo "+$a"
done | xargs wlib -q -b -fo -n sj3core.lib
executable() {
N=$1
for i in src/$N/*.c; do
if [ -f $i.obj ]; then
continue
fi
echo $i
owcc -Iinclude/sj3common -Iinclude/sj3core -bnt -c -o $i.obj $i || exit 1
done
owcc -bnt -o $N.exe src/$N/*.obj $2
}
executable sj3mkdic
executable sj3test sj3core.lib