From 23b3eb066f5f73c7f0081d9a1aa49bff7bb49af8 Mon Sep 17 00:00:00 2001 From: David Lee Date: Thu, 4 Jul 2024 08:32:44 -0700 Subject: [PATCH] linux build --- Logitech Modula-2 v34/m.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Logitech Modula-2 v34/m.sh diff --git a/Logitech Modula-2 v34/m.sh b/Logitech Modula-2 v34/m.sh new file mode 100644 index 0000000..b7e44b3 --- /dev/null +++ b/Logitech Modula-2 v34/m.sh @@ -0,0 +1,18 @@ +str=$(tr '[a-z]' '[A-Z]' <<< $1) + +rm $str.MAP 2>/dev/null +rm $str.OBJ 2>/dev/null +rm $str.EXE 2>/dev/null + +ntvdm -u -f -r:. -e:m2sym=m2lib\\sym m2exe\\M2C.EXE $str + +# the modula 2 linker fails +# ntvdm -u -r:. -e:m2lib=m2lib\\lib m2exe\\m2l $str/o/p + +# the qbx linker works fine +ntvdm -u -h -f -r:. -e:lib=m2lib\\lib link $str,,,m2lib m2rts.lib; + +rm $str.MAP 2>/dev/null +rm $str.OBJ 2>/dev/null + +ntvdm $str