diff --git a/README b/README index 0ae96ed..7be8a1d 100644 --- a/README +++ b/README @@ -26,9 +26,13 @@ doc/doc Operation guide for SJ3 and other documents(Japanese) * Tested machine - PC Linux 6.6.87.2-microsoft-standard-WSL2 + PC Debian GNU/Linux 13 Windows 11 +* Tested compilers + GCC/Clang Debian GNU/Linux 13 + Open Watcom 2.0 Windows 11 + * Differences - Multiple contexts can be created in SJ4. SJ3's behavior of using global variables can be brought back with -DSJ3_GLOBAL. diff --git a/watcom.sh b/watcom.sh deleted file mode 100755 index fe10c05..0000000 --- a/watcom.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/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 -DUTF8 -DENGLISH -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 diff --git a/win32.sh b/win32.sh new file mode 100755 index 0000000..2d91145 --- /dev/null +++ b/win32.sh @@ -0,0 +1,40 @@ +#!/bin/sh + +if [ "x$1" = "x" ]; then + echo "Usage: $0 [watcom|msvc]" + exit 1 +fi + +for i in lib/sj4core/*.c; do + if [ -f $i.obj ]; then + continue + fi + echo $i + + if [ "$1" = "watcom" ]; then + cl /Iinclude/sj4common /Iinclude/sj4core /c /fo$i.obj $i || exit 1 + else + owcc -Iinclude/sj4common -Iinclude/sj4core -bnt -c -o $i.obj $i || exit 1 + fi +done + +find lib/sj4core -name "*.obj" | while read a; do + echo "+$a" +done | xargs wlib -q -b -fo -n sj4core.lib + +executable() { + N=$1 + + for i in src/$N/*.c; do + if [ -f $i.obj ]; then + continue + fi + echo $i + owcc -DUTF8 -DENGLISH -Iinclude/sj4common -Iinclude/sj4core -bnt -c -o $i.obj $i || exit 1 + done + + owcc -bnt -o $N.exe src/$N/*.obj $2 +} + +executable sj4mkdic +executable sj4test sj4core.lib